User Guide

78 Client-Side ActionScript Language Reference
Method summary for the NetStream class
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 Media 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 Media 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
display the stream.