Skip to main content
Participant
May 14, 2009
Question

Pull a stream from a remote FMS and record it in another FMS

  • May 14, 2009
  • 1 reply
  • 1445 views

I would like to "pull" a stream from a remote FMS to a local FMS and record this stream in the local server.

I couldn't find a way to pull this stream, I can only publish/push. As I can not save scripts to the remote FMS I can not push the stream to my local FMS.

Is there a way to to this?

I was looking into the NetStream class in the FMS and there is no way to play a stream from the remote server.

Thank you, I would appreciate any input.

    This topic has been closed for replies.

    1 reply

    May 14, 2009

    In the applicaton that will do the recording, you need to create a netconnection to the server hosting the video

    var nc = new NetConnection();

    var localStream = Stream.get("foo");

    nc.onStatus = function(info){

         // add code here to handle the status result, calling playVideo() on Success

    }

    nc.connect("rtmp://theremoteserver.com/application/instance");

    function playVideo(){

    localStream.play("nameOfRemoteStream", 0 -1, true, nc);

    localStream.record();

    }