Client-Side Communication ActionScript > NetStream.receiveAudio |
![]() ![]() ![]() |
NetStream.receiveAudio
Availability
![]() |
Flash Player 6. |
![]() |
Flash Communication Server MX. |
Usage
myStream
.receiveAudio(receive
)
Parameters
receive
A Boolean value that specifies whether incoming audio plays on the specified stream (true
) or not (false
). The default value is true
.
Returns
Nothing.
Description
Method; specifies whether incoming audio plays on the specified stream. This method is available only to clients subscribed to the specified stream, not to the stream's publisher.
You can call this method before or after you call the NetStream.play
method and actually begin receiving the stream. For example, you can attach these methods to a button the user clicks to mute and unmute the incoming audio stream.
If the specified stream contains only audio data, then passing a value of false
to this method stops NetStream.time
from further incrementing.
See also
NetStream.receiveVideo
, NetStream.time
![]() ![]() ![]() |