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

iOS/Android wont play ,my MP4s


Delivering MP4 video files via PHP and Xsendfile ... have checked that the returned headers are ok

HTTP/1.1 200 OK
Server: nginx/1.2.1
Date: Tue, 24 Jun 2014 02:18:16 GMT
Content-Type: video/mp4
Content-Length: 18923542
Connection: keep-alive
Accept-Ranges: bytes
Last-Modified: Tue, 24 Jun 2014 00:56:59 GMT
ETag: "120c016-4fc8a6fe1007d"

Test page is at http://test.vanguard-method.com/Test2.php
Video file is at http://test.vanguard-method.com/media/413.mp4

Test page is very simple (I have removed licence key for now!)

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="/jwplayer68/jwplayer.js"></script>
</head>
<body>
<h1>Test 2</h1>
<div id="player" name="player"></div>
<script>
jwplayer('player').setup({
file: '/media/413.mp4',
image: ''
});
</script>
</body>
</html>
-----------------------------------
I have spent ages on this ... basically it delivers fine in all standard browsers and fails in iOS and Android .. I have tried presetting the primarymode to html5 but that had no effect ... any help much appreciated

9 Community Answers

MisterNeutron

User  
0 rated :

Your page is demanding a username and password. Please provide an unprotected test page.

robert

User  
0 rated :

Sorry, now unprotected ....

Ethan Feldman

JW Player Support Agent  
2 rated :

I think this has something to do with encoding. Try to run your file though – http://handbrake.fr/, default settings, web optimized.

robert

User  
0 rated :

ok, thanks .. will report back

robert

User  
0 rated :

Perfect, thank you ... do you know how to replicate what Handbrake does using ffmpeg/qt-faststart

robert

User  
0 rated :

poo ... now its not working again ... hmm ....

robert

User  
0 rated :

And now it is .. that was an easy one ... Android/iPad wont work if there's security on the site ;-)

robert

User  
0 rated :

If you use .htaccess/AuthType Basic then some browsers, particularly iOS and Android, simply cannot display the video ;-)

Ethan Feldman

JW Player Support Agent  
-1 rated :

Ah, I think that is a html5 <video> tag issue, actually.

This question has received the maximum number of answers.