[Pkg-javascript-commits] [jarisplayer] 30/80: Improved poster class.
Jonas Smedegaard
dr at jones.dk
Tue May 10 08:45:33 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 f59a4f7d80c997a002ba02bf21583e6109bc99f9
Author: jgmylm <jgmylm at edf201c3-a14d-0410-a11e-aa85364efa9f>
Date: Thu May 27 02:41:41 2010 +0000
Improved poster class.
git-svn-id: https://jaris.svn.sourceforge.net/svnroot/jaris/trunk@30 edf201c3-a14d-0410-a11e-aa85364efa9f
---
bin/JarisFLVPlayer.swf | Bin 20681 -> 20730 bytes
changes.txt | 6 +++++-
src/jaris/Version.hx | 4 ++--
src/jaris/display/Poster.hx | 17 ++++++++++++++++-
4 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/bin/JarisFLVPlayer.swf b/bin/JarisFLVPlayer.swf
index b84809a..a5c4794 100644
Binary files a/bin/JarisFLVPlayer.swf and b/bin/JarisFLVPlayer.swf differ
diff --git a/changes.txt b/changes.txt
index 76a3e7d..394ba1a 100644
--- a/changes.txt
+++ b/changes.txt
@@ -1,4 +1,8 @@
-Jaris FLV Player v2.0.8 beta - 14/05/2010
+Jaris FLV Player v2.0.9 beta - 26/05/2010
+
+ * Improved poster to keep aspect ratio and display back when playback finishes
+
+Jaris FLV Player v2.0.8 beta - 14/05/2010
* Fixed bug on formatTime function calculating hours as minutes
diff --git a/src/jaris/Version.hx b/src/jaris/Version.hx
index 01a76fb..0d8b51e 100644
--- a/src/jaris/Version.hx
+++ b/src/jaris/Version.hx
@@ -27,9 +27,9 @@ package jaris;
*/
class Version
{
- public static var NUMBER:String = "2.0.8";
+ public static var NUMBER:String = "2.0.9";
public static var STATUS:String = "beta";
- public static var DATE:String = "14";
+ public static var DATE:String = "26";
public static var MONTH:String = "05";
public static var YEAR:String = "2010";
}
\ No newline at end of file
diff --git a/src/jaris/display/Poster.hx b/src/jaris/display/Poster.hx
index 915b942..4c23746 100644
--- a/src/jaris/display/Poster.hx
+++ b/src/jaris/display/Poster.hx
@@ -126,13 +126,26 @@ class Poster extends Sprite
}
}
+ private function onPlayerPlay(event:PlayerEvents)
+ {
+ if (_player.getType() == InputType.VIDEO)
+ {
+ this.visible = false;
+ }
+ }
+
+ private function onPlayBackFinished(event:PlayerEvents)
+ {
+ this.visible = true;
+ }
+
/**
* Resizes the poster image to take all the stage
*/
private function resizeImage():Void
{
this.height = _stage.stageHeight;
- this.width = ((_stage.stageWidth / _stage.stageHeight) * this.height);
+ this.width = ((_width / _height) * this.height);
this.x = (_stage.stageWidth / 2) - (this.width / 2);
}
@@ -150,6 +163,8 @@ class Poster extends Sprite
{
_player = player;
_player.addEventListener(PlayerEvents.MEDIA_INITIALIZED, onPlayerMediaInitialized);
+ _player.addEventListener(PlayerEvents.PLAYBACK_FINISHED, onPlayBackFinished);
+ _player.addEventListener(PlayerEvents.PLAY_PAUSE, onPlayerPlay);
}
}
\ No newline at end of file
--
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