I would like to have a video in my pdf that plays when you click on it. When the video is not playing it should show a figure. When I compile my pdf I do get a figure that I can click on, but it turns blank when I click on it, and no video plays. I don't get any errors either. This is my code:
\usepackage{media9} %this is specified somewhere at the start of the file
\includemedia[label=videofile, width=1.0\textwidth, addresource=./Videos/videofile.mp4,
flashvars={source=./Videos/videofile.mp4}]{\includegraphics[width=1.0\textwidth]
{./Figures/picture}}{VPlayer.swf}