-
Notifications
You must be signed in to change notification settings - Fork 27
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
hls as fallback when using shaka plugin #7
Comments
@deedos quick solution - check for MSE support in browser and configure mpeg-dash blayback if MSE is supported and HLS if not. In real world you also need to check for flash support etc (Clappr.Browser.hasFlash) quick and dirty sample
|
I think you can just rely on var player = new Clappr.Player(
{
sources: ['http://nasatv-lh.akamaihd.net/i/NASA_101@319270/master.m3u8', 'https://shaka-player-demo.appspot.com/assets/angel_one.mpd?_=1446383792251'],
plugins: [DashShakaPlayback],
// now, if you want to force flash you need to put Clappr.FlasHLS on
// this list first otherwise it'll use hls.js
parentId: '#player'
}); |
Thanks @leandromoreira I forgot to mention sources option. @deedos just keep in mind browsers that reports support for MPEG-DASH and MSE but dash support is unstable (firefox on desktop) or unusable (firefox on android). IMHO HLS as primary playback and DASH as fallback looks more interesting at the moment. |
Hi @me-vlad and @leandromoreira , thanks you both for the help! It seems like the sources plugin, the cleanest way to go. I did try with the sources plugin and it works, MPEG-DASH is the priority, but, when using browsers with no MSE support (firefox before 45), Clappr.FlasHLS does not load at all. My code as follow
When using Firefox older than 45, the player reports that there is no valid sources (If I remove the MPEG-DASH source, it loads FlashHLS and plays correctly) @me-vlad It seems to me that MSE and MPEG-DASH on google Chrome has support and it's stable for quite a while now, isn't it ? Thanks again |
@deedos try this: plugins: [DashShakaPlayback, Clappr.FlasHLS] |
@deedos yes, on desktop version of the Chrome MSE support is more stable than on FF. |
@leandromoreira I did try |
@leandromoreira @deedos there was an issue on Clappr (clappr/clappr/issues/941) that prevented the fallback behavior to work properly. It's been fixed already, and will be included in the next release. |
can you test pointing clappr to the header @deedos ? |
Hi @leandromoreira . Do you men build clappr after @towerz commit and use it locally for testing ? |
yes @deedos 👍
=) Since we didn't release a new version yet. |
@deedos and try to use latest FF with MSE fixes: |
@leandromoreira Having some issues building:
I have tried to install nodejs-legacy but does not work neither. S.O Ubuntu 15.10 thanks |
@deedos you need to use node (v5.10.1) in a higher version: $ rm -rf node_modules
$ npm install I built a version locally, you can use it to test. http://s000.tinyupload.com/?file_id=75972455017971560158 |
@deedos do you think you can close this one? |
Sorry for the lack of resposne, Was offline for a couple of days. The error: [error][Container] error on event container:click trigger - ReferenceError: MediaSource is not defined The code;
If I change the sources positions ad make the hls first, It works for FF without MSE but for Chrome with MSE, it plays the hls first as well. Thanks again |
Thanks @deedos that's another issue :D |
@deedos I just released a new version fixing that behavior (FF with no MSE working), can you test it again? |
Hi.
My idea is using dash as primary and for old browsers, fallback to an hls with Flash. My code as follow:
Even on browsers with MSE enabled, tha player gives priority to the hls stream. How to state the priority to the MPEG DASH stream ?
many thanks in advance
The text was updated successfully, but these errors were encountered: