videojs / http-streaming

HLS, DASH, and future HTTP streaming protocols library for video.js
https://videojs-http-streaming.netlify.app/
Other
2.48k stars 421 forks source link

enableLowInitialPlaylist - only first time for loop video #1262

Open tamir-sptl opened 2 years ago

tamir-sptl commented 2 years ago

Description

HLS - When playing a video in loop and enabling 'enableLowInitialPlaylist' , is it possible that only the first loop iteration will use the low resolution?

Briefly describe the issue. Currently, when setting 'enableLowInitialPlaylist' to true, every time the video loops, it starts with low res and later, updates to higher res. Is it possible to enable that flag only for first iteration? will that cause additional buffering on the second iteration? if so, can that be avoided somehow by pre-fetching the high res chunks ahead of time?

Sources

-

Steps to reproduce

  1. create a multy-resulotion HLS video
  2. set the player option 'enableLowInitialPlaylist' to true
  3. set the player option 'loop' to true
  4. play the video

Results

video starts with low resolution on every loop iteration

Expected

video starts with low resolution on first loop iteration only

Error output

-

Additional Information

Please include any additional information necessary here. Including the following:

videojs version

what version of videojs does this occur with? video.js 7.18.1

Browsers

Google Chrome / Safari / Firefox *

Platforms

MacOS / Windows

Other Plugins

-

Other JavaScript

-

welcome[bot] commented 2 years ago

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.