Flash Media Server |
|||
| Client-Side ActionScript Language Reference for Flash Media Server 2 > Client-Side ActionScript Language Reference > NetStream class > NetStream.receiveAudio() | |||
public receiveAudio(receive : Boolean) : Void
receive A Boolean value that specifies whether incoming audio plays on the specified stream (true) or not (false). The default value is true.
Nothing.
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, passing a value of false to this method stops NetStream.time from further incrementing.
NetStream.receiveVideo(), NetStream.time
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/fms/2/docs/00000590.html