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

JW Player not working on iPad & iPhone


Hi, I've installed the JW Player for WordPress plugin, and it works perfectly except that the when loaded on the iPad or iPhone you see the standard error message that "The video could not be loaded, either because the server or network failed, or because the format is not supported."

The site is here: http://themotionbooth.com/

I used Handbreak to create the video, specifically the most recently updated iPhone & iPod Touch setting. Any suggestions for how I can go about fixing it?

Thanks!

cait

100 Community Answers

JW Player

User  
0 rated :

I'm having that same problem when using it to link to a youtube video when creating an app. It looks like the JW player is flash and html5 based. And as we know, flash does NOT play well with iPads or iPhones or iPods. I'm trying to find a workaround (if there is one). I don't understand why that option is offered if it won't work (real-time app creator)

Ethan Feldman

JW Player Support Agent  
0 rated :

@Monyca – HTML5 works fine with iOS.

@Cait – We recently released an update to 5.9, can you try it? – http://www.longtailvideo.com/players/jw-flv-player/

JW Player

User  
0 rated :

Updated to 5.9, but from what I'm seeing it still doesn't appear...

Thanks for the quick reply!

JW Player

User  
0 rated :

Was using 5.7 which worked on the iPhone and iPad, upgraded to 5.9, which doesn't work, downgraded again to 5.7 which works again.

Used the new jwplayer.js for 5.9. Can send more if needed.

JW Player

User  
0 rated :

Hey Cait,

Your video plays on my iPhone/iPad when using 3G but not when using a WLAN.

I am having the same issue here:

http://www.longtailvideo.com/support/forums/jw-player/setup-issues-and-embedding/25629/video-not-playing-on-ios-devices-using-wlan-o2-3g

I already tried the new 5.9 revision, but still no luck.

@Ethan I updated the other post, too.

blomeyer

JW Player

User  
0 rated :

@blomeyer Thanks so much for the info! I'll watch your other thread to see if there's any progress.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Paul – Link please?

@blomeyer – I replied to your thread.

@Cait – Maybe this will help – http://threatpost.com/en_us/blogs/apache-plans-range-header-bug-fix-next-day-082611

JW Player

User  
0 rated :

I've read through that but I'm a little unsure of how exactly to go about fixing the issue. Any suggestions would be great appreciated... Sorry :/

Ethan Feldman

JW Player Support Agent  
1 rated :

What kind of server are you running?

JW Player

User  
0 rated :

I move my post to here.
http://www.longtailvideo.com/support/forums/jw-player/video-encoding/24904/video-not-playing-on-iphone#comment-142174

I have tried to update the Jwplayer version 5.9.2156.
No luck.

I am using IIS 7.

JW Player

User  
0 rated :

The iPhone/iPad issue is fixed now.

It seems the issues on "the installed directory".
I have installed the jwplayer to the "xxx/jwplayer/jwplayer.swf". it works fine except for iPhone/iPad.

I moved the the jwplayer.swf & jwplayer.js to the root of the web server. it works on iPhone/iPad now. (for 5.9.2118 works as well)

regards,



Ethan Feldman

JW Player Support Agent  
0 rated :

Great, glad you got it!

JW Player

User  
-1 rated :

Unfortunately I'm still not getting it to work. Updated to the most recent patch, the jwplayer.swf and the jwplayer.js files are in the outermost folder (this is in a WordPress install, but not using the WordPress plugin at the moment as it didn't work on iOS either). It's a linux server.

Ethan Feldman

JW Player Support Agent  
0 rated :

Is it Apache based?

JW Player

User  
0 rated :

Hi, I also am having issues on iPad, fine on Chrome and Firefox. I'm testing it with the bunny.mp4 so pretty sure not an encoding issue. On iPad I get "The video could not be loaded, either because the server or network failed, or because the format is not supported."

