locked
MP4 Video not Playing in iPad RRS feed

  • Question

  • I've looked at quite a few question/answers for this but none of them have worked for me.

    • IIS8 has the MIME type for mp4 videos set to "video/mp4"
    • The SP site collection has file handling set to permissive.
    • I've verified "video/mp4" is an allowed inline download type (powershell).
    • Anonymous access has been enabled.

    The video works in browsers that support mp4 files. 

    The video file, hosted from a LAMP environment, works on iPhone and iPad. So I know the encoding is good. 

    The video file does not work in our IIS environment. We have it uploaded to a document or asset library and it doesn't work. I've downloaded the file from my LAMP environment and uploaded it to the hive and tried to access it directly and it s till does not work.

    Any ideas or suggestions on how I can continue my troubleshooting? 



    • Edited by Mark Drake Wednesday, May 21, 2014 9:32 PM
    Wednesday, May 21, 2014 9:31 PM

Answers

  • Update:

    I uploaded the video to my Microsoft SharePoint Online environment and the video (.mp4) works just fine within Mobile Safari. So unfortunately, at this stage, I'm convinced that it is not an issue or incompatibility to serve video (.mp4) from within SharePoint.

    Because the protocol can use both http and https, I know it's not an issue with SSL and video loading on Mobile Safari.

    (HTTP)

    Living on the page: http://mindbinding-public.sharepoint.com/
    Direct Link: http://mindbinding-public.sharepoint.com/Documents/small.mp4

    (HTTPS)

    Living on the page: https://mindbinding-public.sharepoint.com/
    Direct Link: https://mindbinding-public.sharepoint.com/Documents/small.mp4

    My on-premise environment lives on AWS (Amazon Web Services). So I'm now recommending we investigate firewall settings that may interfere with byte-range requests and further t/s on the setup and configuration of the environment.

    I'll continue to update this post, because it may help some others out there who are having issues.

    • Marked as answer by Lindali Friday, May 30, 2014 9:13 AM
    Friday, May 23, 2014 4:49 PM

