vime-js / vime

Customizable, extensible, accessible and framework agnostic media player. Modern alternative to Video.js and Plyr. Supports HTML5, HLS, Dash, YouTube, Vimeo, Dailymotion...
https://vimejs.com
MIT License
2.75k stars 154 forks source link

Cannot set HLS quality programmatically #285

Open DoomDesign opened 2 years ago

DoomDesign commented 2 years ago

Current, unexpected behaviour: When trying to set the hls quality programmatically, the player does not load the video and keeps buffering / spinning the loading indicator.

Example Codepen: https://codepen.io/DOOMdesign/pen/OJOpyaM (Tested in Chrome & Firefox, same bug in both browsers)

Really simple setup. First this occured to me with Angular, then I set up this vanilla JS codepen using the CDK library to see if the bug is there, too. And yes, it is. When I don't try to set the quality, the video plays just fine, using the 'Auto' quality level.

Expected behaviour: When setting the quality level programmatically, the player should play (or prefer) the selected source quality, given that the value is valid.

Edward-Ta commented 1 year ago

Exactly what I am trying to do right now.