I'm using IIS 5.1 on XP and have it in an asp page. I'm not overly techy but having read the threads I've tried adding mp4 MIME type and restarting web service, also using full paths. I have no idea how to disable gzip in IIS 5.1 though so not tried that.
bc.. <script type="text/javascript" src="http://localhost/jwplayer/jwplayer.js"></script>
<script type="text/javascript">
jwplayer("mediaplayer").setup({
flashplayer: "http://localhost/jwplayer/player.swf",
provider: "video",
stretching: 'exactfit',
image: "http://localhost/jwplayer/preview.jpg",
width: '640',
height: '480',
levels: [

{file: "http://localhost/jwplayer/bunny.mp4"},

{file: "http://localhost/jwplayer/bunny.webm"}

]

});

</script>


It's only on localhost at the moment so no link, will try to publish a link later. In the meantime any suggestions appreciated.

JW Player

User  
-1 rated :

BTW, using 5.9

JW Player

User  
-1 rated :

??? http://localhost/ ????

try removing the above

have you tried testing it on an iPAD simulator and iPhone simulator

www.padpeek.com and http://iphonetester.com/

JW Player

User  
-1 rated :

I tried adding the localhost as someone mentioned using actual full paths instead of relative. It didn't work either way.

Hot tried these but will take a look. Was trying it with iPad on ip address. At present just testing it using my pc as the server.

JW Player

User  
-1 rated :

Willie, neither one of the sites you've listed above (the first one is ipadpeek by the way) give you anything but a rough indication of how your page lays up on those platforms.
They run Flash and don't give any real idea as to whether your video will appear or function correctly on an iphone or ipad.

JW Player

User  
-1 rated :

Yup - Apache v2.2.3.

Ethan Feldman

JW Player Support Agent  
-1 rated :

@Musado – If you can put up a link, please do so.

@Willie – Like @Bill said, those sites aren’t true simulators/emulators.

If you have a Mac, you can get XCode, which actually comes with a working iOS simulator though, if you don’t have the hardware.

@Cait – Can you ask your host to enable range header requests?

JW Player

User  
0 rated :

Ok step closer, in trying to learn a bit more about web stuff I'd set IIS to use HTTPS with a self cert and it seems to be this causing the problem. Though it still worked for Chrome and Firefox it failed on iPad. Once I took this off to try and publish a link it worked.

So next question, any ideas how to make this work with https?

JW Player

User  
0 rated :

Googling it think iOS doesn't like self-cert when serving up media.

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes, iOS can be picky regarding this.

JW Player

User  
-1 rated :

I am having the same issue with my ipad 3. I get an error,
"the video could not be loaded either because of the server or network failed or because the format is not supported".

http://www.plezilakaytv.com/external3.htm

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you update to 5.9?

JW Player

User  
0 rated :

I did and i still get same result. I need help!

Ethan Feldman

JW Player Support Agent  
0 rated :

It could have to do with your encoding.

What happens if you try this file? – http://www.longtailvideo.com/jw/upload/bunny.mp4

JW Player

User  
0 rated :

Hi and sorry for the late reply. It plays for that file but my files are in flv

Ethan Feldman

JW Player Support Agent  
0 rated :

Well then that’s your issue.

FLV = Flash video…it only works in Flash.

JW Player

User  
0 rated :

I am able to play youtube video which is in flv. what am I doing wrong?

JW Player

User  
0 rated :

Unfortunately the host has refused to do so. Any other options available to us? Thanks so much for all your help!

Ethan Feldman

JW Player Support Agent  
0 rated :

@Cait – I am pretty sure you need it for iOS :

@Robert – Where are you running this? Your other link isn’t using YouTube.

JW Player

User  
0 rated :

@ s3.amazonaws.com.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Robert – I want a link to where the player is embedded, I mean.

JW Player

User  
0 rated :

Sorry here it is. http://www.plezilakaytv.com/jwplayer/external3.htm

and thanks for helping me out on this.

Ethan Feldman

JW Player Support Agent  
0 rated :

This is the same link as above. Where is the YouTube video here?

This is playing – https://s3.amazonaws.com/africanm/4+Play.flv which is a regular FLV, it will not work in HTML5/iOS.

