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


Hello
I had this working and I am using same code and I have noticed the last two months of videos are not playing in IOS Apple mobile. It plays on desktop with no problems. Can someone else look at this and see what I have set wrong. -- Thanks.

Working File:
http://egfirstmedia.org/Video/03-31-13VSermon.html

Not working File:
http://egfirstmedia.org/Video/05-19-13VSermon.html

Tim

37 Community Answers

JW Player

User  
0 rated :

you're the using m4v format, right?

have you tried converting the video to h.264 mp4 iso v2 ?

This format will work on an iPhone and iPAD.

m4v is mepeg-4 whereas h.264 is known as MPEG-4 Part 10 or AVC (for Advanced Video Coding).

JW Player

User  
0 rated :

Check that there are no spaces in the file name on the server.

I just discovered that, when you click Add Media, the file name is displayed in the Media Library without spaces even if there are spaces in the actual file name. When you try to play the video you get 'Error Loading Media: File could not be played' (HTML5 mode) or 'Error Loading Media: File not found' (Flash mode) because the player is trying to find the file name without spaces which of course do not exist. Renaming the file (removing the spaces) fixed the problem.

Ethan Feldman

JW Player Support Agent  
1 rated :

I can’t get your site to load?

Ethan Feldman

JW Player Support Agent  
0 rated :

@Pat – Glad you got that solved. Thanks for reporting.

JW Player

User  
1 rated :

I am working with h.264 mp4 file using adobe premiere pro. I do not use spaces in file names so that is not it. Desktop plays fine just doesn't play on iphone. Site is working. Thanks for all the suggestions -- Any more?

Thanks
Tim

JW Player

User  
-1 rated :

Hi Ethan,

I also encounter error loading media :File could not be played in FF and IE but it worked fine on Chrome here is my test page http://www.inquirer.net/test_page1


Thanks,

JW Player

User  
-1 rated :

trying to embed a sample video into my backup file used for my site and then play it using Dreamweaver.

So I converted the .3gp video file to a .f4v
Then I pasted that into my "video" file in my site folder

so that makes it the following link:
users/bobvogel/desktop/bobsite backup 11/video/2011-12-06_21-01-37_495.f4v
The following inside the header:
<script src="http://jwpsrv.com/library/LNjY0MvdEeKBfxIxOQulpA.js"></script>
Then placed this below the body where I want it to show.
<div id='my-video'></div>
<script type='text/javascript'>
jwplayer('my-video').setup({
file: '///file/bobsite backup 11/video/2011-12-06_21-01-37_495.f4',
width: '640',
height: '360'
});
</script>

Saved it of course:
Then inside the .html file I double clicked to view it.
Error inside the player. Can't locate the file!

Tried every combo but Sunday and can't get anything to play.

You must have a sample code and file that is very basic to understand the format. Help!

JW Player

User  
0 rated :

Changed the video format to .mp4 and still no luck. Also no response from anyone here.

JW Player

User  
0 rated :

@L Robert Vogel - a link to your page would help. I suspect your problem has to do with trying to point to a file with that "local" URL form ("///file/bobsite....").

But the basic embedding technique really couldn't be much simpler:

http://earlyout.org/JW6embed/

Ethan Feldman

JW Player Support Agent  
0 rated :

@Tim – Link?

@L Robert Vogel – Link?

@Oscar – Your video player on the homepage plays this file fine in Firefox – http://www.inquirer.net/wp-content/themes/Homepage_2012/vid/europe-flood-prague-afp-mp3.mp4

JW Player

User  
0 rated :

Link for Ethan

http://egfirstmedia.org/Video/05-19-13VSermon.html

Will play on desktop but not on iphone.

Thanks

JW Player

User  
0 rated :

Hi,

I also have a similar problem. I'm trying to use the embedded player to play .m4a AAC audio files hosted on my Apache server. The HTML content of the page is generated by a python-based web application. The player displays fine, but when i hit play i get the error in question.

It's also interesting, that even if i change the filename in the script to a nonexistent file's name, i still get the same error (and not the 'file not found' one).

I also tried this with playing an mp3 file for testing purposes, which produced the same error.

I have the mime types configured on my server according to the document regarding Media Format Support.

Here is the link: http://54.217.229.14/flasktest/play

Attila

Ethan Feldman

JW Player Support Agent  
0 rated :

@Tim – Okay, this is an odd one.

Your link works in HTML5 mode on the desktop, in Chrome, but not on my iPhone, either.

The MIME TYPE seems to be set up correctly.

I would try to do the following as a test:

I would link to this file on our server in lieu of your playlist items – http://www.longtailvideo.com/jw/upload/bunny.mp4 (link to it as each file in your playlist)

See if it works on your iPhone then.

If it does, download the mp4 file and then put it on your server, then link to it as each file in the playlist, see if it works now.

If it works in both cases, then the issue is encoding and iOS, but if it doesn’t work when it is on your server, then it has to be another server side setting to change. iOS can be picky about both of these.

@Attila – This file doesn’t appear to exist – http://54.217.229.14/flasktest/rec.m4a

Not Found

The requested URL was not found on the server.

If you entered the URL manually please check your spelling and try again.

JW Player

User  
0 rated :

Hi Ethan,

The file does exist, but as it turns out i had to specify its url a different way in my webapp :)

Anyway, thanks for your help!

Ethan Feldman

