Class RemoteAudioTrackPublication

All Implemented Interfaces:
AudioTrackPublication, TrackPublication

public class RemoteAudioTrackPublication extends Object implements AudioTrackPublication
A remote audio track publication represents a RemoteAudioTrack that has been shared to a Room.
  • Method Details

    • getTrackSid

      @NonNull public String getTrackSid()
      Returns the remote audio track's server identifier. This value uniquely identifies the remote audio track within the scope of a Room.
      Specified by:
      getTrackSid in interface TrackPublication
    • getAudioTrack

      @Nullable public AudioTrack getAudioTrack()
      Returns the base audio track object of the published remote audio track. null is returned if the track is not subscribed to.
      Specified by:
      getAudioTrack in interface AudioTrackPublication
      the published audio track.
      See Also:
    • getTrackName

      @NonNull public String getTrackName()
      Returns the name of the published audio track. An empty string is returned if no track name was specified.
      Specified by:
      getTrackName in interface TrackPublication
    • isTrackEnabled

      public boolean isTrackEnabled()
      Check if remote audio track is enabled.
      Specified by:
      isTrackEnabled in interface TrackPublication
    • isTrackSubscribed

      public boolean isTrackSubscribed()
      Check if the remote audio track is subscribed to by the LocalParticipant.
    • getPublishPriority

      @NonNull public TrackPriority getPublishPriority()
      Returns the TrackPriority set by the publisher for the corresponding RemoteAudioTrack. Returns TrackPriority.STANDARD if no priority was specified by the publisher.
    • getRemoteAudioTrack

      @Nullable public RemoteAudioTrack getRemoteAudioTrack()
      Returns the published remote audio track. null is returned if the track is not subscribed to.