TransWikia.com

How does one include a MP4 within a pdf via Media9 and TexShop?

TeX - LaTeX Asked on September 5, 2021

Here’s my MWE:
Based on http://texdoc.net/texmf-dist/doc/latex/media9/media9.pdf

[Only a non-clickable button appears, no errors for media9 in Console, other similar queries are from antiquity, thx!]

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
documentclass[11pt]{book}
usepackage{media9}

begin{document}


includemedia[
  label=some_dice,
  width=0.6linewidth,height=0.45linewidth,
  addresource=VID00727.MP4,
  transparent,
  activate=pageopen,
  passcontext,
  flashvars={
    source=VID00727.MP4
   &loop=true
  }
]{}{VPlayer.swf}
% loop video
mediabutton[
  mediacommand=some_dice:playPause,
  overface=color{blue}{fbox{strut Play/Pause}},
  downface=color{red}{fbox{strut Play/Pause}}
]{fbox{strut Play/Pause}}
mediabutton[
  mediacommand=some_dice:setSource [(VID00727.MP4)]
]{fbox{strut VID00727.MP4}}


end{document}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP