Skip to main content
Inspiring
April 1, 2009
Question

get server stream recording status?

  • April 1, 2009
  • 2 replies
  • 524 views
From a Flash-based client can you query FMS 3 server for recording status of stream? We are building an controller application for a custom webcast application and we would like to be able to tell if a server stream is currently being recorded or not. Can that be done?
    This topic has been closed for replies.

    2 replies

    Inspiring
    April 1, 2009
    Both options make sense. Thanks for the note.
    April 1, 2009
    AFAIK, there is no property on the stream class that will tell you whether a stream is being recorded or not, but you could inspect the Stream.size property over a short period of time. If the file size is growing, you'll know the stream is being recorded.

    Alternately (assuming the server side app has been made aware of the stream prior to the start of recording using Stream.get), you could create a handler for the stream's onStatus event, and set a variable in response to the NetStream.Record.Start and NetStream.Record.Stop codes. That way, you'd have a server side value you can inspect directly.