Skip to main content
March 17, 2011
Question

Recording RTMP Streams on Server?

  • March 17, 2011
  • 1 reply
  • 748 views

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 has been closed for replies.

    1 reply

    Participating Frequently
    March 18, 2011

    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);  }