14 Replies Latest reply: Feb 27, 2012 3:00 PM by Mic76
slamb0513 Level 1 Level 1 (0 points)

A video I encoded for mp4 and built in HTML5 won't play on my ipad or iphone.

 

It plays fine on Safari on MacBook as well as Google Chrome on Windows7, both in the HTML5 player. 

 

I have encoded the mp4 in a program called HandBrake using H.264 for video and AAC for Audio and the device set to ipad (I also tried iphone). 

 

URL is timken.com/sites/momentoftrust/en-us/documents/html5.html

 

The video is at timken.com/sites/momentoftrust/en-us/documents/maddy_ipad.mp4

 

I am just stumped as to why the video plays fine in the HTML5 container on a MacBook using Safari but will not play on the ipad or iphone.


iPad 2, iOS 4.3.2
  • JimHdk Level 7 Level 7 (25,130 points)

    From the Web:

    iOs doesn't support all the profiles that h.264 provides. You have to encode your h264 with a baseline profile only in order for it to be playable on iphone/iPod Touch/iPad.

  • slamb0513 Level 1 Level 1 (0 points)

    I did use a baseline profile during the encoding.  Sorry I wasn't clear about that.

  • Fred*M. Level 4 Level 4 (2,380 points)

    Slamb0513-

     

    How are you transferring the movie to your iPad?

     

    I downloaded your maddy_ipad.mp4 file and had no trouble transferring it to my iPad, where it plays the same as on the URL you provided.

     

    I opened iTunes and selected Movies.  I dragged the file into the movies window and then synced with the iPad.

     

    I suggest you update to iOS 4.3.3, in case that has anything to do with your problem.

     

    Fred

     

    Message was edited by: Fred*M.

  • slamb0513 Level 1 Level 1 (0 points)

    That's what has me so stumped.  I can transfer the video to the ipad and it plays fine.  I am testing the HTML5 <video> embed option as I would like to convert all the videos on my site from flash to HTML5 so they play on the ipad.

     

    The video plays fine on the ipad directly.  The videos plays fine on a MacBook using Safari, and on Chrome using W7.  But the video won't play on the ipad when trying to view it in Safari at that URL, not will it play through Safari when trying to go to the same video directly.

     

    It also wont play on the iphone.

  • slamb0513 Level 1 Level 1 (0 points)

    Would any of you know if this could be a server issue?  We're running a MOSS 2007 environment on IIS6.

  • Fred*M. Level 4 Level 4 (2,380 points)

    Slamb0513-

     

    The video you have at the html5.html URL is different from the other, but it also plays when downloaded and transferred to the iPad.

     

    I didn't examine your html5.html file.  I take it you are not hand-encoding, but using a program that does that for you.  Here is the html line I used to download one of your files:

    <LI> <A HREF="http://timken.com/sites/momentoftrust/en-us/Documents/pr6.mp4">MP4 Test</A>

     

    I downloaded the mp4 file by right-clicking the URL and selecting Download Linked File As.  Just clicking the URL plays the video on the Mac Pro's Safari, but I don't know how to test it on the iPad.

     

    Fred

     

    Message was edited by: Fred*M.

  • Fred*M. Level 4 Level 4 (2,380 points)

    I tried using the iPad to navigate to this page.  Clicking on the above link for pr6.mp4, the file loaded but would not play.  It showed the "start" triangle with a line through it.

     

    It seems obvious that mp4 files can't be displayed on the iPad using the web browser to get to them.  So what format can the browser play?

     

    I don't think the problem is HTML5.  Perhaps MPEG5 is the format needed to replace Flash.  I did a search for MPEG5 and was led to a website (squared5) that had a format converter.  I suspect everything would work if only we knew which format to use!

     

    Fred

  • slamb0513 Level 1 Level 1 (0 points)

    Thanks for the replies.  I have figured out the problem.  The ipad will play mp4.  In fact, Adobe recommends mp4 video encoded with H.265 baseline specifically for the ipad/iphone.  My problem was not the video, nor the HTML5 code.  After days of trying different encoding methods and code, we came to determine that it was an environmental issue.  We took the video and HTML file off the MOSS/IIS6 server that has our site in a content manager and put it on a server that was just IIS.  Everything then worked fine.  Now we are testing methods to determine what about being in a SharePoint content managed site is causing the video not to be played. 

     

    Baby steps....

  • vellebelle Level 1 Level 1 (0 points)

    I'm having the excact same problem. The video plays fine if the file is located outside of the Sharepoint environment. Did you figure out a way to solve the problem, so it can be located on the Sharepoint servers?

  • slamb0513 Level 1 Level 1 (0 points)

    Our issue was that our SharePoint server did not have the correct MIME types set up or the video formats we were using with the HTML5 code.  We needed to setup a MIME type for .mp4, .ogg and .webm.

  • vellebelle Level 1 Level 1 (0 points)

    Thank you very much

  • RufinoSeattle Level 1 Level 1 (0 points)

    Hi Slamb0513,

     

                    We are also facing a simliar issue. The executives using our site are all using iPads so we started using HTML 5 within SharePoint. However the videos that we had within our Video document libraries wouldn't play on the iPad. We did the same exact thing: set the MIME types, set the Web Application Browser Handling to Permissive, set the list to be anonymous....however still couldn't get the videos to play on the iPad. To fix this issue we just setup a File Share to store the videos and boom! Videos worked on the iPad.

     

                    Were you able to host the videos in a SharePoint doc lib and still have it work on an iPad? Do share what you did.

     

     

    Cheers,

    Rufino

  • slamb0513 Level 1 Level 1 (0 points)

    Rufino,

     

    We happened to have a separate media server setup just for playing files that is run on IIS.  We just set the MIME types for .mp4, .ogg and .webm on that server and the videos played fine.

  • Mic76 Level 1 Level 1 (0 points)

    Thank you so much - this was my issue as well and it took me hours playing with different players, codecs, bit rates, converter settings!!!