# problem including a youtube video in a pdf via latex [closed]

I am trying to embed a YouTube video onto a pdf using LaTeX. Here is is the command that I use:

\documentclass[aspectratio=169]{beamer}
\usepackage{media9}
\begin{document}
\begin{figure}
\centering
\includemedia[
width=0.6\linewidth,height=0.3375\linewidth,
activate=pageopen,
flashvars={
modestbranding=1 % no YT logo in control bar
&autohide=1 % controlbar autohide
&showinfo=0 % no title and other info before start
&rel=0 % no related videos after end
}
\end{figure}
\end{document}


• And can you tell us which pdf viewer you have tried? media9 only works on a small subset, such as acrobat. – user36296 Jul 29 '16 at 16:37