clappr / clappr-level-selector-plugin

Clappr Level Selector Plugin
MIT License
76 stars 56 forks source link

current level quality not saved after player stopped #80

Closed ewwink closed 5 years ago

ewwink commented 5 years ago

Select any quality, after played stop the player then play again. The control show previous level but actually it try to download highest level or set to AUTO.

var playerElement = document.getElementById("player-wrapper");

var player = new Clappr.Player({
  source: 'https://wowza.peer5.com/live/smil:bbb_abr.smil/playlist.m3u8',
  mute: true,
  height: 360,
  width: 640,
  plugins: [LevelSelector],
});

player.attachTo(playerElement);

plugin used

https//cdn.jsdelivr.net/gh/clappr/clappr-level-selector-plugin@latest/dist/level-selector.min.js
ewwink commented 5 years ago

It solved by rewriting this plugin, if anyone interested you can look my repo Clappr Quality Selector Plugin it has few more features.

And thanks for this plugin :+1:

leandromoreira commented 5 years ago

@ewwink don't you want to write a PR for this plugin?

ewwink commented 5 years ago

I want do that but I can't install Clappr on Windows, npm complaining about ajv not compatible with the OS..