http-streaming icon indicating copy to clipboard operation
http-streaming copied to clipboard

Seeking to a time just before a segment finishes causes buffer underrun

Open squarebracket opened this issue 6 years ago • 0 comments

Description

When seeking to a time just before the end of a segment, that segment will be downloaded, and playback will start. of course, once the seek to the end of the segment happens, the buffer is exhuasted, and thus you get a playback stall while it buffers up the next segment.

Sources

I've only really tested on streams with 6s segments. I'm not sure if the buffering is time-based; if the segments are smaller, it's possible enough would be buffered before playback.

Steps to reproduce

Explain in detail the exact steps necessary to reproduce the issue.

All you need to do is seek to just before a segment end that isn't buffered.

Results

Expected

The player buffers the following segment before starting playback

Error output

Additional Information

videojs-contrib-hls version

videojs-contrib-hls 5.10.0

videojs version

video.js 6.2.6

Browsers

All?

Platforms

All?

Other Plugins

  • videojs-contrib-dash
  • videojs-contrib-eme
  • videojs-contrib-quality-levels
  • videojs-airplay

Other JavaScript

are you using any other javascript libraries or frameworks on the page? if so please list them below.

  • bootstrap
  • jquery
  • some custom-written javascript for hotkey binding

squarebracket avatar Aug 24 '17 16:08 squarebracket