video.js icon indicating copy to clipboard operation
video.js copied to clipboard

MPEG DASH player.load() fails in Chrome and Firefox

Open glennolsen opened this issue 11 years ago • 17 comments

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

glennolsen avatar Mar 03 '15 02:03 glennolsen

First sentence should read:

Using video tag

got stripped.

glennolsen avatar Mar 03 '15 02:03 glennolsen

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?

mmcc avatar Mar 03 '15 18:03 mmcc

Matt,

Got pulled in another direction. Will be back to this next week and will set up a small test case. Thanks...

glennolsen avatar Mar 05 '15 18:03 glennolsen

No worries at all, just ping the thread when you get a chance.

mmcc avatar Mar 05 '15 22:03 mmcc

:+1:

chemoish avatar Aug 06 '15 22:08 chemoish

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.

screen shot 2015-08-06 at 3 23 36 pm

screen shot 2015-08-06 at 3 25 21 pm

chemoish avatar Aug 06 '15 22:08 chemoish

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.

jemoreno avatar Sep 30 '15 15:09 jemoreno

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 avatar Oct 31 '15 08:10 sprice

@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?

gkatsev avatar Nov 17 '15 23:11 gkatsev

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

sprice avatar Nov 18 '15 04:11 sprice

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.

sprice avatar Nov 18 '15 04:11 sprice

I think it could be that load/play are getting called too early before contrib-dash is actually ready to go. @imbcmdth @forbesjo thoughts?

gkatsev avatar Mar 28 '16 21:03 gkatsev

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

hyurtseven81 avatar Mar 29 '16 03:03 hyurtseven81

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/

syedbaqarrizvi avatar Apr 15 '16 11:04 syedbaqarrizvi

@forbesjo @nickygerritsen @chemoish know if this is still an issue with the latest contrib-dash, dashjs, and videojs?

gkatsev avatar Jul 25 '16 22:07 gkatsev

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 .

chemoish avatar Jul 25 '16 23:07 chemoish

Alright, going to close this as fixed then. We can always re-open if it's still an issue.

gkatsev avatar Jul 26 '16 00:07 gkatsev