Package com.twilio.video
Class RemoteAudioTrack
java.lang.Object
com.twilio.video.AudioTrack
com.twilio.video.RemoteAudioTrack
- All Implemented Interfaces:
Track
A remote audio track represents a remote audio source.
-
Field Summary
Fields inherited from class com.twilio.video.AudioTrack
audioSinks
-
Method Summary
Modifier and TypeMethodDescriptionvoid
enablePlayback
(boolean enable) Enables playback of remote audio track.getSid()
Returns the remote audio track's server identifier.boolean
Check if playback on the remote audio track is enabled.Methods inherited from class com.twilio.video.AudioTrack
addSink, getName, isEnabled, removeSink
-
Method Details
-
getSid
Returns the remote audio track's server identifier. This value uniquely identifies the remote audio track within the scope of aRoom
. -
enablePlayback
public 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
public 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 the remote audio track is playing.
- Returns:
- true if remote audio is enabled.
-