Skip to main content
Participant
January 16, 2013
Question

Can AMS 'Listen' to an Existing Stream?

  • January 16, 2013
  • 1 reply
  • 703 views

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

    1 reply

    Adobe Employee
    January 18, 2013

    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

    Participant
    January 18, 2013

    This is great, thank you!