Skip to main content
Mar 17, 2011 2:59 PM UTC
Question

Recording RTMP Streams on Server?

I am new to FMS and RTMP. I am using a Viewcast Niagara 2120 to stream video and audio to FMS. I am unsure how to do anything besides a live broadcast. We would (at least) like to automatically record when the Niagara starts streaming to FMS and stop when its done. Eventually we would like to put something in place that will publish videos in some form as well (but for now thats least important).

I keep seeing something about these applications that you can develolp to do certain functions but its a little over my head.

Suggestions?

Thanks a bunch.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Participating Frequently
    Mar 18, 2011 5:56 PM UTC

    It's very simple to record any incoming stream. What you need to do is just define two handlers in the application where your encoder is publishing. You can use code as below:  application.onPublish = function ( myclient,mystream)  {   mystream.record(); }   application.onUnpublish  = function ( myclient,mystream) {  mystream.record(false);  }

    Translate