- AudioPlayer interface extends MediaPlayer.

- Mp3AudioPlayer implements AudioPlayer.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@706 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Ray Greenwell
2008-11-15 02:21:51 +00:00
parent 3ce7fc7f6a
commit 2b81e25445
3 changed files with 227 additions and 2 deletions
@@ -282,9 +282,7 @@ public class FlvVideoPlayer extends EventDispatcher
protected function updateState (newState :int) :void
{
const oldState :int = _state;
_state = newState;
dispatchEvent(new ValueEvent(MediaPlayerCodes.STATE, newState));
if (_state == MediaPlayerCodes.STATE_PLAYING) {
_positionChecker.start();
@@ -295,6 +293,8 @@ public class FlvVideoPlayer extends EventDispatcher
handlePositionCheck(null);
}
}
dispatchEvent(new ValueEvent(MediaPlayerCodes.STATE, newState));
}
protected const log :Log = Log.getLog(this);