Closed ewwink closed 5 years ago
solved, its not playback.currentLevel = id
but hls.currentLevel = id
// or event PLAYBACK_BITRATE
player.listenToOnce(player.core.activePlayback, Clappr.Events.PLAYBACK_LEVELS_AVAILABLE, function(levels){
// set default quality to id 0, in my case it lowest quality
player.getPlugin('hls').currentLevel = 0;
// tell level selector to sync the labels
player.getPlugin('level_selector').selectedLevelId = 0;
})
@leandromoreira you didn't know this or what? why this function not added to the plugin or Readme?
I have external
.m3u8
URL which contains 1080p, 720p, 360p, this plugin will first try the highest quality and sometimes it take too long to load.Can I exclude 1080p or by default it selected to 360p?
Thanks