Skip to main content
Participant
September 13, 2010
Question

How to fake a live stream by setting a 10 minute delay?

  • September 13, 2010
  • 2 replies
  • 702 views

Is it possible to set a buffer of 10 minutes to either Flash Media Live Encoder or Flash Media Streaming Server? We're considering setting up a live stream for a gaming tournament, but we are concerned about players being able to cheat by watching the live stream while they play.

    This topic has been closed for replies.

    2 replies

    TopsweetyAuthor
    Participant
    September 13, 2010

    Thanks for the answer.

    September 13, 2010

    Hi Topsweety,

    You can't obtain the 10minute delay in allowing the accessing the live game without loosing content if you want to manage by delaying at Flash Media Live Enocder or Flash Media Server.

    One way to achieve this is you can use DVR functionality of FMS and record the live stream as it gets published from FMLE. When a user attempts to subscribe through the custom video player (that you may want to build), you can put in some logic on your video player to issue the NetStream.play  10mins behind.

    NetStream.play(current_recorded_stream_length - 10*60, 0,-1,true)  // this plays the DVR content that is, recording in progress content

    This will allow users to play the latest content but 10 mins behind from the actual live game event.

    And in case (current_recorded_stream_length - 10*60) comes out to be negative in value then you would know you don't have 10mins of recorded game available for users to view the content yet. Hence you maybe need to apply some custom logic to put such requests in queue and  to allow playback for them when you have enough content recorded.

    Hope this helps.

    Thanks

    Mamata