I'm trying to embed a video in my thesis using the media9 package and have found that the behaviour of the mediacommand playPause changes depending on whether the embedded file is a swf or mp4 format.
For an SWF file the video is only paused when the mouse-button is held down while for an MP4 file a single mouse-click pauses the video.
Does anyone know why the behaviour is different and what I need to do to get the mp4 behaviour for SWF files?
(I realise that the obvious answer is to convert my SWF file to MP4 however I have spent the better part of 6 hrs trying to do that. Although I can convert the file using ffmpeg, for some reason it doesn't display once embedded even though the example file included with media9 does.)
A MWE showing the difference in behaviour is as follows. Note that I'm using MiKTeX 2.9, pdfTeX and TeXnicCenter all (re)installed a couple of weeks ago.
\documentclass{article}
\usepackage{media9}
\usepackage[english]{babel}
\begin{document}
\includemedia[label=test,addresource=contours.swf,activate=pagevisible,
width=9cm,height=10cm,flashvars={source=test.swf&autoPlay=true&loop=true}]
{}{contours.swf}
\mediabutton[mediacommand=test:playPause]{\fbox{Play/Pause}}
\includemedia[label=random,addresource=random.mp4,activate=pagevisible,
width=9cm,height=10cm,flashvars={source=random.mp4&autoPlay=true&loop=true}]
{}{VPlayer.swf}
\mediabutton[mediacommand=random:playPause]{\fbox{Play/Pause}}
\end{document}
The above contours.swf file may be accessed at this link.
Any help will be greatly appreciated.