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.
  • Method Details

    • getSid

      @NonNull public String getSid()
      Returns the remote audio track's server identifier. This value uniquely identifies the remote audio track within the scope of a Room.
    • 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.