Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread Display Modes
Old Aug 23, 2013, 10:37 PM   #1
macrumors newbie
Join Date: Aug 2013
mp4 video not playing on ipad or iphone

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="https://www.mydomain.com/videos/video.mp4" type="video/mp4" />
                <source src="https://www.mydomain.com/videos/video.webm" type="video/webm" />
                <source src="https://www.mydomain.com/videos/video.ogv" type="video/ogg" />
                <object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="548" height="308" >
                    <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
                    <param name="allowFullScreen" value="true" />
                    <param name="wmode" value="transparent" />
                    <param name="flashVars" value="config={'playlist':['https%3A%2F%2Fwww.getlowfees.com%2Fimg%2Fvideo.jpg',{'url':'https%3A%2F%2Fwww.mydomain.com%2Fvideos%2Fvideo.mp4','autoPlay':false}]}" />
                    <img src="https://www.mydomain.com/img/video.jpg" title="No video playback capabilities, please download the video below" />
brandozz is offline   0 Reply With Quote
Old Aug 27, 2013, 11:42 AM   #2
macrumors 68000
SrWebDeveloper's Avatar
Join Date: Dec 2007
Location: 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.
Jim Goldbloom
Sr. Web Developer, owner GoldTechPro, LLC
SrWebDeveloper is offline   0 Reply With Quote
Old Aug 28, 2013, 06:25 AM   #3
Tim Olson
macrumors newbie
Join Date: Nov 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.
Tim Olson is offline   0 Reply With Quote

MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
playing mp4 videos in Mavericks tanker5 OS X Mavericks (10.9) 0 Nov 16, 2013 08:56 AM
Youtube not playing MP4 or HTML5 anymore MXSkier62 Mac Applications and Mac App Store 1 Oct 8, 2013 12:01 PM
iPhone 4S not playing video! alston89 iOS 5 and earlier 0 Jul 7, 2013 09:19 AM
Playing AVI & MP4 files on iPad Tissue Paper iPad Tips, Help and Troubleshooting 2 Jan 4, 2013 06:06 PM
iPad 1 video not playing Mickylab iPad Tips, Help and Troubleshooting 1 Nov 28, 2012 01:49 PM

Forum Jump

All times are GMT -5. The time now is 11:28 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC