Af2NetStream.attachAudio - affluxis/csjava GitHub Wiki

Usage
myStream.attachAudio(source)

Parameters
source - The source of the audio to be transmitted. Valid values are a Af2Microphone object and null.

Description
Method; specifies whether audio should be sent over the stream (from a Af2Microphone object passed as source) or not (undefined passed as source). This method is available only to the publisher of the specified stream. You can call this method before or after you call the Af2NetStream.publish method and actually begin transmitting. Subscribers who want to hear the audio must call a Af2NetStream.play method.

Example
The following code attaches a microphone to a network stream.

srcStream.attachAudio(myMic);

See also
Af2Microphone (object), Af2NetStream.attachVideo, Af2NetStream.publish