MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Manuale Utente Pagina 111

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 172
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 110
108
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
NetGroup.close()
netGroup.close()
Disconnect from the group and close this NetGroup. This NetGroup is not usable after calling this method.
Availability
Flash Media Server 4
Parameters
None.
Returns
None.
NetGroup.convertPeerIDToGroupAddress()
netGroup.convertPeerIDToGroupAddress(peerID)
Converts a peerID to a group address to pass to the sendToNearest() method.
Availability
Flash Media Server 4
Parameters
peerID A String. The peerID to convert
Returns
A String. The group address for the peerID..
NetGroup.getMulticastStreamIngest()
netGroup.getMulticastStreamIngest(sourceStreamName)
A factory function used to construct a MulticastStreamIngest class. Call this function to ingest a multicast stream from
an RTMFP group.
It’s a good idea to call getMulticastStreamIngest() in response to a
"NetGroup.MulticastStream.PublishNotify event". Alternately, you could decide how long to wait for receipt
of multicast stream bytes and use
setInterval() to close down the ingest attempt.
This class throws an error if the stream parameter is not a String. If the stream name is incorrect (but is a String), it
will not throw an error. For example, if you specify a
sourceStreamName that isn't currently being published into the
Group, you will not receive an error. Multicast streams within a Group do not necessarily have a sole source or owner,
so there's no single peer to contact to determine whether the stream name is valid or not.
If this is an issue for your application, consider checking whether the returned MulticastStreamIngest object is
ingesting on an interval and logging a failure after an application-defined timeout.
Availability
Flash Media Server 4.5
Vedere la pagina 110
1 2 ... 106 107 108 109 110 111 112 113 114 115 116 ... 171 172

Commenti su questo manuale

Nessun commento