videojs-resolution-switcher
videojs-resolution-switcher copied to clipboard
In hls playback, manually changing resolution should flush previous resolution buffer
Test case:
1- Playback a HLS playlist with videojs-resolution-switcher (hls-branch) loaded. 2- The player will start to load segments ahead of the current time, creating a buffer. 3- Change the resolution manually. 4- The new resolution will be played only after the buffer of the previous resolution.
This is a issue specially if the previous resolution has a low bitrate, so the buffer will be long and the new resolution will take too long to change. The user may think that the resolution switcher is not working.
So I think that when the resolution is changed manually, the buffer must be flushed.
Any thoughts?
confirming As a result on short videos with low quality switching the resolution has no effect at all.
@guialbuk @mkhazov do you know of any manual way to flush the current buffer or to request new after the change?
Hey Guys ! Any resolution for this situation ? 😄