hls.js icon indicating copy to clipboard operation
hls.js copied to clipboard

level change issue

Open 0crypto0 opened this issue 6 years ago • 2 comments

Hi,

I'm trying to load a video and set the level to a specific level that will be set for the entire time of the video.

I tried several things :

  1. set hls.currentLevel on manifest parsed event, but the level is keeps changing throughout the video.
  2. set autoStartLoad to false in the options, call startLoad in manifest parsed and then setting loadLevel the video is playing but no image is shown.

There is not enough data about this in the docs, What is the best practice for such a case?

0crypto0 avatar Jul 12 '20 06:07 0crypto0

anyone?

0crypto0 avatar Jul 14 '20 11:07 0crypto0

See "Quality switch Control API" under API Documentation https://github.com/video-dev/hls.js/blob/master/docs/API.md#quality-switch-control-api

set hls.currentLevel on manifest parsed event, but the level is keeps changing throughout the video.

Your setting is probably being overwrittem by startLevel. Set hls.startLevel on or before the manifest parsed event along with the other settings mentioned in the docs to prevent ABR behavior from kicking in.

robwalch avatar Jul 16 '20 21:07 robwalch