-
Notifications
You must be signed in to change notification settings - Fork 791
Add control button to switch to a different HLS stream manually? #519
Comments
+1 here |
+1 |
We don't have a way of doing that right now short of overriding adaptive streaming entirely but it's something we'd definitely like to add. |
+1 |
1 similar comment
+1 |
+1 videojs-resolution-switcher plugin has videojs-contrib-hls support (on branch), but it works with some flaws. Also there is videojs-quality-picker which can be integrated manually |
I'm end up using https://github.com/streamroot/videojs5-hlsjs-source-handler (based on Dailymotion's hls.js library) To enable bitrate selection use player.qualityPickerPlugin(). |
@halibegic : any sample implementations for this plugin? |
@halibegic : thanks for the link. May i know what these two files are?
|
hls.min.js => https://github.com/dailymotion/hls.js/tree/master |
So I've been able to change qualities by just changing the source to one of the playlists on hls.playlists.master.playlists.
To switch back to auto I just reload the master.m3u8 playlist again. Probably not optimal but it gets the job done until manual level switching is actually implemented. |
We have since added https://github.com/videojs/videojs-contrib-quality-levels , which is a plugin that provides an easy API for enabling/disabling quality levels. If you see any issues with this plugin, please let us know. Thanks! |
@gesinger can you just let us know how to use that plugin, I tried to use it but getting nothing to be in the player menu. The HTML I am using:- JS :-
I am using video.js V5.18.0, videojs-contrib-hls V5.3.2 and videojs-contrib-quality-levels.js v 2.0.3 But I am getting nothing on the menu of the player. |
This is similar to this issue (videojs/videojs-contrib-quality-levels#13), the resolution was to listen to the |
@halibegic the sample at http://halibegic.info/p/hls/ is not working anymore, can you upload it again ? Thanks. |
Hello everybody! @halibegic or somebody can say why your sample does't work on my android 7? |
Hi, tried the sample on Windows (Chrome) and works fine the quality selection button is there, but on Android and iOS seems not to have any effect and there is no quality select button. Any idea why ? |
I thought it would be OK to share my solution as well:
I suppose you could say it is a little bit 'hack-ish', but it works. |
@halibegic sorry, I'm newbie and I met the trouble. I can't use grunt to create vjs-hls.min.js from https://github.com/streamroot/videojs5-hlsjs-source-handler like what you did. Can you give me some suggestion or tutorial to create this file. Thank you! |
@halibegic oh, What a surprise. Last night I did not sleep to build index.html just like you. |
huh. I have checked console and found an error: Uncaught TypeError: player.qualityPickerPlugin is not a function!!! |
You need to include vjs-quality-picker.js. You can download it from the https://github.com/streamroot/videojs-quality-picker and run the command npm install, npm run build. In case you need dist directory dist-videojs-quality-picker.zip |
@DarkMatterCore How can I make it reproduce the highest possible quality in your code? Thank you |
Sometimes the adaptive streaming doesn't works so well.
For example, a patient viewer can tolerate the long buffering time to watch a HD(1080p) video, but adaptive streaming will assign him/her a low-quality video automatically..
I was wondering whether there is a recommended way in videojs-contrib-hls to switch HLS stream manually..
The text was updated successfully, but these errors were encountered: