Skip to main content
Participant
July 21, 2008
Question

Time shifting a live stream

  • July 21, 2008
  • 1 reply
  • 308 views
I have a pre-recorded, pre-encoded vid that I need to stream as if it were live--so that the video would start at 2:00 on a certain date and if a client began viewing the video at, say, 2:30, the video would start 30 minutes in. I can do this on the client side with AS in the SWF, but I was wondering if FMS 3 had a way to configure a stream to behave in this manner.

Thank you.
    This topic has been closed for replies.

    1 reply

    Known Participant
    July 22, 2008
    Server-side you can simply start 'playing' the video at your desired time - using code similar to:
    my_stream = Stream.get(streamName);
    my_stream.play(path_to_flv, 0, -1) // play path_to_flv from the beginning till the end. Replace 0 with an integer to specify a different start time.

    Then you'll need clients to connect to 'streamName'.

    Clients who connect 30minutes later, will automatically see the stream playing 30minutes in.