0

Sending a Multicast UDP Message from HTML

I've got a project in which I need to send UDP messages to a multicast channel.  I see that BrightSign has a datagram socket object. There are code examples for receiving messages but nothing for sending to compare against. 

I tried using it in the following manner. But I am not receiving any messages in my listener. What am I doing wrong?

 

var socket = null;
socket = new BSDatagramSocket();
socket.JoinMulticastGroup("224.2.3.4");

function send( message) {
    socket.SendTo("224.2.3.4",7000, message);
}

 

send("this is a test message");

 

 

2 comments

  • 0
    Avatar
    Lyndon

     

    what firmware and player are you using? Can you post the all of the html code? If not here, send it to support.  are you playing your html via brightauthor or a script?

  • 0
    Avatar
    Joel Johnson

    Turns out that it was sending. 

    My problem is on the receiving side. Since it is a slightly different topic I'll start a new thread for it. 

Please sign in to leave a comment.