summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/media9/players/VPlayer9.mxml
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/media9/players/VPlayer9.mxml')
-rw-r--r--Master/texmf-dist/source/latex/media9/players/VPlayer9.mxml22
1 files changed, 6 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/latex/media9/players/VPlayer9.mxml b/Master/texmf-dist/source/latex/media9/players/VPlayer9.mxml
index 5ecbaaf4d53..4379385d75b 100644
--- a/Master/texmf-dist/source/latex/media9/players/VPlayer9.mxml
+++ b/Master/texmf-dist/source/latex/media9/players/VPlayer9.mxml
@@ -4,7 +4,7 @@
<!-- a FlashPlayer-9 compatible component for playing -->
<!-- FLV and MP4/H.264 video files and streams. -->
<!-- -->
-<!-- version 20150601 -->
+<!-- version 20150722 -->
<!-- -->
<!-- Copyright (C) 2012-today Alexander Grahn -->
<!-- -->
@@ -37,7 +37,6 @@
[Bindable] private var autoPlay:Boolean=false;
[Bindable] private var loop:Boolean=false;
[Bindable] private var vol:Number=0.75;
- [Bindable] private var stepping:Boolean=false;
[Bindable] private var keepAspect:Boolean=true;
private var vidComplete:Boolean=false;
private var deltaSeek:Number;
@@ -55,7 +54,6 @@
if(flashVars.autoPlay=='true') autoPlay=true;
if(flashVars.loop=='true') loop=true;
if(flashVars.volume) vol=Number(flashVars.volume);
- if(flashVars.stepping) stepping=flashVars.stepping;
if(flashVars.scaleMode && flashVars.scaleMode!='letterbox') keepAspect=false;
}
@@ -141,10 +139,6 @@
}
}
- private function onEnterFrame(e:Event):void {
- if(stepping&&vidDisp.playing){vidDisp.pause();}
- }
-
private function onPlayheadUpdate(e:Event):void {
if(vidDisp.playing&&pauseAtPos>=0&&vidDisp.playheadTime<pauseAtPos)
toBePaused=true;
@@ -176,10 +170,6 @@
vidDisp.playheadTime=p;
}
- private function step():void {
- if(stepping){stepping=false;}else{stepping=true;}
- }
-
private function rewind():void {
vidDisp.playheadTime=0;
}
@@ -242,7 +232,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);
@@ -251,7 +240,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);
@@ -280,7 +268,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));
@@ -324,7 +314,7 @@
<mx:Button alpha="0" width="100%" height="100%" cornerRadius="0"
paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0"
- mouseDown="if(stepping){vidDisp.play();}else{vidDisp.pause();}"
- mouseUp="if(vidComplete) vidDisp.playheadTime=0;if(!stepping){vidDisp.play();}"
+ mouseDown="vidDisp.pause();"
+ mouseUp="if(vidComplete) vidDisp.playheadTime=0;vidDisp.play();"
/>
</mx:Application>