Package io.getstream.video.android.core
Class MicrophoneManager
-
- All Implemented Interfaces:
public final class MicrophoneManagerThe Microphone manager makes it easy to use your microphone in a call
-
-
Field Summary
Fields Modifier and Type Field Description private final StateFlow<DeviceStatus>statusprivate final StateFlow<Boolean>isEnabledprivate final StateFlow<AudioDevice>selectedDeviceprivate final StateFlow<List<AudioDevice>>devicesprivate final MediaManagerImplmediaManager
-
Constructor Summary
Constructors Constructor Description MicrophoneManager(MediaManagerImpl mediaManager)
-
Method Summary
Modifier and Type Method Description final StateFlow<DeviceStatus>getStatus()final StateFlow<Boolean>isEnabled()Represents whether the audio is enabled final StateFlow<AudioDevice>getSelectedDevice()final StateFlow<List<AudioDevice>>getDevices()final MediaManagerImplgetMediaManager()final Unitenable()Enable the audio, the rtc engine will automatically inform the SFU final Unitpause()final Unitresume()final Unitdisable()Disable the audio track. final UnitsetEnabled(Boolean enabled)Enable or disable the microphone final Unitselect(AudioDevice device)Select a specific device final StateFlow<List<AudioDevice>>listDevices()List the devices, returns a stateflow with audio devices final Unitcleanup()-
-
Constructor Detail
-
MicrophoneManager
MicrophoneManager(MediaManagerImpl mediaManager)
-
-
Method Detail
-
getStatus
final StateFlow<DeviceStatus> getStatus()
-
getSelectedDevice
final StateFlow<AudioDevice> getSelectedDevice()
-
getDevices
final StateFlow<List<AudioDevice>> getDevices()
-
getMediaManager
final MediaManagerImpl getMediaManager()
-
disable
final Unit disable()
Disable the audio track. Audio is still captured, but not send. This allows for the "you are muted" toast to indicate you are talking while muted
-
setEnabled
final Unit setEnabled(Boolean enabled)
Enable or disable the microphone
-
select
final Unit select(AudioDevice device)
Select a specific device
-
listDevices
final StateFlow<List<AudioDevice>> listDevices()
List the devices, returns a stateflow with audio devices
-
-
-
-