-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No video when note slide located at bottom of page #309
Comments
Weird bug, but can reproduce. Thanks for reporting! |
The clickable area to play the video appears in the notes slide. And the same bug happens with notes on the left, while notes on top works. There must be something wrong in the media position computation. |
Yes, clickable area works on notes slide, I can hear sound from the video. But video didn't appear on any screen. |
This seems to me to be a variant of #115 of some kind. Essentially beamer generates the wrong coordinates in the PDF for the media if you’re using the second* half (right or top) for content and the first half (left or bottom) for notes. We can shift the media on the slide page when it is on a right or bottom notes page, under the rather safe assumption that nobody puts medias on notes pages. However the click area means shifting links which is less obvious: there is likely a valid use case for links on notes pages. * in the sense of latex/beamer coordinates |
Frankly I think the most efficient workaround is to not use bottom- or left-screen note pages. My favourite option would be to display notes on separate pdf pages. Your example would become: \documentclass{beamer}
\usepackage{multimedia}
% Show beamer notes but on separate pages
\setbeameroption{show notes}
% Tell pympress which pages are notes pages
\addtobeamertemplate{note page}{}{\thispdfpagelabel{notes:\insertframenumber}}
% Only add this bit if you want all note pages to show even when empty
\makeatletter
\def\beamer@framenotesbegin{% at beginning of slide
\gdef\beamer@noteitems{}%
\gdef\beamer@notes{{}}% used to be totally empty.
}
\makeatother
% Rest of document unchanged
\begin{document}
\begin{frame}{Just a mp4 here}
\centering
\movie[width=0.3\textwidth]{\includegraphics[width=0.4\textwidth]{frame1}}{movie.mp4}
\end{frame}
\end{document} |
@Cimbali Thanks for the clarification of the source of the problem and the code snippet for the notes on separate pdf pages.
Yes, the top position works fine. I'll stop there for now, unless there's a workaround. Unfortunately, the hack posted in #115 didn't work for me in case of bottom position. |
The hack in 115 is for links. We’d need to expand the patch for |
Describe the bug
Then
\setbeameroption{show notes on second screen=bottom}
used video can't be played.show notes on second screen=right
plays video ok.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Play video on presenter window
Environment (please complete the following information):
Debug information (see below for file locations)
Yes
The text was updated successfully, but these errors were encountered: