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

IE9: Error loading media: File could not be played [object MediaError]


I have a player on my page and in IE9/Win7 it shows this error: "Error loading media: File could not be played." Playback works in all other browsers including IE8/XP.

http://dev.metlifeyourlife.com/
(You should see a video popup on page load, if not there is a watch video widget in the site sidebar)

The site is running the WP plugin 2.1.1 and its JS is what is being used here. I'm embedding this player into the popup with this:

bc.. jwplayer("overlay_content").setup({
file: "http://dev.metlifeyourlife.com/wp-content/uploads/2014/01/Hungry-Wake-Up-Kitty.mp4",
height: 320,
image: ".../video_intro.jpg",
width: 520
});



Everything appears correct except what I see mentioned here in the top answer:

http://stackoverflow.com/questions/14874624/jwplayer-not-working-in-internet-explorer

I don't see Content-Length or Transfer-Encoding in the header information for this MP4 in the dev network tools.

Jeremy

9 Community Answers

JW Player

User  
0 rated :

A test user in our group gets this on Firefox on PC.

JW Player

User  
0 rated :

Your server is sending the wrong MIME-type for your video - "application/octet-stream" should be "video/mp4".

JW Player

User  
0 rated :

I finally saved this in a text file, so I can copy and paste it. This comes up with amazing regularity!

Every file that a server provides comes with an HTTP header that tells the browser what kind of file it is. Your server is producing the video with a MIME type of *application/octet-stream*, whereas it needs to be *video/mp4*. Your server administrator needs to fix this. If you can edit your own *.htaccess* file on the server, you can add this line:

*AddType video/mp4 .mp4*

But it really would be best if the server administrator corrected the error in the server configuration.

JW Player

User  
0 rated :

Thank you, I have put in a ticket with IT to change this. I'll update this thread with the result.

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes, it should be set on a server level, but can be done with .htaccess.

JW Player

User  
0 rated :

Now that I know what to look for, I see the video content-type is actually text/plain. I think changing it will resolve this bug.

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes, it will fix it.

JW Player

User  
0 rated :

That did the trick, thanks! I see now the content-type was actually text/plain.

Our video is on the site and I'm seeing jerky or stop-and-go playback in Firefox and Chrome on PC. It's not due to bandwidth--the video buffers quickly. I'll create a new forum post.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

This question has received the maximum number of answers.