level change issue
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 :
- set hls.currentLevel on manifest parsed event, but the level is keeps changing throughout the video.
- 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?
anyone?
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.