Skip to main content
Participating Frequently
March 30, 2009
Question

FLV Playback control

  • March 30, 2009
  • 2 replies
  • 928 views
There seems to be almost a complete lack of playback control from FMS. Aside from Playing, and stopping an FLV from server side code, there is almost nothing else you can do.

If you play an FLV on the server using Stream.play(), theres no way to pause the FLV??? If I was to stop the FLV, and replay it later to simulate a pause, it doesnt seem there is any way to find the current position in the file to resume from.

Is there any way to achieve this on the server side?
    This topic has been closed for replies.

    2 replies

    April 2, 2009
    Yeah... the stream.time property became available in FMS 3.5, so it makes sense that it would throw an error on previous versions.

    It's a painful idea... but I supposed you could start incrementing a value using setInterval when the stream begins playing, but I suspect it wouldn't offer any real level of accuracy.
    April 2, 2009
    You can't pause on the server side, but you mightb e able to mark the current time of the stream (using the Stream.time property), and then start playing again from that time

    Stream.play("foo", 0, -1);
    var resumeTime = Stream.time();
    Stream.play("foo", resumeTime, -1);
    ptamilarAuthor
    Participating Frequently
    April 2, 2009
    Sadly there does not seem to be a Stream.time, function or property, in Server Side ActionScript. I'm using FMS 3.0.

    Trying to trace "myStream.time()" gives an error that time is not a function. Trying to trace "myStream.time" always returns undefined.