-
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
Support beamer’s multimedia package autostart #212
Comments
Note that the workaround to have the autoplay currently is to use the \documentclass{beamer}
\usepackage{movie15}
\begin{document}
\begin{frame}
\begin{center}
\includemovie[attach=false,autoplay,text={\includegraphics{files/mailto.png}}]{0.4\linewidth}{0.3\linewidth}{files/random.mpg}
\end{center}
\end{frame}
\end{document} |
here you have another sample for play when the page is entered and stop when the page is left: The relevant PDF object reads:
I wonder whether this might be easier to implement. BTW, this was generated with ConTeXt. |
The auto-play is already working on your example @ousia, on v1.7.0b1. (At least if there’s a single media, on page 2 − I might be missing another one?) If you want to share how this was generated with ConTeXt, i.e. a code snippet, that could be useful to other users. |
Many thanks for your reply, @Cimbali. I checked the sample with the Windows binary of version 1.7b1 and video on page 2 didn’t start automatically (there is no other media in the PDF document). I guess GStreamer (and its Python bindings) aren’t included in the binary, are they?
Of course. The source for the PDF sample reads: \setupinteraction[state=start]
\starttext
\null\page
\startTEXpage[offset=10pt]
\definerenderingwindow[myrenderingwindow]
[width=\textwidth, height=\textwidth,
openpageaction=StartRendering{\currentrendering},
closepageaction=StopRendering{\currentrendering}]
\userendering[myvideo][video/mp4][video.mp4]
[embed=yes]
\placerenderingwindow[myrenderingwindow][myvideo]
\stopTEXpage
\null\page
\stoptext It requires a fairly recent version of ConTeXt LMTX. |
It should work regardless of the backend, either VLC or GStreamer. I’m not entirely sure all GStreamer dependencies are shipped properly and that’s one of the things I’m waiting for to make an actual release. Does the media play at all, e.g. if you click on it? I.e. is auto-play broken or is it playing videos? We probably should take this to a different issue tbh. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
While looking into #258 I figured out (from this very well sourced post) that our solution for autostart in #71 is incorrect. The autostart flag exposed in poppler!829 does not mean what we thought it means. From the PDF spec 1.7 (Nov 2006) table 9.15 “Entries in a media play parameters MH/BE dictionary” (p. 770):
So it’s autostart on activation, not on page entry. What we need is the Additional Actions dictionary that has appeared several times in this conversation already: From op. cit. Table 8.38 “Additional entries specific to a screen annotation”:
And the section in question
|
It appears Okular uses the same interpretation as pympress does currently. |
This question came up in #71.
From the
multimedia.sty
we can see that the autostart option of the\movie
command is inserted with aWIDGET
type annotation:Roughly the relevant code is:
So something like:
/AA
at Page Opening/PO
which is the previous actionThis means that to be able to do this,
AnnotWidget
annotation class in the gobject bindingsThe text was updated successfully, but these errors were encountered: