Laride
asked on
Why will mp4 file not play via an intermediary script on an iPad when it will on all other platforms
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.
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.
ASKER
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Solved ourselves.
http://en.wikipedia.org/wiki/Internet_media_type