Brightsign Object Reference Manual (FW 5.1) Manuel d'utilisateur Page 212

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 341
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 211
204
roNetworkAdvertisement
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 via Bonjour).
Object creation: The roNetworkAdvertisement object is created with an associative array representing network parameters.
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: Any arbitrary text key preceded by an underscore to avoid conflicts within the roAssociativeArray.
Note: The underscore is 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).
Interfaces: None
Example
di = CreateObject("roDeviceInfo")
props = { name: "My Hoopy Service", type: "_http._tcp", port: 8080, _serial:
di.GetDeviceUniqueId() }
advert = CreateObject("roNetworkAdvertisement", props)
Vue de la page 211
1 2 ... 207 208 209 210 211 212 213 214 215 216 217 ... 340 341

Commentaires sur ces manuels

Pas de commentaire