From 3dc099326cd991a2db80fc2b8e17b626a10d8f91 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 16 Nov 2013 23:51:34 +0000 Subject: media9 (16nov13) git-svn-id: svn://tug.org/texlive/trunk@32163 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/media9/ChangeLog | 5 ++ .../doc/latex/media9/files/cubeposter.png | Bin 0 -> 3462 bytes Master/texmf-dist/doc/latex/media9/files/epix.asy | 4 +- Master/texmf-dist/doc/latex/media9/files/epix.prc | Bin 56774 -> 55043 bytes .../doc/latex/media9/files/epixposter.pdf | Bin 0 -> 111371 bytes .../doc/latex/media9/files/players/APlayer.mxml | 3 +- .../doc/latex/media9/files/players/APlayer9.mxml | 3 +- .../doc/latex/media9/files/players/VPlayer.mxml | 4 +- .../doc/latex/media9/files/players/VPlayer9.mxml | 3 +- Master/texmf-dist/doc/latex/media9/media9.pdf | Bin 3185064 -> 3303749 bytes Master/texmf-dist/doc/latex/media9/media9.tex | 59 ++++++++++----------- 11 files changed, 43 insertions(+), 38 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/media9/files/cubeposter.png create mode 100644 Master/texmf-dist/doc/latex/media9/files/epixposter.pdf (limited to 'Master/texmf-dist/doc/latex/media9') diff --git a/Master/texmf-dist/doc/latex/media9/ChangeLog b/Master/texmf-dist/doc/latex/media9/ChangeLog index f2a7ae03952..32ddd90f0e8 100644 --- a/Master/texmf-dist/doc/latex/media9/ChangeLog +++ b/Master/texmf-dist/doc/latex/media9/ChangeLog @@ -1,3 +1,8 @@ +2013-11-15 + * v0.35 + * new: play button overlay, can be disabled with new option `noplaybutton' + * change: updated media players + 2013-11-12 * v0.34 * fix: `bigfiles' option and really big files caused dvips error diff --git a/Master/texmf-dist/doc/latex/media9/files/cubeposter.png b/Master/texmf-dist/doc/latex/media9/files/cubeposter.png new file mode 100644 index 00000000000..ae57869756f Binary files /dev/null and b/Master/texmf-dist/doc/latex/media9/files/cubeposter.png differ diff --git a/Master/texmf-dist/doc/latex/media9/files/epix.asy b/Master/texmf-dist/doc/latex/media9/files/epix.asy index 48e25aa5591..60720aaba05 100644 --- a/Master/texmf-dist/doc/latex/media9/files/epix.asy +++ b/Master/texmf-dist/doc/latex/media9/files/epix.asy @@ -9,8 +9,8 @@ import graph3; size(200,200,IgnoreAspect); -//currentprojection=perspective(4,2,3); -currentprojection=perspective(0,0,1); +currentprojection=perspective(4,2,3); +//currentprojection=perspective(0,0,1); real f(pair z) {return z.y^3/2-3z.x^2*z.y;} diff --git a/Master/texmf-dist/doc/latex/media9/files/epix.prc b/Master/texmf-dist/doc/latex/media9/files/epix.prc index 3d8da38bfea..99e33eed236 100644 Binary files a/Master/texmf-dist/doc/latex/media9/files/epix.prc and b/Master/texmf-dist/doc/latex/media9/files/epix.prc differ diff --git a/Master/texmf-dist/doc/latex/media9/files/epixposter.pdf b/Master/texmf-dist/doc/latex/media9/files/epixposter.pdf new file mode 100644 index 00000000000..92506d1092d Binary files /dev/null and b/Master/texmf-dist/doc/latex/media9/files/epixposter.pdf 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 fad4deca9aa..ad13e304471 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 @@ - + @@ -228,6 +228,7 @@ pause(); source=s; initSound(); + pause();seek(0); } private function loadPolicy(p:String):void {policy=p;} diff --git a/Master/texmf-dist/doc/latex/media9/files/players/APlayer9.mxml b/Master/texmf-dist/doc/latex/media9/files/players/APlayer9.mxml index 7559b779679..35a154ae3fc 100644 --- a/Master/texmf-dist/doc/latex/media9/files/players/APlayer9.mxml +++ b/Master/texmf-dist/doc/latex/media9/files/players/APlayer9.mxml @@ -4,7 +4,7 @@ - + @@ -217,6 +217,7 @@ pause(); source=s; initSound(); + pause();seek(0); } private function loadPolicy(p:String):void {policy=p;} 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 a5ee8eddbda..a244fabc943 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 @@ - + @@ -245,7 +245,7 @@ mouseUp="if(vidComplete) vidDisp.seek(0);if(!stepping){vidDisp.play();}" mediaPlayerStateChange="onStateChange(event);" complete="vidComplete=true;" - durationChange="if(vidDisp.autoPlay) vidDisp.play(); else vidDisp.seek(0);" + durationChange="vidDisp.seek(0);" /> - + @@ -186,7 +186,6 @@ vidDisp.pause();vidDisp.source = s; vidDisp.play();vidDisp.pause(); vidDisp.playheadTime=0; - if(autoPlay){vidDisp.play();} } private function formatTime(s:Number):String { diff --git a/Master/texmf-dist/doc/latex/media9/media9.pdf b/Master/texmf-dist/doc/latex/media9/media9.pdf index 1bc0e362702..3602166a841 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 c4e999d836f..e6187eee6dd 100644 --- a/Master/texmf-dist/doc/latex/media9/media9.tex +++ b/Master/texmf-dist/doc/latex/media9/media9.tex @@ -148,6 +148,7 @@ xetex bigfiles draft final +noplaybutton activate=... deactivate=... windowed=... @@ -248,6 +249,10 @@ draft final \end{verbatim} With `\verb+draft+' the media is not embedded. Instead, a box is inserted that has the dimensions of \verb++, subject to the resizing options `\verb+width+', `\verb+height+', `\verb+depth+' and `\verb+scale+'. Option `\verb+final+' does the opposite as it forces the media to be embedded. Both options can be used to reduce compilation time during authoring of a document. To get the most out of them it is recommended to set `\verb+draft+' globally as a package or class option and to set `\verb+final+' locally as a command option of the media annotation that is currently worked on. After the document has been finished, the global `\verb+draft+' option can be removed. +\begin{verbatim} + noplaybutton +\end{verbatim} +Disables the transparent play button normally laid over the inactive media annotation. \begin{verbatim} windowed[= false | [x][@] ] \end{verbatim} @@ -622,11 +627,11 @@ parameter & description\\\hline\hline \begin{Verbatim} \includemedia[ label=some_dice, - width=0.4\linewidth,height=0.3\linewidth, - activate=pageopen, + width=0.6\linewidth,height=0.45\linewidth, addresource=random.mp4, %two video files addresource=cube.mp4, - transparent, + transparent, %transparent player background + activate=pageopen, flashvars={ source=random.mp4 &loop=true % loop video @@ -650,14 +655,14 @@ parameter & description\\\hline\hline \makebox[\linewidth]{\hfill\includemedia[ label=some_dice, width=0.6\linewidth,height=0.45\linewidth, - activate=pageopen, - addresource=random.mp4, + addresource=random.mp4, %two video files addresource=cube.mp4, - transparent, + transparent, %transparent player background + activate=pageopen, flashvars={ source=random.mp4 - &loop=true - &scaleMode=letterbox + &loop=true % loop video + &scaleMode=letterbox % preserve aspect ratio while scaling the video } ]{}{VPlayer.swf}\hfill} \makebox[\linewidth]{\hfill% @@ -770,30 +775,26 @@ http://mirrors.ibiblio.org/pub/mirrors/CTAN/macros/latex/contrib/media9/players/ \centering \begin{Verbatim} \includemedia[ - width=0.4\linewidth,height=0.3\linewidth, - activate=pageopen, + %activate=onclick, % default addresource=cube.mp4, - transparent, flashvars={ source=cube.mp4 + &autoPlay=true % start playing on activation &loop=true - &scaleMode=letterbox } -]{}{VPlayer9.swf} +]{\includegraphics[height=0.45\linewidth]{cubeposter}}{VPlayer9.swf} \end{Verbatim} \vspace{1ex} \hfill\includemedia[ - width=0.6\linewidth,height=0.45\linewidth, - activate=pageopen, + activate=onclick, %default addresource=cube.mp4, - transparent, flashvars={ - source=cube.mp4 - &loop=true - &scaleMode=letterbox + source=cube.mp4 + &autoPlay=true %start playing on activation + &loop=true } -]{}{VPlayer9.swf}\hfill -\vspace{1ex} +]{\includegraphics[height=0.45\linewidth]{cubeposter}}{VPlayer9.swf}\hfill +\vspace{2ex} \begin{Verbatim} \includemedia[ addresource=bird.mp3, @@ -814,7 +815,7 @@ http://mirrors.ibiblio.org/pub/mirrors/CTAN/macros/latex/contrib/media9/players/ transparent ]{\color{blue}\framebox[0.5\linewidth][c]{Singing bird}}{APlayer9.swf}\hfill \vspace{2ex} -\caption{Video and sound examples that should run in Adobe Reader for Linux up to version \href{ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.4.1/}{9.4.1}. Here, players `VPlayer9.swf' and `APlayer9.swf' are used. Both are compatible with Adobe Flash Player 9 plugin that is bundled with the Reader.}\label{ar941ex} +\caption{Video and sound examples that should run in Adobe Reader for Linux up to version \href{ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.4.1/}{9.4.1}. Here, players `VPlayer9.swf' and `APlayer9.swf' are used. Both are compatible with Adobe Flash Player 9 plugin that is bundled with the Reader. Also, the video player needs to be activated by mouse click (which is the default). We provide a poster image that is shown in the inactive state.}\label{ar941ex} \end{figure} \clearpage @@ -846,30 +847,28 @@ Below, several examples of embedded 3D files are shown. The first one, Fig.~\ref \begin{Verbatim} \includemedia[ width=0.8\linewidth,height=0.8\linewidth, - activate=pageopen, add3Djscript=asylabels.js, %upright text labels add3Djscript=3Dspintool.js, %let scene rotate about z-axis % 3Dcoo, 3Droo values found with `Generate Default View' from % context menu 3Dmenu, 3Dc2c=4 2 3, - 3Dcoo=6.01792049407959 12.437679290771484 0.18967819213867188, - 3Droo=479.9268773794643, -]{}{epix.prc} + 3Dcoo=4.413303375244141 2.195653200149536 -0.000011444091796875, + 3Droo=429.49035778293376, +]{\includegraphics{epixposter}}{epix.prc} \end{Verbatim} \vspace{1ex} \includemedia[ width=0.8\linewidth,height=0.8\linewidth, - activate=pageopen, add3Djscript=asylabels.js, %upright text labels add3Djscript=3Dspintool.js, %let scene rotate about z-axis % 3Dcoo, 3Droo values found with `Generate Default View' from % context menu 3Dmenu, 3Dc2c=4 2 3, - 3Dcoo=6.01792049407959 12.437679290771484 0.18967819213867188, - 3Droo=479.9268773794643, -]{}{epix.prc} + 3Dcoo=4.413303375244141 2.195653200149536 -0.000011444091796875, + 3Droo=429.49035778293376, +]{\includegraphics{epixposter}}{epix.prc} \caption{Embedded PRC file produced with Asymptote, making use of convenience 3D JavaScripts `asylabels.js' and `3Dspintool.js' mentioned {\leavevmode\pdfstartlink attr{/Border[0 0 1]/C[0 0 1]/H/I}user{/Subtype/Link/A<>}above\pdfendlink}.}\label{asyex} \end{figure} -- cgit v1.2.3