- 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user