From 6f82c8b7a96e29e798d33332235cc515ddda2752 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 13 Nov 2008 00:39:46 +0000 Subject: [PATCH] As usual, flash sucks and the NetStream object notifies us when it has seeked, but reading the position value off the object returns the old position. If we wait 1 frame we get the updated value. Fuckers. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@701 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/as/com/threerings/flash/video/FlvVideoPlayer.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/as/com/threerings/flash/video/FlvVideoPlayer.as b/src/as/com/threerings/flash/video/FlvVideoPlayer.as index 0676d9f5..fc846589 100644 --- a/src/as/com/threerings/flash/video/FlvVideoPlayer.as +++ b/src/as/com/threerings/flash/video/FlvVideoPlayer.as @@ -25,6 +25,7 @@ import flash.net.NetStream; import flash.utils.Timer; import com.threerings.util.Log; +import com.threerings.util.MethodQueue; import com.threerings.util.ValueEvent; public class FlvVideoPlayer extends EventDispatcher @@ -189,7 +190,6 @@ public class FlvVideoPlayer extends EventDispatcher _vid.width = _size.x; _vid.height = _size.y; - log.debug("====> size known: " + _size); dispatchEvent(new ValueEvent(VideoPlayerCodes.SIZE, _size.clone())); } @@ -232,7 +232,7 @@ public class FlvVideoPlayer extends EventDispatcher break; case "NetStream.Seek.Notify": - handlePositionCheck(null); + MethodQueue.callLater(handlePositionCheck, [ null ]); break; } }