Skip to main content
Participating Frequently
March 3, 2013
Question

Sending Messages To Other Clients

  • March 3, 2013
  • 1 reply
  • 816 views

Hello,

I am currently working on a video chat application with Adobe Media Server using rtmfp protocol.  I am looking for an effective way of sending messages directly to a specic peer. Please, can someone give me information in regards to this.

Thank You

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    March 4, 2013
    ukmd1970Author
    Participating Frequently
    March 12, 2013

    Hi, Thank you for your reply. So, for example if  they are 100 memebrs in a single group.  And, you are looking to connect up with one peer and send him a data message you would do the following:

    Firstly you create your groupspecs then:

    //Connecting clients

    function sendMsg():void{

    var send:Object = new Object();

    send.destination = ConvertPeerIDToGroupAddress(NC.nearID);

    send.value = "HI";

    netGroup.sendToNearest(msg, dst, dst,);

    btn_click(MouseEvent.CLICK, btnSend);

    function btnSend(event:MouseEvent):void{

       trace("Clicked");

    This is my understanding but Is this method correct?  Thnak You

    ukmd1970Author
    Participating Frequently
    March 27, 2013

    Hello, Rather that post a new thread i continue to use this one. I am still unsure how i should approach this. For example, peer number 50 is looking to send a data message to 100 no.

    How will you send a message to him? I dont think my code above would work that's more random. Thanks.