JW Player

User  
0 rated :

flv files are store in amazon cloud.

https://s3.amazonaws.com/pltv/Confusion.flv

JW Player

User  
0 rated :

so what you're saying is that flv files will not work in Html5/IOs

JW Player

User  
0 rated :

What I was referring about the youtube files is that I able to brwose youtube videos on my ipad. I don't have youtube video file

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes, FLV files will not work on iOS.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Robert – Apple has an iOS App for YouTube videos.

And yes, FLV is Flash Video. HTML5 does not support Flash Video.

More information – http://www.longtailvideo.com/support/blog/15095/jw-player-53-html5-and-you

We can only support what HTML5 supports.

http://www.longtailvideo.com/html5/

JW Player

User  
0 rated :

Got it! thanks clearing that up.

JW Player

User  
0 rated :

I'm running into the same problem as the original post. I am using the WordPress JW Player plugin. After reading a few other posts I asked my hosting company to enable range request headers. They did this but it still was not working. The hosting company engineer informed me my site "appears to be passing the [video] request via PHP therefore it will not be affected by Apache manipulation of headers, you will need to look at enabling Range Request support in PHP."

He provided this link, http://stackoverflow.com/questions/5924061/using-php-to-output-an-mp4-video , which linked here: http://mobiforge.com/developing/story/content-delivery-mobile-devices.

If this in fact the problem, any ideas on how to implement this within WordPress? Seems to me that the plugin should handle all this, but perhaps it doesn't. Hmm...

Ethan Feldman

JW Player Support Agent  
0 rated :

@Robert – Np!

@AnotherRobert – Do you have a link to where the issue is happening on your site?

JW Player

User  
0 rated :

Thank you for the reply. Here is a sample:

http://sandbox.rotlawgroup.com/jw-player/

It's working fine on desktop browsers, but when viewed on an iPhone it throws the error message.

Ethan Feldman

JW Player Support Agent  
0 rated :

Maybe it has to do with your video?

What happens if you use this one to test? – http://www.longtailvideo.com/jw/upload/bunny.mp4

JW Player

User  
0 rated :

Hi Ethan, that is the video I had used on the sample page. I had downloaded bunny the video before, uploaded it to my site's Media Library, and then used the JW Player plugin to add the [jwplayer] shortcode to the page. I'm not sure what else it could be.

Ethan Feldman

JW Player Support Agent  
0 rated :

Try to link to it on our server and see what happens.

JW Player

User  
0 rated :

I added a second video to http://sandbox.rotlawgroup.com/jw-player/. The first one is "self-hosted" and is not working. For the second video, I used the "External Media" with http://www.longtailvideo.com/jw/upload/bunny.mp4 as the URL.

The second video is working fine, but I can't get the first "self-hosted" version to go.

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes, so there must be a server issue then. Does your server have range request headers enabled?

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

JW Player

User  
0 rated :

Pls help me.

My website: http://celano.vn use JW player HTML5 with mp4 video but it's not play on iPad.

Other video in other folder is OK: http://celano.vn/mediaplayer/video.mp4

Thank you,

JW Player

User  
0 rated :

To have mp4 play on an iPAD you MUST have h.264 mp4 iso v2

I suggest that you check the encoding of the video file.

You may have to re-encode that file

Ethan Feldman

JW Player Support Agent  
0 rated :

You can test with this file – http://www.longtailvideo.com/jw/upload/bunny.mp4

JW Player

User  
0 rated :

"To have mp4 play on an iPAD you MUST have h.264 mp4 iso v2"

How can I check the details of the encoding my video has?

I am using m4v exported from imovie. It works on browsers but doesn't seem to work in iphone etc. I am using the JW plugin for WP and streaming from Amazon S3 using https whether that makes any difference.

www.thefertilemind.net/teleseminar/

Thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

http://mediainfo.sourceforge.net/en is a good tool for inspecting media, it will tell you how a video has been encoded.

JW Player

User  
0 rated :

