Skip to main content
Inspiring
October 12, 2006
Answered

Recording on server side

  • October 12, 2006
  • 4 replies
  • 451 views
I'm having problems related to recording stream on server side. Using Stream.get("abc") to get the stream and Stream.record() to start recording and Stream.record(false) to stop recording on main.asc file. After the entire process I can see the .flv file in streams folder, but can't make it to Play that recorded .flv file. If I duplicate the same recorded .flv file on same folder, I can play the copied file.

I can only play the recorded original .flv file only if I restart FCS. Somehow its problem related to releasing resources for the stream, Don't know what.

Does anyone have clue of what's going on?
    This topic has been closed for replies.
    Correct answer
    Sorry... for some reason I got is into my head that a client was connected to the stream.

    I don't know of a way you can get rid of a live stream without using Stream.clear(), but in your case it would delete the flv. AFAIK you'll need to use a start value in your ns.play argument.

    4 replies

    Inspiring
    October 13, 2006
    Can we do Stream_name.publish(false) for stream on server side?
    Correct answer
    October 14, 2006
    Sorry... for some reason I got is into my head that a client was connected to the stream.

    I don't know of a way you can get rid of a live stream without using Stream.clear(), but in your case it would delete the flv. AFAIK you'll need to use a start value in your ns.play argument.

    October 13, 2006
    Did you explicity stop publishing over the stream by calling publish(false)? You'll want to do that before you try playing the stream back.
    Inspiring
    October 13, 2006
    Thanks for your help Jay. I can make it to play the recorded stream, but actual thing is how can we stop publishing the recorded stream because whenever I watch the server from my Admin interface, the stream I recorded is still publishing even though I quit all my application and called Stream_name.record(false). There is no one connected to app instance. Is there anyway I can stop publishing on that stream entirely.
    For playing I'm using ns.play("streamname",0) which plays the recorded stream from the beginning. This thing works but somehow looking for way to stop publishing stream so I can play using ns.play("streamname")

    Thanks again.
    October 13, 2006
    Without seeing your code, my first guess would be a missing flag in the statment you're using to play the file after it has been recorded. Perhaps if you post your code we can find the answer.