Why will mp4 file not play via an intermediary script on an iPad when it will on all other platforms

Posted on 2014-08-12
Medium Priority
Last Modified: 2014-08-18
We have installed video.js and can use it easily (great program) when directly accessing an mp4 file. ie we call the file directly from the javascript code.

In order to introduce security and stop people seeing the location of the file we changed the file location to be a  .asp file which does a look up on an ID to get the file name and location path from the database and then run the video.

This is simple code and works fine on all computers we have tried it on and android devices ... however it will not play on an iPad or iPhone though. If we hit the mp4 directly the iPad plays it, if we hit the file first it will not.

Does anybody have any idea why not? We do not have access to Apple development tools to troubleshoot it.
Question by:Laride
  • 3
LVL 84

Expert Comment

by:Dave Baldwin
ID: 40257735
That sounds like a 'file association' or MIME type problem.  Do you have the ability to return the correct 'Content-Type' header for the MP4s?


Author Comment

ID: 40257879
We are actually using a PHP file.  We are using the following line of code:

header("Content-Type: video/mp4");

It is also being set up as a 206 return for partial content so we can seek to a particular point in the file to record where somebody has got to and save their point in the file to database.

Accepted Solution

Laride earned 0 total points
ID: 40258837
Problem resolved. The headers in the files were not consistent with what APPLE OS is expecting - (I hate APPLE). Running our file through a program called 'Handshake' and ticking the box which 'make it work on APPLE!) solves the issue .... ARGGGHHHH!

I hope this helps somebody else with the same problem in future. It took us 2 days to find this solution.

Author Closing Comment

ID: 40267256
Solved ourselves.

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

iCloud Drive was introduced after iOS 8 was launched last year. This drive is Apple’s online storage device that lets users sync their files and access them from all their Apple devices.   There is a lot of data that is not automatically backed up…
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question