[Pkg-javascript-commits] [jarisplayer] 43/80: Fix the AsyncErrorEvent exception thrown by player
Jonas Smedegaard
dr at jones.dk
Tue May 10 08:45:34 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 111952b6ea254f92ec120ace8b9a80ffe90562bb
Author: Changbai Li <lcb931023 at gmail.com>
Date: Sat Nov 2 23:10:24 2013 -0400
Fix the AsyncErrorEvent exception thrown by player
---
src/jaris/player/Player.hx | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/jaris/player/Player.hx b/src/jaris/player/Player.hx
index 144dd8d..16860ea 100644
--- a/src/jaris/player/Player.hx
+++ b/src/jaris/player/Player.hx
@@ -858,6 +858,7 @@ class Player extends EventDispatcher
_connection.connect(null);
_stream = new NetStream(_connection);
_stream.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
+ _stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, doAsyncError);
_stream.bufferTime = _bufferTime;
_stream.play(source);
_stream.client = this;
@@ -877,6 +878,11 @@ class Player extends EventDispatcher
}
}
+ private function doAsyncError(e:AsyncErrorEvent) : Void
+ {
+ // Do nothing, to block the exception.
+ }
+
/**
* Closes the connection and makes player available for another video
*/
@@ -1785,4 +1791,4 @@ class Player extends EventDispatcher
return time;
}
//}
-}
\ 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