clappr/clappr-level-selector-plugin

mp4 support

sharipovmarat opened this issue · 3 comments

Does plugin support mp4 videos link?
I have videos with different qualities. How can i create quality selector?

https://example.com/video/2015_1080p.mp4
https://example.com/video/2015_720p.mp4
https://example.com/video/2015_480p.mp4

Hi there, nope bc:

  • must trigger PLAYBACK_LEVELS_AVAILABLE with an ordered array of levels [{id: 3, label: '500Kbps'}, {id: 4, label: '600Kpbs'}]
  • to have a property levels, initialized with [] and then after filled with the proper levels
  • to have a property currentLevel (set/get), the level switch will happen when id (currentLevel) is changed (playback.currentLevel = id)
  • optionally, trigger events: PLAYBACK_LEVEL_SWITCH_START and PLAYBACK_LEVEL_SWITCH_END
    id=-1 will be always the Auto level

I hardly understand tech details you provided, but hey, it's 2019 now! And JW and VideoJS had this mp4 quality switch feature since their very early versions.
Thank you for keeping up the good player anyway!.

I hardly understand tech details you provided, but hey, it's 2019 now! And JW and VideoJS had this mp4 quality switch feature since their very early versions.
Thank you for keeping up the good player anyway!.

any news?