# H-264 mp4 video plays on an iPhone when embedded in a PDF via Acrobat, but not via media9

Is there a bug in the media9 package that causes H-264 mp4 files to embed properly and play properly on a computer, but not an iPhone? I embedded the exact same mp4 video file in Acrobat X Pro (Mac OS 10.6.8) using the video tool under Multimedia, in which case the video played perfectly in Acrobat X Pro and ezPDF Reader on the iPhone. However, when I embedded the exact same video file via media9 (testing both VPlayer.swf and StrobeMediaPlayback.swf), the file played in Acrobat, but showed up as a blank media folder icon in ezPDF Reader. Clicking on that folder threw up an error message of

Media playback failure. Can not play format.


My LaTeX2e distribution is MacTeX 2012. I am using the LaTeX engine in TeXShop.

-
Interesting. I assumed Flash based video playback with Acrobat-9/X compatibility wouldn't work at all on an iPhone. Could you please send me or upload somewhere a minimal Acrobat-X generated example. (Use the mail address in the media9 documentation.) –  AlexG Aug 6 '12 at 7:15

MP4/h.264 video and MP3 sound files embedded with media9 version 0.11 are played back in ezPDF Reader on tablets and phones with Android or iOS, yet without using the Flash-based players (StrobeMediaPlayback.swf, VPlayer.swf, APlayer.swf) embedded along with the media file. ezPDF uses its own, built-in player because it doesn't support Flash.

In order to make video and sound files work in ezPDF Reader, they must be embedded without a path component in the file name. If media files reside in another directory than the current one \addmediapath should be used:

\addmediapath{path/to/media/files}
...
\includemedia[
width=0.4\linewidth,height=0.3\linewidth,
activate=pageopen,

I don't think so. I tested with a typical unix path /home/... and it played well on a Windows PC. –  AlexG Apr 22 '14 at 9:56
This amazes me, since the FlashPlayer plugin used by AR isn't allowed to access the local disk for file resources. On the Windows PC I use for viewing, the absolute linux path written into the PDF is definitely not valid. –  AlexG Apr 22 '14 at 10:06