Player APIs (BrightScript & Ja...
...
Object Reference
Networking Objects

roNetworkAdvertisement

3min
this object is used to advertise services running on a brightsign player to other devices on the network the current implementation supports advertising via mdns (which is part of zeroconf http //en wikipedia org/wiki/zero configuration networking via bonjour http //www apple com/support/bonjour/ ™) to discover a player advertising on the local network, use the docid\ faxpdpieevhsmujn7d es object object creation the ronetworkadvertisement object is created with an associative array of network parameters and arbitrary text information createobject("ronetworkadvertisement", advertisement as roassociativearray) as object the roassociativearray can contain the following keys name the service name this should be a readable string such as "remote brightsign widget service " type the service type this should be a service from the definitive list, formatted in the following manner " service protocol" (for example, " http tcp") port the port number on which the service runs \<name> an arbitrary text key the value can be used to provide additional, optional data to clients (serial number, ip address, etc ) the key must be preceded by an underscore to avoid name conflicts within the associative array; the underscore will be removed before the record is registered with mdns once the object is created, advertising starts immediately and continues until the object is destroyed (i e when it becomes unreferenced) there are no interfaces on the ronetworkadvertisement object example mp = createobject("romessageport") di = createobject("rodeviceinfo") props = { name "my hoopy service", type " http tcp", port 8080, serial di getdeviceuniqueid() } advert = createobject("ronetworkadvertisement", props) wait(600000, mp) advert = invalid ' stop advertising