diff --git a/src/as/com/threerings/flash/media/FlvVideoPlayer.as b/src/as/com/threerings/flash/media/FlvVideoPlayer.as index 33ebabfe..c8030cb6 100644 --- a/src/as/com/threerings/flash/media/FlvVideoPlayer.as +++ b/src/as/com/threerings/flash/media/FlvVideoPlayer.as @@ -243,7 +243,8 @@ public class FlvVideoPlayer extends EventDispatcher handlePositionCheck(); // if we never got metadata, retrieve final position as dur // rewind to the beginning _netStream.seek(0); - pause(); + _netStream.pause(); + updateState(MediaPlayerCodes.STATE_STOPPED); } break; diff --git a/src/as/com/threerings/flash/media/MediaPlayerCodes.as b/src/as/com/threerings/flash/media/MediaPlayerCodes.as index 1945c810..dd90ce26 100644 --- a/src/as/com/threerings/flash/media/MediaPlayerCodes.as +++ b/src/as/com/threerings/flash/media/MediaPlayerCodes.as @@ -27,5 +27,8 @@ public class MediaPlayerCodes public static const STATE_PLAYING :int = 2; public static const STATE_PAUSED :int = 3; + + /** Indicates that the playhead reached the end and the media has stopped. */ + public static const STATE_STOPPED :int = 4; } } diff --git a/src/as/com/threerings/flash/media/Mp3AudioPlayer.as b/src/as/com/threerings/flash/media/Mp3AudioPlayer.as index d0e08f59..af0855ea 100644 --- a/src/as/com/threerings/flash/media/Mp3AudioPlayer.as +++ b/src/as/com/threerings/flash/media/Mp3AudioPlayer.as @@ -250,7 +250,7 @@ public class Mp3AudioPlayer extends EventDispatcher if (_loop) { play0(); } else { - updateState(MediaPlayerCodes.STATE_PAUSED); + updateState(MediaPlayerCodes.STATE_STOPPED); } }