Giter VIP home page Giter VIP logo

Comments (7)

Cimbali avatar Cimbali commented on June 12, 2024

Weird bug, but can reproduce. Thanks for reporting!

from pympress.

Cimbali avatar Cimbali commented on June 12, 2024

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.

einhander avatar einhander commented on June 12, 2024

Yes, clickable area works on notes slide, I can hear sound from the video. But video didn't appear on any screen.

from pympress.

Cimbali avatar Cimbali commented on June 12, 2024

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.

Cimbali avatar Cimbali commented on June 12, 2024

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.

einhander avatar einhander commented on June 12, 2024

@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.

Cimbali avatar Cimbali commented on June 12, 2024

The hack in 115 is for links. We’d need to expand the patch for \movie.

from pympress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.