Skip navigation
Currently Being Moderated

Pull external RTMP stream as live source.

Oct 23, 2012 6:50 AM

Is it possible to pull in an external rtmp link and use it as live source. Instread of using FME as the live source, I would like to re-stream another RTMP link.


I've done this with ease in another rtmp streaming server, it's been while since I've done something like this using FMS/AMS.


Thank you in advance.

  • Currently Being Moderated
    Oct 24, 2012 8:46 AM   in reply to Adrian_NA

    Hey Adrian,


    You need to use the method in order to play a live stream on server.

    This method accepts the remote NetConnection apart from the stream name.


    SSAS will look something like this,


    application.myRemoteConn = new NetConnection();

    application.myRemoteConn.onStatus = function(info)


                    if (info.code == "NetConnection.Connect.Success")


                    application.myStream = Stream.get("foo");

                    if (application.myStream)


                                    //play the stream from remote server once connection is successful

                          "Movie1", 0, -1, true, application.myRemoteConn);



    //connect to remote server where stream is already published



    If successful, this is like a client (e.g. FMLE) publishing a live stream to the server.


    Once this is done, you then need to use the NetStream object on server (similar to the code snippet that you provided in comment above) to attach to that live stream and start publishing to another remote server.

    Mark as:
  • Currently Being Moderated
    Oct 25, 2012 2:03 AM   in reply to Adrian_NA

    In that case you can skip the suggestion related to NetStream.

    Only the first step is required for your solution.

    Mark as:
  • Currently Being Moderated
    Oct 25, 2012 2:07 AM   in reply to Adrian_NA

    Isn't the script shared by Vijay working for you. This does the same


    1. Create a netConnection. Connect to remote net connection.

    2. Create a local stream foo.

    3. Play a remote stream "movie1" into foo. That means foo is getting data from remote stream Movie1.


    Let us know, if this doesn't work..

    Mark as:
  • Currently Being Moderated
    Oct 25, 2012 12:17 PM   in reply to Adrian_NA

    My bad…I suggested and you wrote the script with"REMOTESTREAMNAME@NUMBERS", 0, -1, true, nc);

    It should actually be"REMOTESTREAMNAME@NUMBERS", -1, -1, true, nc);


    With starttime as zero, it will look for a VOD stream. Instead use -1 to play a live stream.


    Hope it works this time.

    Mark as:
  • Currently Being Moderated
    Oct 25, 2012 2:00 PM   in reply to Adrian_NA

    Try this and let me know what do you see,

    Mark as:
  • Currently Being Moderated
    Oct 26, 2012 10:17 AM   in reply to Adrian_NA

    Seems you are using an OSMF based player.


    Please check out these forum posts on OSMF. They had the same problem like yours. You might get some help here.


    Mark as:
  • Currently Being Moderated
    Feb 19, 2014 3:08 AM   in reply to Adrian_NA

    Hi Adrian,


    We have same requirment, something like this.


    1. FMLE is streaming to AMS1.

    2. Need to feed same FMLE stream to AMS2, AMS3.

    3. finall we will have same streaming getting pulled/pushed to all AMS in my cluster.



    Can you help me to do this? seems this was your requirment.


    you are pulling stream from  Akamai and feeding same to server where you are running you NetConnect().





    Mark as:
  • Currently Being Moderated
    Feb 19, 2014 6:12 AM   in reply to sjtech

    This is possible using multipoint publishing mechanism provided by Adobe.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points