Skip to main content
Participant
Jan 16, 2013 6:58 PM UTC
Question

Can AMS 'Listen' to an Existing Stream?

Hi there,

Instead of 'pushing' a stream into AMS, can the server simply 'listen' to an existing stream and then ingest it? From there, it should simply relay back out as RTMP. Can this be done? If so, what stream formats can it 'listen' to?

For example, I have a Shoutcast stream which I would like AMS to listen to and then redistribute back out as RTMP.

Similarily I have another RTMP stream already being published...so can AMS listen to this as well?

Thanks!

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

    2 replies

    Adobe Employee
    Jan 18, 2013 8:21 AM UTC

    Yes AMs can subscribe to another RTMP stream and relay to further

    This is sample kind of code to subscribe to remote stream.. Please look for the Stream.Play API of the server side action script.

    nc = new NetConnection();

    nc.connect("rtmp://remoteserver/live");

    stream = Stream.get("localStream");

    stream.play("remoteStream.flv", -1, -1, true, nc);

    To relay it forward, use info from here http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773d56e-7ffb.html

    Translate
    Participant
    Jan 18, 2013 1:25 PM UTC

    This is great, thank you!

    Translate