0

I got a small question about flvjs. How can I check if a flv file is avaiable using flv and how can I check if a flv stream ended? In total how can I listen to events (flv.js)? I didn't really understand it.

flvjs.on('ERROR', () => { console.log("Stream over") });

  • Please provide enough code so others can better understand or reproduce the problem. – Community Apr 06 '22 at 05:58
  • See [this article](https://segmentfault.com/a/1190000041163719/en). Try as: `yourflvPlayer.on( flvjs.Events.ERROR , (err, errdet) => { console.log( "test message" ); }` – VC.One Apr 13 '22 at 14:17

0 Answers0