summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/media9/players/VPlayer.mxml
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-07-28 21:22:14 +0000
committerKarl Berry <karl@freefriends.org>2015-07-28 21:22:14 +0000
commit0f2e8a3f6cc986296e73e726fe1f599cbb6b2e63 (patch)
tree897c0b0523fb35e7cc9906180a3eebf2b4ef7e54 /Master/texmf-dist/source/latex/media9/players/VPlayer.mxml
parent2a6ba6d868071a3d636d8e91f87240934ad24251 (diff)
media9 (28jul15)
git-svn-id: svn://tug.org/texlive/trunk@37983 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/media9/players/VPlayer.mxml')
-rw-r--r--Master/texmf-dist/source/latex/media9/players/VPlayer.mxml25
1 files changed, 9 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/latex/media9/players/VPlayer.mxml b/Master/texmf-dist/source/latex/media9/players/VPlayer.mxml
index ff3dc7962b0..c83ef4e3999 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 @@
<!-- a FlashPlayer-10 compatible component for playing -->
<!-- FLV and MP4/H.264 video files and streams. -->
<!-- -->
-<!-- version 20150601 -->
+<!-- version 20150722 -->
<!-- -->
<!-- -->
<!-- The free Apache Flex 4 SDK is required to compile -->
@@ -51,7 +51,6 @@
[Bindable] private var autoRewind:Boolean=false;
[Bindable] private var loop:Boolean=false;
[Bindable] private var vol:Number=0.75;
- [Bindable] private var stepping:Boolean=false;
private var vidComplete:Boolean=false;
private var deltaSeek:Number;
private var curTime:Number;
@@ -67,7 +66,6 @@
if(flashVars.loop=='true'){loop=true}
if(flashVars.volume){vol=Number(flashVars.volume)}
if(flashVars.scaleMode){scaleMode=flashVars.scaleMode}
- if(flashVars.stepping){stepping=flashVars.stepping}
}
private function onProgress(event:ProgressEvent):void {
@@ -152,10 +150,6 @@
}
}
- private function onEnterFrame(e:Event):void {
- if(stepping&&vidDisp.playing){vidDisp.pause();}
- }
-
private function onCurrentTimeChange(e:Event):void {
if(vidDisp.playing&&pauseAtPos>=0&&vidDisp.currentTime<pauseAtPos)
toBePaused=true;
@@ -187,10 +181,6 @@
vidDisp.seek(p);
}
- private function step():void {
- if(stepping){stepping=false;}else{stepping=true;}
- }
-
private function rewind():void {
vidDisp.seek(0);
}
@@ -251,7 +241,6 @@
private function initApp():void {
this.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
this.addEventListener(KeyboardEvent.KEY_UP, onKeyUp);
- this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
ExternalInterface.addCallback("play", play);
ExternalInterface.addCallback("pause", pause);
ExternalInterface.addCallback("playPause", playPause);
@@ -260,7 +249,6 @@
ExternalInterface.addCallback("volume", volume);
ExternalInterface.addCallback("mute", mute);
ExternalInterface.addCallback("setSource", setSource);
- ExternalInterface.addCallback("stepping", step);
ExternalInterface.addCallback("currentTime", currentTime);
ExternalInterface.addCallback("duration", duration);
ExternalInterface.addCallback("playing", playing);
@@ -288,7 +276,9 @@
function(e:ContextMenuEvent):void{mute();});
this.contextMenu.customItems.push(
- new ContextMenuItem("Seek, [\u2190]/[\u2192]", true, false, true));
+ new ContextMenuItem("via keyboard:", true, false, true));
+ this.contextMenu.customItems.push(
+ new ContextMenuItem("Seek, [\u2190]/[\u2192]", false, false, true));
this.contextMenu.customItems.push(
new ContextMenuItem("Volume, [\u2191]/[\u2193]", false, false, true));
@@ -297,6 +287,9 @@
itemPlayPause.caption=(vidDisp.playing ? "Pause" : "Play")+", [Space]";
itemMute.caption=(vidDisp.muted ? "Unmute" : "Mute")+", [m]";}
);
+
+ //autoPlay setting not reliable
+ if(autoPlay) {while(!vidDisp.playing) play();};
}
]]>
</fx:Script>
@@ -331,7 +324,7 @@
/>
<s:Button alpha="0" width="100%" height="100%"
- mouseDown="if(stepping){vidDisp.play();}else{vidDisp.pause();}"
- mouseUp="if(vidComplete) vidDisp.seek(0);if(!stepping){vidDisp.play();}"
+ mouseDown="vidDisp.pause();"
+ mouseUp="if(vidComplete) vidDisp.seek(0);vidDisp.play();"
/>
</s:Application>