Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

MP4 Playback issues.


Hi there,

I have JW Player setup at the following address:
http://tabtrackside.unicorn4.com.au/

The player will fade in after the countdown.

The issues I am having revolve around getting our mp4 video to playback with 'flash'. The player either does not show at all (Safari, FF w7), displays a black box (FF osx), or displays this error message (IE8 & IE9 win7):
'Error loading player: could not load player configuration'.

The video works with jwplayer in chrome.

The console also logs this error message in firefox:
'Specified "type" attribute of "video/mp4" is not supported. Load of media resource xxxxxx/xxx.mp4 failed'

What confuses me is that the video will play in the browser, if the URL for the file is visited. But not through jwplayer.

The configuration for this player is:

jwplayer("video-container0").setup({
image: "xxx",
file: "xxx.mp4",
primary: "flash",
height: 386,
width: 683
});

I have tried setting html5 as the primary, and have flash as a fallback, along with using different filetypes (.ogg & .webm) as fallbacks - the same occurs for the above.

I have also found that when not having flash installed in IE9, it will allow the video to play (using html5).

All of this leads me to think that there may be an issue with the .swf file jwplayer is using, and the latest version/s of flash?

I also have another jwplayer instance with RTMP & HLS up and running, which is great.

If you could help asap, that would be great.

Warm regards,

Josh.

8 Community Answers

M...

User  
1 rated :

Not sure what the problem with your setup is, but this shouldn't be difficult.

For openers, an 11+ MB file for 18 seconds of video is overkill. I reprocessed it, and cut it down to about 2MB.

I'm not clear about why you want to force the video to use Flash. Why not let all the modern browsers and mobiles out there use native HTML5 video support, and fall back to Flash only if absolutely necessary?

In any event, there isn't really any problem with getting the video to play in either mode:

HTML5: http://misterneutron.com/JW6Trackside/

Flash: http://misterneutron.com/JW6TracksideFlash/

Andrew

JW Player Support Agent  
1 rated :

I’m also seeing our script being loaded multiple times. In addition to the cloud hosted player being called, you are also utilizing jwplayer.js and our HTML5 javascript on your live page. Since we’re tying the cloudhosted player to your account as is, you should only need to be using the cloud hosted variant.

h...

User  
0 rated :

MisterNeutron,

Thanks for that, and it's good to see the video file playing on a different server.

I also managed to copy your markup and add in the wp_head() and wp_footer(), and have the video playing on my server. And this worked cross-browser.

As for forcing flash, it was just simply because flash (generally) 'just' works.

Although, the problem still exists when I am using jwplayer in the full-markup for my site. Is there anyway you could have another look and point out any possible conflicts?
Either that, or any solutions to the following error:
'Specified "type" attribute of "video/mp4" is not supported. Load of media resource xxxxxx/xxx.mp4 failed'

Thanks for your help,

Josh.

h...

User  
-1 rated :

Hey Andrew,

Sorry, I saw your reply after I had posted my response...

I have removed our self-hosted files, and tried again (on the home page), but this still yields the same initial result - as described in my first question. Any browsers using flash (with the exception of chrome) fail.

We're hiding the video for launch, but I will try to ensure it is available on staging for you to investigate (The link in the initial question). I'm feeling a bit bamboozeled by it all.

Thanks,

Josh.

Andrew

JW Player Support Agent  
0 rated :

If you are able to make a standalone page with your video implementation (akin to Mister Neutron above) that would assist quite a bit in eliminating possible causes for the problem. Additionally, I am having to load the entire file before playback. Would it be possible to re-encode this file with handbrake? I can provide some additional instruction if needed.

M...

User  
0 rated :

@Andrew: my slimmed-down version of the video has the moov atom at the beginning, where it belongs.

h...

User  
0 rated :

The problem ended up being because of a video embedded using the HTML5 <video> tag. it was hidden away in another template file, and used solely for mobile browser-widths. And this was in no way related to what jwplayer was trying to control too. So whenever the browser couldn't play .mp4 by default, it seemed to cause jwplayer to not want to play the video either.

Lessoned learned:
Don't embed videos in players/elements which aren't related to jwplayer. If using jwplayer, use jwplayer for all players on the page.

Andrew

JW Player Support Agent  
0 rated :

@MrN Indeed! That would make sense. :)

@hosting – Great news! Glad you’ve got it working.

This question has received the maximum number of answers.