1

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
            }
            ]{}{http://www.youtube.com/v/w3f-WyDqOUw}
    \end{figure}
\end{document}

Can you please help me?

but the video does not run. Does anyone have an insight?

closed as off-topic by user36296, Zarko, user13907, barbara beeton, egreg Jul 30 '16 at 13:22

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.