Skip to main content
Participant
April 14, 2009
Question

FMS Multipoint publishing drops streams when adding a second server

  • April 14, 2009
  • 1 reply
  • 1400 views

I have server A, B and C.  Broadcaster connects to A and sends a live stream.  This is republished to B.  When I republish A to C, the stream to B stops but does not disconnect.  What do I need to do to use multipoint publishing to send the stream from A to B and C concurrently? 

    This topic has been closed for replies.

    1 reply

    April 15, 2009

    I don't think of any reason why it won't be supported, post your server side main.asc code as it might help further.

    josh3ioAuthor
    Participant
    April 15, 2009

    So, we make a remoting call to choose which server to republish to and the onResult of the remoting call sends the data to this function to start the multipoint publish:

    application.startMultiPoint = function(newURL, stream) {      newURL += '2/'+application.theBroadcaster.userInfo.site+"."+application.theBroadcaster.userInfo.handle;            var newUserInfo = application.theBroadcaster.userInfo;      newUserInfo.multipoint = true;      trace("CONNECT "+newURL+','+newUserInfo+', 1');      nc = new NetConnection();      nc.onStatus = function(info) {           if (info.code != "NetConnection.Connect.Success") {                trace("WTF CONNECT FAILED: "+info.code+": "+info.description);           } else {                ns = new NetStream(nc);                ns.attach(stream);                ns.publish(stream.name, "live");                                      trace("PUBLISH "+stream.name+" TO "+newURL);                      var responseObj = new Object();                responseObj.onResult = function(result) {                     if (result.status == "OK") {                          trace("*** Stream copied to "+newURL);                          application.multipoints.push(nc);                     } else {                          trace("*** MULTIPOINT PUBLISH FAILED TO "+newURL);                          nc.close();                     }                };                      var remote = application.remoteService();               remote.multipoint_started(responseObj,                     application.theBroadcaster.userInfo.site,                     application.theBroadcaster.userInfo.pwsid,                     newURL,                     stream.name                );           }      };      nc.connect(newURL,newUserInfo, 1); }

    josh3ioAuthor
    Participant
    April 15, 2009

    forum added the  & nbsp;, not me.