public class AudioDeviceManager
extends java.lang.Object
You can only define a single audio capture source and rendering target for
the app. You cannot set these individually for each publisher and subscriber.
You can, however, set the audio bitrate for a published stream using the
PublisherKit.Builder.audioBitrate(int)
method.
Constructor and Description |
---|
AudioDeviceManager() |
Modifier and Type | Method and Description |
---|---|
static BaseAudioDevice |
getAudioDevice()
Gets the
BaseAudioDevice instance. |
static void |
setAudioDevice(BaseAudioDevice device)
Sets the audio device to be used.
|
public static void setAudioDevice(BaseAudioDevice device) throws java.lang.IllegalStateException
You must call this method before you connect to a session. Additionally, this is a global operation that must persist throughout the lifetime of a session.
If you do not call this method, the app uses the Android device's microphone and speaker.
device
- The BaseAudioDevice
interface implementation.java.lang.IllegalStateException
public static BaseAudioDevice getAudioDevice()
BaseAudioDevice
instance.BaseAudioDevice
instance.