Skip to main content
April 4, 2007
Question

Problem trying to publish live stream to RTMP

  • April 4, 2007
  • 3 replies
  • 497 views
We are having a rather silly problem, I know its probably very easy to resolve but still it is giving us a headache.

We have an FMS that takes live feeds from webcams and plays them back through a webpage using the following code:

nc = new NetConnection();
nc.onStatus = function(info) {
trace('I:'+info.code);
if (info.code == 'NetConnection.Connect.Success') {
ns = new NetStream(nc);
video.attachVideo(ns);
ns.play('channel12');
}
};
nc.connect('rtmp://FMSIP/shopVideo/_definst_');

We would now need to push this feed over to another FMS by publishing the feed on an RTMP address.

We were under the impression that the following should work:

rtmp://FMSIP/shopVideo/_definst_/channel12

but is does not work, even if we try it from our own FMS. Checked firewall and stuff that does not seem to be a problem. Are we missing something painfully basic? Please advise any help is greatly appreciated.
    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    April 4, 2007
    If I'm understanding you correctly, you want to take a stream that resides on server "A", and publish it to server "B".

    If that's the case, you need to make a netconnection to server "A" in the .asc on server "B", just like you would in client side actionscript.



    April 4, 2007
    Thanks for the advice. This solution would work for us as well but unfortunately the operator of server B wants to get an rtmp link the asc solution does not work. They need to solve this by doing a simple RTMP request using the FLV playback component.

    But for some reason we are unable to get the RTMP link working only the asc solution seems to work. Im wondering what should we do different to get the rtmp work as the asc works now. If you have any ideas please do not hold it back. Thanks!
    Participant
    April 4, 2007
    That is because the server who is trying to pull needs to be the subscriber of second server the quickest way to do that is the RTMP string. I am trying to use your code now to subscribe to the stream Gyula maybe it would help if we use a test stream that has a constant feed one that you can send me the link on your site so I know its up.

    James