Question
Multipoint Publishing with FME and 2 FMS servers
Hello,
I am trying to setup Multipoint Publishing using FME and a couple of FMS servers. Can you take a look at the below code and let me know if I should be doing something different.
- FME streams to FMS 1 (on SERVER_1)
- FMS1 publishes to FMS2 (on SERVER_2) using the below actionscript in main.asc file on FMS1
I have put the code under FCPublish because the comments in main.asc state that FME calls FCPublish when it publishes a new stream.
Client.prototype.FCPublish = function( streamname )
{
if ( true) // do some validation here
{
this.call("onFCPublish", null, {code:"NetStream.Publish.Start", description:streamname});
nc = new NetConnection();
nc.connect("rtmp://SERVER_2/test_HighBW/");
ns = new NetStream(nc);
ns.publish(streamname);
}
else
{
this.call("onFCPublish", null, {code:"NetStream.Publish.BadName", description:streamname});
}
}
Thanks in advance,
Sai
I am trying to setup Multipoint Publishing using FME and a couple of FMS servers. Can you take a look at the below code and let me know if I should be doing something different.
- FME streams to FMS 1 (on SERVER_1)
- FMS1 publishes to FMS2 (on SERVER_2) using the below actionscript in main.asc file on FMS1
I have put the code under FCPublish because the comments in main.asc state that FME calls FCPublish when it publishes a new stream.
Client.prototype.FCPublish = function( streamname )
{
if ( true) // do some validation here
{
this.call("onFCPublish", null, {code:"NetStream.Publish.Start", description:streamname});
nc = new NetConnection();
nc.connect("rtmp://SERVER_2/test_HighBW/");
ns = new NetStream(nc);
ns.publish(streamname);
}
else
{
this.call("onFCPublish", null, {code:"NetStream.Publish.BadName", description:streamname});
}
}
Thanks in advance,
Sai
