NetStream.receiveAudio()

Availability

Usage

public receiveAudio(receive : Boolean) : Void

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

See also

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