From 60fede9bb7e0593a59a686c5249d424be598ff6c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 30 Jul 2015 22:02:44 +0000 Subject: media9 (30jul15) git-svn-id: svn://tug.org/texlive/trunk@38007 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/media9/ChangeLog | 4 ++++ Master/texmf-dist/doc/latex/media9/media9.pdf | Bin 3599274 -> 3629397 bytes .../source/latex/media9/players/VPlayer.mxml | 26 +++++++++++++++------ .../source/latex/media9/players/VPlayer9.mxml | 8 ++++--- Master/texmf-dist/tex/latex/media9/media9.sty | 4 ++-- .../tex/latex/media9/players/APlayer.swf | Bin 353064 -> 354878 bytes .../tex/latex/media9/players/SlideShow.swf | Bin 324812 -> 326725 bytes .../tex/latex/media9/players/VPlayer.swf | Bin 480743 -> 507800 bytes .../tex/latex/media9/players/VPlayer9.swf | Bin 219242 -> 219242 bytes 9 files changed, 30 insertions(+), 12 deletions(-) diff --git a/Master/texmf-dist/doc/latex/media9/ChangeLog b/Master/texmf-dist/doc/latex/media9/ChangeLog index 77c58cf9f15..991b8bde409 100644 --- a/Master/texmf-dist/doc/latex/media9/ChangeLog +++ b/Master/texmf-dist/doc/latex/media9/ChangeLog @@ -1,3 +1,7 @@ +2015-07-30 + * v0.57 + * fix: `autoPlay' option of VPlayer didn't work reliably + 2015-07-28 * v0.56 * fix: expl3[2015/07/14]-related adjustments diff --git a/Master/texmf-dist/doc/latex/media9/media9.pdf b/Master/texmf-dist/doc/latex/media9/media9.pdf index 25fb6928ef4..1d19310e44c 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/source/latex/media9/players/VPlayer.mxml b/Master/texmf-dist/source/latex/media9/players/VPlayer.mxml index c83ef4e3999..ce7f1ee2fe0 100644 --- a/Master/texmf-dist/source/latex/media9/players/VPlayer.mxml +++ b/Master/texmf-dist/source/latex/media9/players/VPlayer.mxml @@ -4,7 +4,7 @@ - + @@ -74,11 +74,23 @@ } import org.osmf.events.MediaPlayerStateChangeEvent; + import org.osmf.media.MediaPlayerState; import mx.controls.Alert; private function onStateChange(event:MediaPlayerStateChangeEvent):void { vidComplete=false; - if(event.state=='playbackError') - Alert.show('Unable to play \''+event.target.source+'\'','Error'); + switch(event.state) { + case MediaPlayerState.PLAYBACK_ERROR: // ('playbackError') + Alert.show('Unable to play \''+event.target.source+'\'','Error'); + break; + case MediaPlayerState.READY: + if(autoPlay) vidDisp.play(); + break; + //MediaPlayerState.BUFFERING + //MediaPlayerState.LOADING + //MediaPlayerState.PAUSED + //MediaPlayerState.PLAYING + //MediaPlayerState.UNINITIALIZED + } } private function onKeyDown(e:KeyboardEvent):void { @@ -287,9 +299,6 @@ itemPlayPause.caption=(vidDisp.playing ? "Pause" : "Play")+", [Space]"; itemMute.caption=(vidDisp.muted ? "Unmute" : "Mute")+", [m]";} ); - - //autoPlay setting not reliable - if(autoPlay) {while(!vidDisp.playing) play();}; } ]]> @@ -299,11 +308,14 @@ duration="2000"/> + - + @@ -23,7 +23,8 @@ -