Flash Media Server Developer Documentation

NetStream.receiveAudio()

public receiveAudio(receive:Boolean) : Void

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, passing a value of false to this method stops NetStream.time from further incrementing.

Availability

Flash Communication Server 1.0; Flash Player 6.

Parameters

receive A Boolean value that specifies whether incoming audio plays on the specified stream (true) or not (false). The default value is true.

See also

NetStream.receiveVideo(), NetStream.time