[Pkg-javascript-commits] [jarisplayer] 20/80: fixed the context menu aspect ratio rotation

Jonas Smedegaard dr at jones.dk
Tue May 10 08:45:32 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository jarisplayer.

commit 0136c630b98d16a50e14ea621c70ced0963bd4bf
Author: jgmylm <jgmylm at edf201c3-a14d-0410-a11e-aa85364efa9f>
Date:   Fri Mar 12 17:26:56 2010 +0000

    fixed the context menu aspect ratio rotation
    
    git-svn-id: https://jaris.svn.sourceforge.net/svnroot/jaris/trunk@20 edf201c3-a14d-0410-a11e-aa85364efa9f
---
 bin/JarisFLVPlayer.swf     | Bin 20156 -> 20121 bytes
 src/jaris/display/Menu.hx  |  14 +-------------
 src/jaris/player/Player.hx |   9 +++++++++
 3 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/bin/JarisFLVPlayer.swf b/bin/JarisFLVPlayer.swf
index 418851d..9a228f4 100644
Binary files a/bin/JarisFLVPlayer.swf and b/bin/JarisFLVPlayer.swf differ
diff --git a/src/jaris/display/Menu.hx b/src/jaris/display/Menu.hx
index eb9212c..39d0a84 100644
--- a/src/jaris/display/Menu.hx
+++ b/src/jaris/display/Menu.hx
@@ -49,13 +49,10 @@ class Menu
 	private var _volumeDownMenuItem:ContextMenuItem;
 	private var _qualityContextMenu:ContextMenuItem;
 	
-	private var _currentAspectRatio:String;
-	
 	public function new(player:Player) 
 	{
 		_movieClip = Lib.current;
 		_player = player;
-		_currentAspectRatio = "original";
 		
 		//Initialize context menu replacement
 		_contextMenu = new ContextMenu();
@@ -135,43 +132,34 @@ class Menu
 			_muteMenuItem.caption = _player.isFullscreen()?"Mute":"Mute (M)";
 		}
 		
-		switch(_currentAspectRatio)
+		switch(_player.getAspectRatioString())
 		{
 			case "original":
 				_aspectRatioMenuItem.caption = "Aspect Ratio (1:1) (TAB)";
-				_currentAspectRatio = "1:1";
 				
 			case "1:1":
 				_aspectRatioMenuItem.caption = "Aspect Ratio (3:2) (TAB)";
-				_currentAspectRatio = "3:2";
 				
 			case "3:2":
 				_aspectRatioMenuItem.caption = "Aspect Ratio (4:3) (TAB)";
-				_currentAspectRatio = "4:3";
 				
 			case "4:3":
 				_aspectRatioMenuItem.caption = "Aspect Ratio (5:4) (TAB)";
-				_currentAspectRatio = "5:4";
 				
 			case "5:4":
 				_aspectRatioMenuItem.caption = "Aspect Ratio (14:9) (TAB)";
-				_currentAspectRatio = "14:9";
 				
 			case "14:9":
 				_aspectRatioMenuItem.caption = "Aspect Ratio (14:10) (TAB)";
-				_currentAspectRatio = "14:10";
 				
 			case "14:10":
 				_aspectRatioMenuItem.caption = "Aspect Ratio (16:9) (TAB)";
-				_currentAspectRatio = "16:9";
 				
 			case "16:9":
 				_aspectRatioMenuItem.caption = "Aspect Ratio (16:10) (TAB)";
-				_currentAspectRatio = "16:10";
 				
 			case "16:10":
 				_aspectRatioMenuItem.caption = "Aspect Ratio (original) (TAB)";
-				_currentAspectRatio = "original";
 		}
 		
 		if (_player.getQuality())
diff --git a/src/jaris/player/Player.hx b/src/jaris/player/Player.hx
index 666f81c..b312034 100644
--- a/src/jaris/player/Player.hx
+++ b/src/jaris/player/Player.hx
@@ -1480,6 +1480,15 @@ class Player extends EventDispatcher
 	}
 	
 	/**
+	 * The current aspect ratio of the loaded Player in string format
+	 * @return
+	 */
+	public function getAspectRatioString():String
+	{
+		return _currentAspectRatio;
+	}
+	
+	/**
 	 * Original aspect ratio of the video
 	 * @return original aspect ratio
 	 */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/jarisplayer.git



More information about the Pkg-javascript-commits mailing list