Package com.twilio.video
Class RemoteAudioTrack
- java.lang.Object
-
- com.twilio.video.AudioTrack
-
- com.twilio.video.RemoteAudioTrack
-
- All Implemented Interfaces:
Track
public class RemoteAudioTrack extends AudioTrack
A remote audio track represents a remote audio source.
-
-
Field Summary
-
Fields inherited from class com.twilio.video.AudioTrack
audioSinks
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enablePlayback(boolean enable)
Enables playback of remote audio track.java.lang.String
getSid()
Returns the remote audio track's server identifier.boolean
isPlaybackEnabled()
Check if playback on the remote audio track is enabled.-
Methods inherited from class com.twilio.video.AudioTrack
addSink, getName, isEnabled, removeSink
-
-
-
-
Method Detail
-
getSid
@NonNull public java.lang.String 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.
-
-