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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 172
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 128
126
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
NetStream.setBufferTime()
ns.setBufferTime(bufferTime)
Sets the size of the outgoing buffer in seconds. If publishing, it controls the buffer in the local server.
Availability
Flash Media Server 3
Parameters
bufferTime A number indicating the size of the outgoing buffer in seconds.
Example
nc = new NetConnection();
nc.connect("rtmp://xyz.com/myApp");
ns = new NetStream(nc);
ns.setBufferTime(2);
NetStream.setIPMulticastPublishAddress()
ns.setIPMulticastPublishAddress(address, port)
Sets the native IP multicast address to which a stream publishes. To clear the address, pass null in the address
parameter. If the
port argument is null, you must specify the port within the address argument. If either the address
or
port values are invalid an Error is raised.
By default, a call to publish() does not use native IP multicast. Attempting to change the value while the NetStream
is publishing raises an Error.
This method is for RTMFP connections only. If the NetStream is not publishing over a NetConnection that uses the
RTMFP protocol, or if the NetStream wasn’t constructed with a GroupSpecifier, any assigned value is ignored.
Availability
Flash Media Server 4
Parameters
address A String. The address of the IPv4 or IPv6 multicast group to publish to, optionally followed by a colon (“:”)
and the UDP port number, or null to clear the existing value and disable native IP multicast. If specifying an IPv6
address and a port, the IPv6 address must be enclosed in square brackets. For example,
"224.0.0.254",
"224.0.0.254:30000", "ff03::ffff", "[ff03::ffff]:30000".
port A Number. The UDP port on which to send native IP multicast datagrams. If port is null, the UDP port must
be specified in the
address parameter.
NetStream.time
ns.time
Read-only; indicates the number of seconds the stream has been publishing. This is a good indication of whether data
is flowing from the source that has been set in a call to the
NetStream.attach() method.
Availability
Flash Media Server 3
Vedere la pagina 128
1 2 ... 124 125 126 127 128 129 130 131 132 133 134 ... 171 172

Commenti su questo manuale

Nessun commento