JW Player Support Agent  
0 rated :

Np!

JW Player

User  
0 rated :

On Firefox I'm getting : Error loading media: File could not be played! but it still plays if you click on it.
On Chrome I'm getting this: NotFoundError: DOM Exception 8. File plays locally on Chrome though.
On IE works fine.
Using Win 7 and browsers up to date.
MIME is set correctly video/mp4 for.mp4
Code used is basic code provided for JW player:
bc.. <div id="besmartbrand"> </div>
<p><script type="text/javascript">
jwplayer('besmartbrand').setup({
image: 'http://besmartbrand.com/image/data/rainy-window-designed-end.jpg',
file: 'http://besmartbrand.com/image/data/BeSmartBrand.mp4',
width: '580',
height: '330',
autostart: false
});
</script></p>


A few weeks ago worked flawless on all three browsers!
Please help!
Link: besmartbrand.com/about-us

JW Player

User  
0 rated :

"Waiting for besmartbrand.com....." Endless - page never loads. Looks to me like you have server problems.

JW Player

User  
0 rated :

When the page finally did load, no problem in Chrome at all. FF showed me the error you're seeing. I'm still thinking "wonky server."

JW Player

User  
0 rated :

Yes, I gave up waiting for the page to load.

Ethan Feldman

JW Player Support Agent  
0 rated :

Yeah, not loading here either.

JW Player

User  
0 rated :

Sorry for that. I really had a server problem which is fixed now. Please guys look again.
All worked well a month ago.

JW Player

User  
1 rated :

Works ok for me in Chrome. The page has GZip Compression, though, which may account for the problem in FF.

JW Player

User  
0 rated :

FF shouldn't have any problem with the page being gzip'ed, as long as the MP4 itself isn't been served that way (it's not).

As a first step, I'd update to JW 6.5 (you're using 6.1, I believe). Another longshot, but try adding a type to the script call:

bc.. <script src="/jwplayer/jwplayer.js" type="text/javascript"></script>


It shouldn't matter, but it's worth a shot.

JW Player

User  
-1 rated :

I've upgraded to 6.5
Now it is working in all three browsers + Opera but it still gives the error message in FF. If I click on it, it works but that error message comes first whatever I tried. I tried also the suggested code for the player source that had as effect to make disappear the player. Any ideas?
Thanks for your insights.

Ethan Feldman

JW Player Support Agent  
0 rated :

It loads the video for me in FF and I don’t get any errors.

JW Player

User  
0 rated :

Response to Ethan LongTail:

"but if it doesn't work when it is on your server, then it has to be another server side setting to change. iOS can be picky about both of these."

So I applied the bunny test you posted and based on your response/suggestion above- it seems clear that something is wrong on my server side that needs to be changed . . . What might be some suggestions for these changes?

Currently my Jwplayer embeds do not work in IE or FF but works perfectly for Chrome.

any suggestions would be great! link: http://virulentmedia.com/FreeMusic.html

Ethan Feldman

JW Player Support Agent  
0 rated :

It might be because your server doesn’t have range header requests enabled.

This might be useful – http://threatpost.com/en_us/blogs/apache-plans-range-header-bug-fix-next-day-082611

JW Player

User  
0 rated :

Help! I am using the Publish Wizard to create code for streaming an mp4. The video plays just fine (from your website) on Chrome, FF, Safari, and Opera, but not on IE9. Here are links to the video and splash jpg: http://www.enchantmentrescueltd.com/video5.mp4
http://www.enchantmentrescueltd.com/video5_frame1.jpg
Any ideas/solutions? Thanks

JW Player

User  
0 rated :

Additional Info: The following will not work or IE9 either, but does on the other browsers: http://www.enchantmentrescueltd.com/Streamtest.htm
(Hopefully this will eliminate your site as a contributor). :-)

JW Player

User  
0 rated :

As is so often the case, it's the MIME type that's wrong. Your server is coughing up the video as "text/plain" instead of "video/mp4". That won't work.

JW Player

User  
0 rated :

More additional Info: If I run the mp4 directly, it runs just fine on IE:
http://www.enchantmentrescueltd.com/video5.mp4
but not with the jwplayer. ???

JW Player

User  
0 rated :

How do I get the server to cough up the proper MIME type?

JW Player

User  
0 rated :

This is something your web host should take care of. The server should never be putting a MIME type of "text/plain" on MP4 files.

If you can get to your own .htaccess file, you could add this line:

AddType video/mp4 .mp4

But it would be far preferrable for the web host to fix this at the server O/S level.

JW Player

User  
0 rated :

I created an .htaccess file with the text mentioned above. Problem solved.
I will never-the-less contact support at the web hosting company.
Thank you very much for the help. :-) JJ

JW Player

User  
0 rated :

Glad you could do the self-help route!

I'm frankly appalled at the number of web hosting companies that are getting this wrong. It's sort of _Server 101_.

JW Player

User  
0 rated :

Oh,,,I certainly agree with that and what I also find is that too often they do not know what they are talking about and think that everyone they are talking with does not know anything.

It may be even prudent to shop around for an ISP before committing to hosting.

Here is an excellent article about .htaccess well worth for anyone to view it.

http://net.tutsplus.com/tutorials/other/the-ultimate-guide-to-htaccess-files/

Ethan Feldman

JW Player Support Agent  
0 rated :

Glad you got it Jim !

This question has received the maximum number of answers.