MPEG DASH player.load() fails in Chrome and Firefox
Using <video> tag with autoplay, source loads and plays properly when page loads.
On button click I switch sources:
myButton.addEventListener('click', function() {
player.src('http://54.88.249.216:1935/avod/_definst_/mp4:amazons3/Panels_Standard.mp4/manifest.mpd');
player.load();
});
Fails with error:
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The video could not be loaded, either because the server or network failed or because the format is not supported.
URI is exactly the same on page load, but a different media file.
In Firefox, videojs reports the initial attempt (on page load) as well as the button click to load the file as an error.
Using Wowza on the backend with no errors in the server logs. No issues with my use of Wowza and this media for any other player protocols (RTMP or HLS).
I am using videojs with videojs-tech-dashjs and dash.all
First sentence should read:
Using video tag
got stripped.
This might be better suited for the Dash.js repo, but let's try to debug this here first. Mind putting together a reduced test case on JSBin for us to check out?
Matt,
Got pulled in another direction. Will be back to this next week and will set up a small test case. Thanks...
No worries at all, just ping the thread when you get a chance.
:+1:
Similar issue, when calling player.src({src: '...', type: 'application/dash+xml'}) it loads the DASH manifest and is ready to be played.
Calling player.load() results in a broken player interface.


I am experiencing the same issue. The video played perfectly in firefox using video.js 4.12 but when I decided to go to 5.0 it stopped working, however it plays perfectly in chrome.
Here's a test case using
- video.js 5.0.0
- videojs-contrib-dash 2.0.0
Tested on OS X
- works in Chrome 46
- works in Firefox 43 (nightly)
- audio only in Safari 9 (I wonder if this is a problem with the media)
@sprice I see that you're just setting the src with a string, have you tried setting the source with an object containing src and type properties?
Also, do we have a corresponding issue on the dash repo?
Weird. I think I got my issues mixed up. My test case above is using videojs-contrib-dash, not videojs-tech-dashjs.
Regardless, I updated my test case here using videojs-contrib-dash and the same sort of error is occurring. The .mpd loaded in the click handler will work fine if it's the one loaded initially. In Chrome I found if I triggered the click enough times it ended up working.
There is no corresponding issue in videojs-contrib-dash
Replacing player.load() with player.play() in the click handler works for me. I still get the Media Not Supported error but it starts playing fine.
I think it could be that load/play are getting called too early before contrib-dash is actually ready to go. @imbcmdth @forbesjo thoughts?
You can use shaka player as videjs tech. You can use my fork of metacdn repository. It is using on production and there is no problem
https://github.com/hyurtseven81/videojs-shaka-player
I am having a same error in firefox .
Videojs version 5.8.8 dash version 2.0.0 Contrib dash 2.0.0
Working fine everywhere but its not working in Firefox 45.0.2. sometimes it works sometime its not .
http://bestsongs.pk/videos/bol-do-na-zara-azhar-2016/
@forbesjo @nickygerritsen @chemoish know if this is still an issue with the latest contrib-dash, dashjs, and videojs?
I don't think I'm even the latest video.js, but maybe. Works for me in IE 11, Edge, Chrome, Firefox. Using DRM. Haven't integrated anything with Safari as I will be leveraging Fairplay and not Dash when I get back :airplane:.
On Jul 25, 2016 3:38 PM, "Gary Katsevman" [email protected] wrote:
@forbesjo https://github.com/forbesjo @nickygerritsen https://github.com/nickygerritsen @chemoish https://github.com/chemoish know if this is still an issue with the latest contrib-dash, dashjs, and videojs?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/videojs/video.js/issues/1918#issuecomment-235107996, or mute the thread https://github.com/notifications/unsubscribe-auth/AAhhx1SKsMmqxGlxMKbrrtxWaftRpI2gks5qZTr7gaJpZM4DodrA .
Alright, going to close this as fixed then. We can always re-open if it's still an issue.