TransWikia.com

How can I add a hyperlink in PDF document different from a presentation so that while clicking on that hyperlink I can jump to a video?

TeX - LaTeX Asked by Jhon Quiroga Hurtado on December 7, 2020

I am trying to embed a video from YouTube in my PDF document. I have this code on Overleaf, but the video does not load. I need to do this in a PDF document, but not using beamer, since I need to make the link for the video inside an e-book.

This is the code I am using:

documentclass[12pt,letter]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{parskip}

usepackage{graphicx}
usepackage{media9}
title{Using media9 to include video and audio files}
begin{document}

Videos and audios don't play on Overleaf! Download the PDF and open in Acrobat Reader to view. :-)


This is a YouTube video (needs an Internet connection to view):

% using a YouTube video
includemedia[
  width=0.6linewidth,height=0.3375linewidth,
  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
}
]{includegraphics[width=0.6linewidth]{Fig13}}{https://https://www.youtube.com/watch?v=0GCHzbmMZf0}
end{document}

Please, can anybody help me with this?

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