clappr-level-selector-plugin icon indicating copy to clipboard operation
clappr-level-selector-plugin copied to clipboard

mp4 support

Open sharipovmarat opened this issue 6 years ago • 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

sharipovmarat avatar Oct 22 '18 10:10 sharipovmarat

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

leandromoreira avatar Oct 22 '18 14:10 leandromoreira

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!.

Media182 avatar Jul 17 '19 10:07 Media182

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?

Allan-Nava avatar Dec 06 '19 14:12 Allan-Nava