All replies

  • If anybody wants to give it a try, I've uploaded it to a public sharepoint online site.

    This will work on your iOS device:

    http://www.markadrake.com/examples/video/small.mp4

    This same file is uploaded to a SharePoint environment and will not work on your iOS device:

    http://mindbinding-public.sharepoint.com/Documents/small.mp4

    I can't open up my on-premise SP2013 to the public, so I'm just using the SharePoint Online environment to show you the exact issue. The video will not play, showing up as a play icon with a slash through it. 

    Thursday, May 22, 2014 1:52 AM
  • Try re-encoding the video to mpeg4.  MP4 has a few different container formats, and that's the one that things like IE9 like, you might find that it plays nicer with IIS when streamed as MP4 - you might not but its an easy test at least.


    Regards John Timney http://www.johntimney.com

    Thursday, May 22, 2014 9:07 AM
  • John, thanks for taking time to reply. 

    I downloaded a sample mp4 file from support.apple.com and it appears that it does work on IIS / SharePoint Online. I'm going to test in our on-premise environment.

    http://support.apple.com/kb/ht1425

    The link to the file (Microsoft SharePoint Online): http://mindbinding-public.sharepoint.com/Documents/sample_mpeg4.mp4



    Thursday, May 22, 2014 12:15 PM
  • John,

    The MPEG4 encoded video worked on Mobile Safari (iPhone & iPad) when uploaded to a public, non-secure (http), SharePoint Online site collection.

    The same file, when uploaded to our on-premise, secured (https), SharePoint 2013 site it did not play. Is there anyway that I can pull error codes as to why the video did not load that may provide additional insight in to what's going on?

    Also after encoding with the MPEG4 codec we lost the ability for the video to play in IE and Chrome both. The H.264 definitely had more support in desktop browsers, and when the H.264 encoded file is served from my LAMP environment it works just fine in Mobile Safari, just not through IIS. So we've taken a big step backwards.

    I know I'm troubleshooting a few different things here, but looking at the results tells me there is something wrong with IIS and how it treats / handles / delivers / etc H.264 encoded files. 

    Thursday, May 22, 2014 1:00 PM
  • Update:

    I uploaded the video to my Microsoft SharePoint Online environment and the video (.mp4) works just fine within Mobile Safari. So unfortunately, at this stage, I'm convinced that it is not an issue or incompatibility to serve video (.mp4) from within SharePoint.

    Because the protocol can use both http and https, I know it's not an issue with SSL and video loading on Mobile Safari.

    (HTTP)

    Living on the page: http://mindbinding-public.sharepoint.com/
    Direct Link: http://mindbinding-public.sharepoint.com/Documents/small.mp4

    (HTTPS)

    Living on the page: https://mindbinding-public.sharepoint.com/
    Direct Link: https://mindbinding-public.sharepoint.com/Documents/small.mp4

    My on-premise environment lives on AWS (Amazon Web Services). So I'm now recommending we investigate firewall settings that may interfere with byte-range requests and further t/s on the setup and configuration of the environment.

    I'll continue to update this post, because it may help some others out there who are having issues.

    • Marked as answer by Lindali Friday, May 30, 2014 9:13 AM
    Friday, May 23, 2014 4:49 PM
  • Some video converter can help you like Adoreshare iMovie Video Converter, I found it on discussion.apple.com, I am not sure if it can help you, google it or click this directly http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=15&cad=rja&uact=8&ved=0CFIQFjAEOAo&url=http%3A%2F%2Fwww.adoreshare.com%2Fproducts%2Fimovie-video-converter-for-mac.html&ei=HYhQVJOqItTp8AXo7YGAAQ&usg=AFQjCNFjB-kl5MqTQM6ptsMvypUUFyUzmg&sig2=P3vk3FOMKhC_zgIJts4ggQ&bvm=bv.78597519,d.dGc

    and try

    • Edited by sofier Wednesday, October 29, 2014 6:25 AM
    Wednesday, October 29, 2014 4:24 AM
  • I've looked at quite a few question/answers for this but none of them have worked for me.

    • IIS8 has the MIME type for mp4 videos set to "video/mp4"
    • The SP site collection has file handling set to permissive.
    • I've verified "video/mp4" is an allowed inline download type (powershell).
    • Anonymous access has been enabled.

    The video works in browsers that support mp4 files. 

    The video file, hosted from a LAMP environment, works on iPhone and iPad. So I know the encoding is good. 

    The video file does not work in our IIS environment. We have it uploaded to a document or asset library and it doesn't work. I've downloaded the file from my LAMP environment and uploaded it to the hive and tried to access it directly and it s till does not work.

    Any ideas or suggestions on how I can continue my troubleshooting? 



    I was in the same situation. You need to make an additional extra change. Initially I couldn't believe, but it is necessary to enable the blobcache for that SharePoint web application that is hosting the mp4 files in order to make them available for iPad / iPhone. When you enable the blobcache please make sure you have mp4 added as extension.

    Here is an example of how the blobcache entry should look like in your web.config file. Of course please add the required adjustments based on your environment: cache location, size, extensions...
    <BlobCache location="D:\SPS\BlobCache" path="\.(gif|jpg|jpeg|jpe|jfif|bmp|dib|tif|tiff|themedbmp|themedcss|themedgif|themedjpg|themedpng|ico|png|wdp|hdp|css|js|asf|avi|flv|m4v|mov|mp3|mp4|mpeg|mpg|rm|rmvb|wma|wmv|ogg|ogv|oga|webm|xap)$" maxSize="10" enabled="true" />

    • Proposed as answer by iftvio Thursday, November 6, 2014 11:11 PM
    Thursday, November 6, 2014 11:11 PM
  • Hi,

    I have tried all of your suggestions in this post, even the one with the blobcache.

    Unfortunately without success.

    Could anyone tell me how to solve this issue on-prem?

    Thanks!

    Tuesday, November 11, 2014 7:42 AM
  • iPad only support MP4 encoded with H.264 or MPEG-4.

    If the MP4 encoded with other code, we will failed to play MP4 on iPad, in this case, we had better use iDealshare VideoGo to convert MP4 to iPad more supported MPEG-4 MP4 or H.264 MP4


    Monday, April 13, 2015 8:40 AM
  • Hi

    I have got the same problem. Did you fix it?

    I have got SharePoint Foundation 2013, so I can't enable BlobCache

    Regards


    santiago

    Wednesday, March 23, 2016 3:14 PM
  • i tried everything and found excellent solution on this blog 

    http://blog.msallal.com/2016/07/sharepoint-mp4-not-working-on-ios.html

    Friday, July 1, 2016 2:33 AM