
64
Method summary for the NetStream object
Property summary for the NetStream object
Event handler summary for the NetStream object
Constructor for the NetStream object
Availability
• Flash Player 6.
• Flash Communication Server MX.
Usage
new NetStream(myRTMPConnection)
Method Description
NetStream.attachAudio Publisher method; specifies whether audio should be sent over the stream.
NetStream.attachVideo Publisher method; starts transmitting video or a snapshot from the specified
source.
NetStream.close Stops publishing or playing all data on the stream and makes the stream available
for another use.
NetStream.pause Subscriber method; pauses or resumes playback of a stream.
NetStream.play Subscriber method; feeds streaming audio, video, and text messages being
published on the Flash Communication Server, or a recorded file stored on the
server, to the client.
NetStream.publish Publisher method; sends streaming audio, video and text messages from the client
to the Flash Communication Server, optionally recording the stream during
transmission.
NetStream.receiveAudio Subscriber method; specifies whether incoming audio plays on the stream.
NetStream.receiveVideo Subscriber method; specifies whether incoming video will play on the stream, or
specifies the frame rate of the video.
NetStream.seek Subscriber method; seeks to a position in the recorded stream currently playing.
NetStream.send Publisher method; broadcasts a message to all subscribing clients.
NetStream.setBufferTime Method; For a publishing stream, this number indicates how long the outgoing
buffer can grow before Flash starts dropping frames. For a subscribing stream, this
number indicates how long to buffer incoming data before starting to displaying
the stream.
Property (read-only) Description
NetStream.bufferLength The number of seconds of data currently in the buffer.
NetStream.bufferTime The number of seconds assigned to the buffer by NetStream.setBufferTime.
NetStream.currentFps The number of frames per second being sent or received on the publishing or
subscribing stream.
NetStream.time The number of seconds a stream has been playing or publishing.
Method Description
NetStream.onStatus Invoked every time a status change or error is posted for the NetStream object.
Comentarios a estos manuales