It's allright now. My file .mp4 H264 error. I render it by After Effect but It's error. So I have to use Videora iPod Converter and it's OK.


Now I have 1 problem, in Firefox browser that video not good, you can check link: http://celano.vn by Fifefox

Help me fix that error pls

Thanks,

Ethan Feldman

JW Player Support Agent  
0 rated :

Cool, glad you got it working. What do you mean by “not good”? Your site works in Firefox for me.

JW Player

User  
0 rated :

I have finally gotten my video to play in all browsers and on the iPad. The only way I could get the video to play on the iPad was to have 2 lines of code for the skin. A .zip and .xml file.

code:
<div id="thePlayer">Video Displays Here</div>
<script type="text/javascript">
jwplayer("thePlayer").setup({
flashplayer: "jwplayer/player.swf",
file: "jwplayer/videos/sales_video.mp4",
height: "352",
width: "568",
image:"images/video_still_frame.jpg",
skin: "jwplayer/glow.zip",
skin: "jwplayer/glow/glow.xml",
controlbar: "bottom"
});
</script>

The video plays well across all platforms but I think it's strange to have a .zip and .xml file pointing to the skin. Do you have any idea why NOT including the .xml file in the code will make my video not play on the iPad? I'm happy it plays, I just want to understand how this code is working for future reference.

Jared Longhurst

JW Player

User  
0 rated :

That is somewhat illogical and totally doesn't make any sense.
the zip is used by flash and the xml is used by html5.

You only have the flash mode indicated.

if you truly want to cover both modes then you must use the modes feature of the JWPlayer.

I am supposing here that your mp4 is H.264 which will play in either mode and in the iPhone and iPAD



here is some info

http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/43/using-jw-player-skins

Ethan Feldman

JW Player Support Agent  
0 rated :

@Jared – Glad you got it working. You need XML for skins in HTML5 not, not ZIP.

JW Player

User  
0 rated :

You guys have any idea how to enable the "range request headers" on IIS7 ?

Since i've been testing the test page on IOS and i dont get it to work on the I-PAD.

Ethan Feldman

JW Player Support Agent  
0 rated :

I don’t. I have only used Apache, never IIS7, sorry.

JW Player

User  
0 rated :

Thanks ill look in this some further. Ill create a support call if needed.

JW Player

User  
0 rated :

I wonder IF this will help

http://forums.asp.net/t/1311699.aspx/1

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

JW Player

User  
0 rated :

@Ethan LongTail: I'm having the same problem she's having. I went into the Apache servers and did a vi & /mod_headers to see if I got anything for RequestHeader .. is this what you're talking about?

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes. This might be of use as well – http://threatpost.com/en_us/blogs/apache-plans-range-header-bug-fix-next-day-082611

JW Player

User  
0 rated :

@Ethan

Well, Request Handling is enabled ... so I suppose you could say I'm confused as to why it doesn't work on the iPad. This is a Wordpress Plugin, latest, and like the OP it works fine on everything but the iPad or iPhone? Any idea?

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link to where it isn’t working ?

Ethan Feldman

JW Player Support Agent  
0 rated :

Does your IIS7 server have range request headers set?

JW Player

User  
0 rated :

Hi Ethan,

http://wep.virtusa-corporation.com/videotest/videosample22.htm

This works on all other browsers except for iPad and iPhone.

I have done all the suggested fixes, still not use. im Using IIS7.

Can you please help me out.

Thanks,
Lahiru.

JW Player

User  
0 rated :

Hi Ethan,

i have enabel it according to the follwong post
http://www.cnblogs.com/westfruit/archive/2010/08/31/1813540.html

Regards,
Lahiru

Ethan Feldman

JW Player Support Agent  
0 rated :

You should ask your host to make sure it is enabled, because if it is not, iOS html5 video will not work. You should also test with just a <video> tag and exclude the JW Player to see if that works.

JW Player

User  
0 rated :

Hi Ethan, Same problem here. I have enabled range request headers, put a single video into my site as a link and not using the jwplayer and it works. If I use the player it does not.

