I assume that you are using a NetStream
object to stream your video?
If so, the NetStream
class has a variable called time
which gives you the seek time in seconds.
var ns:NetStream;
// load video, etc
...
// update every frame
stage.addEventListener(Event.ENTER_FRAME, onEnterFrame);
function onEnterFrame(e:Event):void {
trace("seek time: " + ns.time);
}
As for the total time, you can get that from the video's metadata by listening to the onMetaData
event. See here.