Joseph Wright avatar Joseph Wright committed d8e49ee

Ensure movie autostart works with pdfTeX (fixes issue #188)

Thanks to Alexander Grahn for the analysis here. Essentially,
we should be using \pdfpageattr, but there are some odd things
going on. Rather than have to work through them, and risk breaking
other stuff, a separate annotation is used to control the autostart.
This should work with players that work with the original
inclusion method.

Comments (0)

Files changed (1)


 % $Header$
-\ProvidesPackage{multimedia}[2004/04/10 ver 0.01]
+\ProvidesPackage{multimedia}[2012/05/02 ver 0.02]
          /T (\mm@label) /Operation /Play >> >> >>}%
-        \pdfobj {<< /S /Movie /T (\mm@label) /Operation /Play >>}%
-        \pdfrefobj\pdflastobj%
-        \xdef\mm@pdfpageadditionalaction{/O \the\pdflastobj\space 0 R }%
+        \immediate\pdfobj {<< /S /Movie /T (\mm@label) /Operation /Play >>}%
+        \pdfannot width 0pt height 0pt depth 0pt {%
+          /Subtype/Widget
+          /FT/Btn/Ff 65537
+          /T (wid@\mm@label)
+          /AA <</PO \the\pdflastobj\space 0 R>>% attention: /O --> /PO for Widget annots
+        }%  
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.