MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifiche Pagina 259

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 369
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 258
68
Example
The following function publishes a stream containing the camera output.
function pubLive()
{
// Create a new source stream.
srcStream = new NetStream(connection);
// Attach the camera activity to the source stream. This
// call causes a warning message to show which service is
// requesting access. It also gives the user the option of
// not sending the camera activity to the server.
srcStream.attachVideo(myCam);
// Get the stream name from the user input.
mySubj=subject;
// Assuming the user named the stream ’webCamStream’,
// publish the live camera activity as 'webCamStream'.
srcStream.publish(mySubj, "live");
}
See also example for MovieClip.attachAudio.
See also
Camera (object), Camera.setMode, NetStream.publish, NetStream.receiveVideo,
Video.attachVideo
NetStream.bufferLength
Availability
Flash Player 6.
Flash Communication Server MX.
Usage
myStream.bufferLength
Description
Read-only property; the number of seconds of data currently in the buffer. You can use this
property in conjunction with
NetStream.bufferTime to estimate how close the buffer is to
being full—for example, to display feedback to a user who is waiting for data to be loaded
into the buffer.
See also
NetStream.bufferTime
NetStream.bufferTime
Availability
Flash Player 6.
Flash Communication Server MX.
Usage
myStream.bufferTime
Vedere la pagina 258
1 2 ... 254 255 256 257 258 259 260 261 262 263 264 ... 368 369

Commenti su questo manuale

Nessun commento