kmoskwiak / videojs-resolution-switcher

Resolution switcher adds the ability to select the video quality in video.js player.
https://kmoskwiak.github.io/videojs-resolution-switcher/
Other
403 stars 243 forks source link

ABR HLS based on multiple playlists given as sources instead of single playlist file #108

Closed marcusfrenkel closed 6 years ago

marcusfrenkel commented 6 years ago

Hi,

For Adaptive bit rate HLS normally the player reads a single file (HLS master playlist) that points to multiple renditions of the video. In my case however, every playlist points to a single video file at different bit rate. Is it possible to achieve ABR HLS by setting up videojs with multiple sources, wherein each source is different rendition?

I setup sources in this fashion: player.src([ { type: 'application/x-mpegURL', src: 'http://streamer.tld:8081/vod/180p_file/playlist.m3u8' }, { type: 'application/x-mpegURL', src: 'http://streamer.tld:8081/vod/360p_file/playlist.m3u8' } ]);

I use videojs-contrib-hls plugin to render HLS.

[Sorry, wrong place for this issue]