title: How to serve video content from PHP server to iPhone and Android devices?
body: <p>I'm writing an app for both Android and iPhone devices. The app uploads a base64 encoded string of a video to a PHP server and stores the encoded string in a MySQL database. Obviously, I would like the videos to have the ability to be played on both the Android and iPhone versions of the app simply by requesting the web URL along with the ID of the video to be retrieved. So far, I've verified that the base64 encoded string of the video is successfully being sent to the PHP server and stored in the database. </p>
  
  <p>I'm just unsure of the proper way to serve up the decoded version of the video through PHP so that it can be viewed through the app on both Android and iPhone devices without compatibility issues. My assumption is that the approach would be similar to how I'm serving base64 encoded images that are stored in the database with a few differences such as the type of header specified in the PHP code and the specific PHP command that serves up the video after it has been selected from the database and decoded. </p>
  
  <p>Can anyone tell me if I'm on the right track here? Are there any lessons learned that anyone can provide? </p>
  
  <p>I'm able to successfully play the video on the following link in iPhone, but I haven't tried it on Android yet: </p>
  
  <p><a href="http://jplayer.org/video/m4v/Big_Buck_Bunny_Trailer.m4v" rel="nofollow">http://jplayer.org/video/m4v/Big_Buck_Bunny_Trailer.m4v</a></p>
  
  <p>I've read through a lot of information, but some of it appears to be dated a while back and I'm concerned about the relevance of the information still being legit. Here's an article I found from 2008 <a href="http://mobiforge.com/design-development/content-delivery-mobile-devices" rel="nofollow">http://mobiforge.com/design-development/content-delivery-mobile-devices</a></p>
  
  <p>Any help or points in the right direction is very much appreciated. </p>