Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I have implemented Hls streaming library which is almost working fine but the problem is when I seek video forward the bufferStalledError is raised, and then screen blackouts until the segment is loaded. I have attached the fiddle link with this. If your network is very fast please throttle it if you want to see the blackout. I am not able to figure out how to do that. The ideal case should be the video should be processing at last frame processed, if the segment is loading.

Fiddle

The root cause for this was I was trying to recover media using hls.recoverMediaError(); . The Hls can handle itself what is expected. So, removing the recovery code just worked for me.

@Abdishek No error handling just this: const hls = new Hls({ maxBufferSize: 320 * 1000 * 1000 }); hls.attachMedia(video); hls.on(Hls.Events.MEDIA_ATTACHED, () => { hls.loadSource(streamUri); }); ufukomer May 2, 2020 at 15:14 @Abdishek I've realized that this is happening only for a certain videos. Maybe something is wrong about transcoding. If you've an idea please share. ufukomer May 9, 2020 at 14:13

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .