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

Flash fallback with hls error #9

Open
nbashev opened this issue Jan 16, 2016 · 3 comments
Open

Flash fallback with hls error #9

nbashev opened this issue Jan 16, 2016 · 3 comments

Comments

@nbashev
Copy link

nbashev commented Jan 16, 2016

I'm unable to play live hls video with this code on flash enabled browser. Html5 works as expected.
For flash only enabled browsers (iceweasel) I get:
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found for this video.
After this error I get another:
TypeError: currentTech is undefined

I already did initialized the player with the following techOrder:
techOrder : ['flash', 'hlsjs', 'html5']
and setup hlsjs for live
hlsjs : {live : true}

Is there something that I'm missing?

@whatvn
Copy link
Contributor

whatvn commented Jan 16, 2016

This plugin is html5 only, it only support browser with MSE enabled, no flash fallback.

@campones
Copy link

I tried on IE11 and it didn't work, worked fine on chrome firefox43 opera, and on chrome android 4.0.4

@campones
Copy link

campones commented Mar 3, 2016

I think what you have to do in that case is setup that mangui custom videojs.swf, this flashplayer can handle hls.
Either modify the video.js swf path or override it inline
videojs.options.flash.swf = "/path/to/local/video-js.swf"

Then in the tech order I used the following order that was the only one that would also work with android and IE
techOrder : ['hlsjs', 'flash', 'html5']

but to have this working, I had to duplicate the souce in the video tag and change the type so I have

<source type="application/x-mpegUrl' src=.. > for hlsjs and html5
<source type="video/mp4" src=.. >  for the flash player

but I agree that this isn't a very gracious solution

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

3 participants