I am at a loss here.

Thanks,
Scott

Ethan Feldman

JW Player Support Agent  
0 rated :

Link?

JW Player

User  
0 rated :

Hello Ethan, i have the same issue with flv file. it can play well on website but fail on ipad.

according to what you said before, it might be the range header request issue.

Could you please tell me how can i check whether my server has enable the range header request? and how can i enable if it is disabled.
i am using Apache.


regards
Marc

JW Player

User  
0 rated :

i went to apache and typed:
$ vi & /mod_headers

the result is:
[1] 6725
-bash: /mod_headers: No such file or directory


so, it means my server does not support range header request, isn't it?

how can i enable it?

JW Player

User  
0 rated :

sorry, forgot to provide the link, here it is:

http://localtoday.com.au/temp-test.html

looking forward to see your help.

JW Player

User  
0 rated :

you're loading the wrong video format for the iPAD.

I would recommend using h.264 mp4 iso v2 thus you'll be able to cover all the bases.

However, if you are intending to just cover the iPAD then you could use m4v which is essentially an mp4 of which this video format was specifically designed for Apple.

You can even exchange the m4v extension with the mp4.

Something else I noticed, you're nesting divisions just prior to the instantiation of the JWPlayer. This is something I would not do as it may yield to possible issues.

It is the better just to have one division then the instantiation of the JWPlayer.

JW Player

User  
0 rated :

Hi Willie,

