Package com.mux.sdk.webrtc.spaces
Class LocalAudioTrack
- java.lang.Object
-
- com.mux.sdk.webrtc.spaces.Track<LocalMediaStreamTrackHolder>
-
- com.mux.sdk.webrtc.spaces.LocalTrack
-
- com.mux.sdk.webrtc.spaces.LocalAudioTrack
-
public class LocalAudioTrack extends LocalTrack
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mux.sdk.webrtc.spaces.Track
Track.TrackType
-
-
Field Summary
-
Fields inherited from class com.mux.sdk.webrtc.spaces.LocalTrack
space
-
Fields inherited from class com.mux.sdk.webrtc.spaces.Track
active, id, mid, name, sinks, source, SOURCE_CAMERA, SOURCE_MICROPHONE, SOURCE_SCREENSHARE, spaceId, trackType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setPreferredDevice(android.media.AudioDeviceInfo audioDevice)
Sets the preferred audio device to use as input for this track.-
Methods inherited from class com.mux.sdk.webrtc.spaces.LocalTrack
getConnectionId, getParticipantId, isSubscribed, mute, unmute
-
Methods inherited from class com.mux.sdk.webrtc.spaces.Track
addSink, equals, getHeight, getMaxBitrate, getMediaStreamTrackHolder, getMirrorMode, getType, getWidth, hashCode, isActiveSpeaker, isMuted, removeSink, setHeight, setMediaStreamTrackHolder, setMirrorMode, setWidth, toSignals, toString, updateSinkMirrorState
-
-
-
-
Method Detail
-
setPreferredDevice
public void setPreferredDevice(android.media.AudioDeviceInfo audioDevice)
Sets the preferred audio device to use as input for this track. Using this method you could control which microphone is in use. You can enumerate the microphones from AudioManager (via getMicrophones) then after the microphone is selected get the appropriate AudioDeviceInfo matching the ID to that of the desired microphone.- Parameters:
audioDevice
-
-
-