Skip to main content
mrweb2010
Known Participant
December 23, 2010
Question

Can I restream RTMP stream to FMS?

  • December 23, 2010
  • 2 replies
  • 3741 views

I have 4 different RTMP stream URLS, and I need group them on one  Server, to re-stream them to mobiles. Can I do this with FMS , or I  shall to hard code it?Can I do thi with SMIL?

    This topic has been closed for replies.

    2 replies

    mrweb2010
    mrweb2010Author
    Known Participant
    December 24, 2010

    Thanks for the answer but it's not what I'm looking for.

    I have 4 different RTMP URLs and I need to restream each one to my server.

    For example:
    the RTMP urls are:
    rtmp://serverip1/livestream1
    rtmp://serverip2/livestream2
    rtmp://serverip3/livestream3
    rtmp://serverip4/livestream4

    I need to stream them again to my server
    rtmp://myserver/livestream1
    rtmp://myserver/livestream2

    rtmp://myserver/livestream3

    rtmp://myserver/livestream4

    Can I do this?


    Thanks

    Adobe Employee
    December 24, 2010

    See if you have those 4 or as many URL's - that does not matter. In your case when you say you have 4 URL as stated : that means "livestream1" is getting published to "serverip1" and so on and so forth. So you can do multi-point publish like how i said in other post for that many streams.

    Now if your question is other way round i.e. all first servers (serverip1,serverip2 ...) are not under your control but you have right to access them then you can do pull the streams in two ways (provided you know exactly where streams are getting published) , one using Stream.play method passing remote connections or use ProxyStream API.

    Stream.play - http://help.adobe.com/en_US/flashmediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7e42.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7f36

    in this case your code would somewhat look like below (i have put bare minimum code): - 

    streamObj = Stream.get("livestream1")

    nc = new NetConnection();

    nc.connect("rtmp://serverip/appName");

    streamObj.play("livestream1",-1,-1,true,nc);  //where appName is application where livetsream1 is getting published

    ProxyStream API :http://help.adobe.com/en_US/flashmediaserver/ssaslr/WSA9A478FD-0254-4161-867B-47B64CD15907.html

    mrweb2010
    mrweb2010Author
    Known Participant
    December 24, 2010

    I'm using FMS 3.1, does it support ProxyStream API? I cannot find a full working example for ProxyStream API. I'm a newbie in FMS, sorry if I'm asking too many questions.

    Adobe Employee
    December 24, 2010

    I just replied to another post - see here http://forums.adobe.com/thread/769431?tstart=0 - does this solve your problem too?