Comments (7)
Weird bug, but can reproduce. Thanks for reporting!
from pympress.
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.
from pympress.
Yes, clickable area works on notes slide, I can hear sound from the video. But video didn't appear on any screen.
from pympress.
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
from pympress.
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}
from pympress.
@Cimbali Thanks for the clarification of the source of the problem and the code snippet for the notes on separate pdf pages.
if you’re using the second* half (right or top) for content and the first half (left or bottom) for notes.
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.
from pympress.
The hack in 115 is for links. We’d need to expand the patch for \movie
.
from pympress.
Related Issues (20)
- Pympress (1.5.1+dfsg-3build1) is not loading when using i3 HOT 7
- Pympress crashes on start on Fedora 38 beta. HOT 1
- get_primary_monitor() returns None HOT 2
- Notes are misaligned HOT 2
- Improve Annotations HOT 9
- Undo Clears Slide HOT 4
- Incorrect rendering of greek and math symbols on windows in plots generated with R HOT 14
- First slide in presenter mode. HOT 3
- [Windows] Not loading the proper language HOT 1
- Setup proper visual testing
- Support proper Hi-DPI on Windows HOT 2
- Annotation support for line breaks
- Allow configuring thresholds for colors on elapsed time for estimated time HOT 2
- Help needed for installation under nobara linux
- Slide deck overview missing every 2nd slide HOT 5
- Recomend using pipx instead of pip HOT 3
- Shortcuts page in version 1.7.1 shows wrong keys: Shift and Ctrl are mixed HOT 7
- Play gif via animate package does not start animation loop when displayed via Pympress HOT 9
- Save PDF with the Highlights HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pympress.