Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not work with video.js 5.20.1 videojs-contrib-hls * @version 5.8.1 #19

Closed
louishot opened this issue Jul 14, 2017 · 6 comments
Closed

Comments

@louishot
Copy link

louishot commented Jul 14, 2017

Hello,

I try to use it

`

<script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/5.20.1/alt/video.novtt.js"></script> <script src="https://unpkg.com/videojs-contrib-quality-levels@2.0.3/dist/videojs-contrib-quality-levels.js"></script> <script src="https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js"></script> <script src="https://players.brightcove.net/videojs-thumbnails/videojs.thumbnails.js"></script>

<source src="https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" type="application/x-mpegURL">
<script> var player = videojs('video'); player.qualityLevels(); </script>`
@mjneil
Copy link
Contributor

mjneil commented Jul 18, 2017

What issues are you experiencing? Is it just that the list is empty? The quality level list will initially be empty and won't be populated until after it has finished downloading the master manifest. You can listen to the addqualitylevel event to be notified when quality levels are added to the list

var player = videojs('video');
player.qualityLevels().on('addqualitylevel', function(event) {
  console.log(event.qualityLevel);
});

@buccfer
Copy link

buccfer commented Oct 19, 2017

@mjneil in chrome for android the list is always empty.. is there any known issue or anything I'm missing?

@mjneil
Copy link
Contributor

mjneil commented Oct 19, 2017

@buccfer are you overriding androids native hls playback? https://github.com/videojs/videojs-contrib-hls#overridenative If you don't do this then the list will be empty because native playback will be used

@buccfer
Copy link

buccfer commented Oct 19, 2017

@mjneil I just did and it's working now.. thanks!

@buccfer
Copy link

buccfer commented Oct 19, 2017

@mjneil Using overrideNative makes Safari to fail after a random amount of time. As stated here videojs/videojs-contrib-hls#1005. Do you know how to fix this?

Best.

@mostafamashayekhi
Copy link

@mjneil @buccfer can you explain with example code how to overriding androids native hls and fixed empty list in android chrome I'm newbie in vidoejs , thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants