-
- All Implemented Interfaces:
-
com.twilio.video.Track
public class RemoteAudioTrack extends AudioTrack
A remote audio track represents a remote audio source.
-
-
Method Summary
Modifier and Type Method Description StringgetSid()Returns the remote audio track's server identifier. synchronized voidenablePlayback(boolean enable)Enables playback of remote audio track. synchronized booleanisPlaybackEnabled()Check if playback on the remote audio track is enabled. -
-
Method Detail
-
getSid
@NonNull() String getSid()
Returns the remote audio track's server identifier. This value uniquely identifies the remoteaudio track within the scope of a Room.
-
enablePlayback
synchronized void enablePlayback(boolean enable)
Enables playback of remote audio track. When playback is disabled the audio is muted.
- Parameters:
enable- the desired playback state of the remote audio track.
-
isPlaybackEnabled
synchronized boolean isPlaybackEnabled()
Check if playback on the remote audio track is enabled.
When the value is false, the remote audio track is muted. When the value is true theremote audio track is playing.
-
-
-
-