Package 

Class RemoteAudioTrack

  • All Implemented Interfaces:
    com.twilio.video.Track

    
    public class RemoteAudioTrack
    extends AudioTrack
                        

    A remote audio track represents a remote audio source.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String sid
    • Method Summary

      Modifier and Type Method Description
      String getSid() Returns the remote audio track's server identifier.
      synchronized void enablePlayback(boolean enable) Enables playback of remote audio track.
      synchronized boolean isPlaybackEnabled() Check if playback on the remote audio track is enabled.
      • Methods inherited from class com.twilio.video.AudioTrack

        addSink, getName, isEnabled, removeSink
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.