Thank you very much for your help, you are a good person(:
i have several questions after read your answer, it would be great if you can discuss it with me.

1. I know flv is a flash video, so do you mean there definitely is not way to play it on iPad?

2. I would love to use mp4 if i have the choice, however, the coming video which provided by 3rd party will be only available on .MOV .WMV and .FLV; So, in this case, if you were me, which format video should i choose if i want it can be play across all the platform? .mov?

3. what do you mean by "you're nesting divisions just prior to the instantiation of the JWPlayer"? Do you mean the following way of coding?
++++++++++++++++++++++++++++++++++++++++++++
jwplayer("xxx").setup({
flashplayer: "player.swf",
width: 290,
height: 240,
controlbar:'bottom',
backcolor:'181818',
frontcolor:'EEEEEE',
stretching:'fill'
});
jwplayer("xxx").load(
[
{ file:"http://localtoday.com.au/files/aap-olympic-video/20051210-w50s.flv", image:"http://localtoday.com.au/files.php?file=user_guide_102543220.png" }

]
);
++++++++++++++++++++++++++++++++++++++++++++++++++++

thanks again for you time.

Cheers

Ethan Feldman

JW Player Support Agent  
0 rated :

@Marc – Yes, if you are using the iPad, you can’t use FLV. FLV only works in Flash, something iOS does not support.

More information – http://www.longtailvideo.com/support/blog/15095/jw-player-53-html5-and-you

You can use MOV files, as long as they are encoded in H.264, and they will work in iOS.

Sample – http://www.longtailvideo.com/jw/upload/bunny.mov

JW Player

User  
0 rated :

Thanks a lot to all. Now i became more clear about all this.
So the MOV files has to be encoded in H.264, now i understand why some mov can be play but some can not.
I will try to ask them to provide the right format. Thanks again guys.

JW Player

User  
0 rated :

bad luck. Ethan, i just tired the bunny.mov file on my sever. it still have problem.

the error message on ipad is:
+++++++++++++++++++++++++++++++++++++
the video could not be loaded, either because the server or network failed or because the format is not supported: http://....../bunny.movundefinedundefinedundefinedundefined
++++++++++++++++++++++++++++++++++++++++

now what do you think might be the problem? it plays on pc browser no issue.

JW Player

User  
0 rated :

however i use a Mediainfo to check the encoding of the video, i found the bunny.mov seems was encoded in MPEG-4 ??? is that true???

same as the default video format that i import from my iphone.

i might be wrong. Do you know what does the video taken in phone be encoded by default?

looking forward to hear back from you.

JW Player

User  
0 rated :

i dont get it, what is difference between salary in ipad and in mac??

because it can play well on my Mac.

Ethan Feldman

JW Player Support Agent  
0 rated :

Hmm, can I see where you are running this Marc?

JW Player

User  
0 rated :

yes it is still the same link:
http://localtoday.com.au/temp-test.html

sorry it must was moved by my colleague. now you should be able to see it and test it on ipad.

looking forward to hear back from you.

Cheers

JW Player

User  
0 rated :

works fine here

JW Player

User  
0 rated :

Hi Willie,did you watch it on ipad? cause my problem is it does not work on ipad.

thanks

JW Player

User  
0 rated :

I am a poor old man who can't afford an iPAD so I used a simulator

http://www.ipadpeek.com/

JW Player

User  
0 rated :

thanks willie, you are not a poor old man, but a clever man (:
yes it does play on the simulator.

but i have tried 2 different ipad. they both can not play the video, i am so frustrated.

any one know what is the problem?

JW Player

User  
0 rated :

The simulator only confirms layout. It does not emulate an iphone or ipad. Do what I do and go into your local Mac dealer, ask to try their products and dial up your pages.

Ethan Feldman

JW Player Support Agent  
0 rated :

I have used <div align="center"><div id="container" style="align: center;">Loading the player </div></div> and it works fine.

Ethan Feldman

JW Player Support Agent  
0 rated :

The only way to actually simulate iOS correctly is to use XCode and the iPhone SDK, which is only for OS X.

Marc – If bunny.mov resides on our server, does it work?

http://www.longtailvideo.com/jw/upload/bunny.mov

JW Player

User  
0 rated :

Hi Ethan, i tried use the video file on your sever, it does play on some condition, and there are also several strange issue:

1: the condition is i have to click twice to be able let it play.
2: the control bar does not display, i can not pause it.

what do you think the problem might be? i will try more tonight and update here, thank you all for helping me.

cheers

JW Player

User  
0 rated :

hi Ethan and all other friends,

i have ran several test, and found out the rest conclusion:

1: the reason why i have to click twice to be able let the video play is because i load the file after jwplayer setup.
++++++++++++++
jwplayer("xxx").setup({
xxxxxxx
});
jwplayer("xxx").load(
[
{ file:"xxxxxx", image:"xxxxxx" }
]
);
++++++++++++++

Doing this way have no issue on any pc browser, however, it have problem in ipad, video does not play when i click on the screen first time.
My question is, what is the problem with this way of coding? does not jwplayer be designed to allow coding like this?

2: for some mp4 file, even it is located in my server, it works very well. However, for .mov file, even i use bunny.mov; if it is on my server, video can not play and show an error, while if i use http://www.longtailvideo.com/jw/upload/bunny.mov directly, it can play with no problem.

Now,every dear experts, please help me identify the problem. i will remember your help all my life (:

Ethan Feldman

JW Player Support Agent  
0 rated :

Why are you doing a load after the initial setup? This isn’t something we document. Maybe your server doesn’t have the MOV MIME-TYPE set up?

JW Player

User  
0 rated :

Hi Ethan,

actually that piece of code was wrote by other people, i can see they want to do a loop to make a play list. Now i am going to just use initial setup.

This morning i tried several test again, and found the real problem lays on the directory folder!!!

when the video under a folder which came with the CMS, it can play in all platform. while when the video under a folder which create new by me, it can play in all pc browser but can not play in ipad.

the permission of two different directory is exactly the same, the permission of video also same.

so i dont understand, since it can be access from PC browser why it has issue with ipad?

JW Player

User  
0 rated :

below is the content of .htaccess file under files/ directory.
+++++++++++++++++++++++++++++++
<IfModule !mod_rewrite.c>
order deny,allow
deny from all
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ ../files.php?file=$1 [L]
</IfModule>
++++++++++++++++++++++++++++++++

and i believe we have mod_rewrite enabled.

now the problem seems more and more clear, i am excited.

This question has received the maximum number of answers.