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
This commit is contained in:
Ray Greenwell
2008-11-13 00:39:46 +00:00
parent e92d57e315
commit 6f82c8b7a9
@@ -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;
}
}