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

Error loading media: File could not be played


Hi,

I'm getting Error loading media: File could not be played as per your trouble shooting it should be a coding issue. The file plays OK in Chrome but not in FF 31.0 or IE10 my OS is Windows 8.

I have the following in the head, <script src="jwplayer.js" ></script>
<script>jwplayer.key="ZfvVkVK1fJEUCcRYyDc/g1dGx2vjh6eHF+kjOA==";</script>

embedded code,
<div id="myElement">Loading the player...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
file: "URL-to video",
image: "",
width: 352,
height: 240
});
</script>

Do we need to change the myElement name?

Can we use relative url to the video file.

My servers are load balanced and have the mp4-es mime type I will use mp4. I just need this to work on all browsers all OS.

Thanks for your help.

Regards
Simon

17 Community Answers

mobile

User  
0 rated :

I've added the mime type in mime.types on my web servers video/mp4 still getting the same error message Error loading media: File could not be played. Media plays in Chrome and was formatted in H.264 won't play in FF IE10.

MisterNeutron

User  
0 rated :

Please give us a link to your site. JW Player works fine with FF and IE.

mobile

User  
0 rated :

It's adult content not sure you'll want to do that. If you could point me to what I'm doing wrong. If video is encoded in H.264 but not in AAC audio could that be an issue.

mobile

User  
0 rated :

If I can get this to work I'll definitely by the l;license.

mobile

User  
0 rated :

Also how do I have the video pre-load the first frame so I don't have to create images?

Thanks for your help.

Ethan Feldman

JW Player Support Agent  
0 rated :

Put up a SFW test page then.

mobile

User  
1 rated :

How do I put up a swf test page, please point me to instructions.

Ethan Feldman

JW Player Support Agent  
0 rated :

I mean a safe for work test video / page.

mobile

User  
0 rated :

My current mp4 files work so why won't they play in FF and IE10 this is just to much hassle and to time consuming. Might as just well embed mp4 manually and save myself lots of time. Looks like you have to create a preview thumb as well not like with videojs. Wasted to much time on this.

Ethan Feldman

JW Player Support Agent  
-1 rated :

Yes, you need to create a preview image.

MisterNeutron

User  
0 rated :

@mobile: Throwing a tantrum isn't going to help. JW Player works just fine with all major browsers. Somewhere, you're making a mistake, but without seeing a live page, we can't tell what the mistake is.

Give us a link to your site, using a non-gross-porno video (those do exist, you know!).

Sure, you can just use a <video> tag with your MP4, as long as you're willing to close off all WinXP users, and all users of FF under OSX, and all Opera users. Your call.

mobile

User  
0 rated :

Hi,

Here is a test page, plays in Chrome not in FF IE10
http://www.japxxx.com/mp4-test/MP4-test.html

Please advise the issue, I suspect it's a web server mime type problem.

Thanks for your help

Ethan Feldman

JW Player Support Agent  
-1 rated :

Yeah, this file – http://www.japxxx.com/mp4-test/clipcanvas_14348_offline.mp4

Has the mime type – text/plain

It has to be video/mp4

mobile

User  
0 rated :

OK where do I change that

Ethan Feldman

JW Player Support Agent  
0 rated :

You should ask your hosting provider to add the MP4 MIME TYPE for you.

MisterNeutron

User  
0 rated :

If you have access to your own .htaccess file, you can add this line:

AddType video/mp4 .mp4

But better to get the web host to fix the server configuration.

Ethan Feldman

JW Player Support Agent  
0 rated :

Indeed.

This question has received the maximum number of answers.