videojs / videojs-contrib-hls

HLS library for video.js
http://videojs.github.io/videojs-contrib-hls/
Other
2.84k stars 793 forks source link

Question: how to fallback to dash when hls is not supported #1270

Closed ahmadawada11 closed 6 years ago

ahmadawada11 commented 7 years ago

I am using the videojs-contrib-hls and videojs-contrib-dash plugins,

I need to fallback to dash if the browser unable to play hls. i placed the links in src(hls,dash), but it is not working. i tired it on firefox version 43.0.

if flash is installed and the tech order flash then html the player will play the hls.

mjneil commented 7 years ago

Is the issue that when providing an HLS and DASH source and HLS is not supported, the player falls back to playing HLS with flash instead of first trying the DASH source? This could be be fixed by having html come first in the tech order.

Or is the issue that when providing an HLS and DASH source, HLS is not supported, and flash is NOT installed, the player fails with the HLS source and does not ever try the DASH source?

If you could provide a code example that might be helpful

ahmadawada11 commented 7 years ago

yes the issue that when providing an HLS and DASH source, HLS is not supported, and flash is NOT installed, the player fails with the HLS source and does not ever try the DASH

in the console i see this error

InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable in contrib-hls

forbesjo commented 7 years ago

Could you share a jsbin of your code for debugging?

ghost commented 6 years ago

hi guys,

trying the same fallback from hls to dash without success. Dash fails on android , my live streams get latency with dash. All is pefect with hls .... is there a sense to do that ? perhaps i have to choise from hls to dash ?

thanks for help,

eric

gesinger commented 6 years ago

Closing for now. If you are still experiencing this issue with the latest version of videojs-contrib-hls, please re-open the issue and provide a reduced test case using this template. Thank you.