From 440129bde78c9900f848a8225a5577223a4837b6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 5 May 2012 00:42:08 +0000 Subject: media9 (2may12) git-svn-id: svn://tug.org/texlive/trunk@26204 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/media9/ChangeLog | 10 ++ Master/texmf-dist/doc/latex/media9/files/cube.asy | 46 +++++++ Master/texmf-dist/doc/latex/media9/files/cube.mp4 | Bin 0 -> 295207 bytes .../doc/latex/media9/files/players/APlayer.mxml | 130 +++++++++++++------ .../doc/latex/media9/files/players/VPlayer.mxml | 85 ++++++++++--- Master/texmf-dist/doc/latex/media9/media9.pdf | Bin 1261350 -> 1560925 bytes Master/texmf-dist/doc/latex/media9/media9.tex | 139 +++++++++++++++------ Master/texmf-dist/tex/latex/media9/media9.sty | 86 +++++++++++-- .../tex/latex/media9/players/APlayer.swf | Bin 320911 -> 321206 bytes .../tex/latex/media9/players/VPlayer.swf | Bin 440128 -> 440633 bytes 10 files changed, 395 insertions(+), 101 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/media9/files/cube.asy create mode 100644 Master/texmf-dist/doc/latex/media9/files/cube.mp4 (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/media9/ChangeLog b/Master/texmf-dist/doc/latex/media9/ChangeLog index 4bd86f71d3e..381076589f7 100644 --- a/Master/texmf-dist/doc/latex/media9/ChangeLog +++ b/Master/texmf-dist/doc/latex/media9/ChangeLog @@ -1,3 +1,13 @@ +2012-05-02 + * v0.7 + * new: 3Dpartsattrs added as package option + +2012-04-25 + * v0.6 + * new: command options added: 3Dpartsattrs, label; + updated APlayer and VPlayer versions with exposed ActionScript functions + for player control from JavaScript + 2012-04-16 * v0.5 * fix: option 3Dortho did not work, documentation update diff --git a/Master/texmf-dist/doc/latex/media9/files/cube.asy b/Master/texmf-dist/doc/latex/media9/files/cube.asy new file mode 100644 index 00000000000..606375763d5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/media9/files/cube.asy @@ -0,0 +1,46 @@ +import math; +import bsp; +import animation; + +size(100,100); + +animation a; + +void face(face[] faces, path3 p, int j, int k) { + picture pic=faces.push(p); + filldraw(pic,project(p),Pen(j)); + int sign=(k % 2 == 0) ? 1 : -1; + transform t=scale(4)*transform(dir(p,0,sign),dir(p,0,-sign)); + label(pic,t*(string) j,project(0.5*(min(p)+max(p)))); +} + +void snapshot(transform3 t) +{ + static transform3 s=shift(-0.5*(X+Y+Z)); + save(); + + face[] faces; + int j=-1; + transform3 T=t*s; + for(int k=0; k < 2; ++k) { + face(faces,T*plane((1,0,0),(0,1,0),(0,0,k)),++j,k); + face(faces,T*plane((0,1,0),(0,0,1),(k,0,0)),++j,k); + face(faces,T*plane((0,0,1),(1,0,0),(0,k,0)),++j,k); + } + add(faces); + + a.add(); + restore(); +} + +int n=50; + +real step=360/n; +for(int i=0; i < n; ++i) + snapshot(rotate(i*step,X)); +for(int i=0; i < n; ++i) + snapshot(rotate(i*step,Y)); +for(int i=0; i < n; ++i) + snapshot(rotate(i*step,Z)); + +a.movie(loops=1,delay=50); diff --git a/Master/texmf-dist/doc/latex/media9/files/cube.mp4 b/Master/texmf-dist/doc/latex/media9/files/cube.mp4 new file mode 100644 index 00000000000..af2cb8c0331 Binary files /dev/null and b/Master/texmf-dist/doc/latex/media9/files/cube.mp4 differ diff --git a/Master/texmf-dist/doc/latex/media9/files/players/APlayer.mxml b/Master/texmf-dist/doc/latex/media9/files/players/APlayer.mxml index 67375fb6a06..cffab803f7e 100644 --- a/Master/texmf-dist/doc/latex/media9/files/players/APlayer.mxml +++ b/Master/texmf-dist/doc/latex/media9/files/players/APlayer.mxml @@ -4,7 +4,7 @@ - + @@ -41,16 +41,17 @@ xmlns:mx="library://ns.adobe.com/flex/mx" preinitialize="initialise(FlexGlobals.topLevelApplication.parameters);" applicationComplete="initSound();addEventListener(Event.ENTER_FRAME, onEnterFrame);" + creationComplete="initCallBacks();" mouseDown="pause();" mouseUp="play();" > - + diff --git a/Master/texmf-dist/doc/latex/media9/files/players/VPlayer.mxml b/Master/texmf-dist/doc/latex/media9/files/players/VPlayer.mxml index 9d070ed2d40..1c71c751c08 100644 --- a/Master/texmf-dist/doc/latex/media9/files/players/VPlayer.mxml +++ b/Master/texmf-dist/doc/latex/media9/files/players/VPlayer.mxml @@ -4,7 +4,7 @@ - + @@ -19,7 +19,7 @@ - + @@ -40,54 +40,107 @@ xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" preinitialize="initialise(FlexGlobals.topLevelApplication.parameters);" + creationComplete="initCallBacks();" > diff --git a/Master/texmf-dist/doc/latex/media9/media9.pdf b/Master/texmf-dist/doc/latex/media9/media9.pdf index 6e7f4e2475c..b6b3a308c46 100644 Binary files a/Master/texmf-dist/doc/latex/media9/media9.pdf and b/Master/texmf-dist/doc/latex/media9/media9.pdf differ diff --git a/Master/texmf-dist/doc/latex/media9/media9.tex b/Master/texmf-dist/doc/latex/media9/media9.tex index 704709e3940..3dd9a124a5b 100644 --- a/Master/texmf-dist/doc/latex/media9/media9.tex +++ b/Master/texmf-dist/doc/latex/media9/media9.tex @@ -81,7 +81,7 @@ This package provides an interface to embed interactive Flash (SWF) and 3D objec Among the supported media types, video and sound files require an additional Flash (SWF) application for playback, which must be either embedded into the PDF or loaded at runtime from the internet. There are numerous such players, both open-source and commercial, available on the internet. One of them is the highly configurable open-source `StrobeMediaPlayback.swf'~\cite{strobe}, maintained by Adobe and hosted on \href{http://sourceforge.net/projects/smp.adobe/files/}{SourceForge.net}. Package `media9' comes with an enhanced version of `StrobeMediaPlayback.swf'. In addition, two simple players for video and audio, `VPlayer.swf' and `APlayer.swf' are included, which can be used instead. They provide sufficient functionality for playing embedded files and streamed media. -\emph{Note:} `media9' package replaces the now obsolete `movie15' package. `media9' is based on the RichMedia Annotation (Annotations are the interactive parts in a document, in PDF specification parlance.), an Adobe addition to the PDF specification~\cite{supplement}, while `movie15' uses the old multimedia framework (`Screen Annotation') of pre-9 Readers which depends on external plug-ins and which does not support recent media file formats. +\emph{Note:} `media9' package replaces the now obsolete `movie15' package. `media9' is based on the RichMedia Annotation (Annotations are the interactive parts in a document, in PDF specification parlance.), an Adobe addition to the PDF specification~\cite{supplement}, while `movie15' uses the old multimedia framework (`Screen Annotation') of pre-9 Readers which depends on external plug-ins and which does not support recent media file formats. Package `media9' supports the usual PDF making workflows, i.\,e. pdf\LaTeX{}, Lua\LaTeX, \LaTeX{} $\rightarrow$ \verb+dvips+ $\rightarrow$ \verb+ps2pdf+/Distiller and \pXepLaTeX{} $\rightarrow$ \verb+(x)dvipdfmx+. @@ -133,6 +133,7 @@ passcontext 3Dplayspeed=... 3Dtoolbar 3Dnavpane +3Dpartsattrs=... 3Dmenu 3Dbg=... 3Dlights=... @@ -172,7 +173,12 @@ width=, height=, depth= \end{verbatim} -Resize the media playback area, overriding the original dimensions of the {\tt} argument. Option `\verb+depth+' specifies how far the playback area should extend below the base line of the running text. If only one or two of these options are given, the remaining, unspecified dimensions are scaled to maintain the aspect ratio of \verb++. Any valid \TeX{} dimension is accepted as a parameter. In addition, the length commands \verb+\width+, \verb+\height+, \verb+\depth+ and \verb+\totalheight+ can be used to refer to the original dimensions of \verb++. +Resize the media playback area, overriding the original dimensions of the {\tt} argument. Option `\verb+depth+' specifies how far the playback area should extend below the base line of the running text. If only one of `\verb+width+' or `\verb+height+' is given, the other dimension is scaled to maintain the aspect ratio of \verb++. Any valid \TeX{} dimension is accepted as a parameter. In addition, the length commands \verb+\width+, \verb+\height+, \verb+\depth+ and \verb+\totalheight+ can be used to refer to the original dimensions of \verb++. + +\begin{verbatim} +label=