mp4 video not playing on ipad or iphone

Discussion in 'Web Design and Development' started by brandozz, Aug 23, 2013.

  1. brandozz macrumors newbie

    Aug 23, 2013
    Hi all,

    I'm developing a website and have a video on the homepage. I'm trying to use html5 video but my mp4 file will not play. Here are the video specs:

    Format: H.264, 548 x 308, AAC, 48000Hz
    FPS: 29.97
    Data Size: 34 MB
    Data Rate: 414.81 kbit/s

    <video class="glf_video" controls="controls" autoplay>
                    <source src="" type="video/mp4" />
                    <source src="" type="video/webm" />
                    <source src="" type="video/ogg" />
                    <object type="application/x-shockwave-flash" data="" width="548" height="308" >
                        <param name="movie" value="" />
                        <param name="allowFullScreen" value="true" />
                        <param name="wmode" value="transparent" />
                        <param name="flashVars" value="config={'playlist':['',{'url':'','autoPlay':false}]}" />
                        <img src="" title="No video playback capabilities, please download the video below" />
  2. SrWebDeveloper macrumors 68000


    Dec 7, 2007
    Alexandria, VA, USA
    What you actually have is an HTML5 video tag with Flash fallback.

    Your markup looks fine, I just want to point out that Flash is not supported on Safari (iphone/ipad) but I don't see any obvious reason the MP4 (which is H.264/ACC) would not play on those devices.

    To clarify - it works on other devices or your Mac without issue using the same code, or you tested locally first? It would be very helpful to know what happens when it doesn't play, note any errors or behaviors in your next reply and if the controls display at all.

    Beyond this, assuming paths are right and the video plays in other browsers just fine to confirm the video itself is not to blame, please confirm no issues with certificate setup or SSL/TLS as I noticed you're using https.

    My only other advice for now is cosmetic - add width and height to the video tag and see if it's an issue of sizing. You might also consider an alternative approach, i.e. host the video on Brightcove or maybe use VideoJS framework which is very cross browser and platform compliant.
  3. Tim Olson macrumors newbie

    Nov 23, 2011
    What do you see on page load?
    If you see a video box with a play button that is not clickable (often including a slash and round sign for prohibited), the problem is the video and how it was encoded.
    A cheap way to verify iPhone/ipad compatibility is to load video in drop box, then open on iDevice. If it plays there it should also play on site.
    Be sure and choose the "quick start" option when encoding. This puts moov atom up front and video plays quicker.
    iOS won't show a play button until video loads, so it matters.
    If the video is fine, the code is the problem.

Share This Page