Package com.twilio.video
Class RemoteAudioTrackPublication
- java.lang.Object
-
- com.twilio.video.RemoteAudioTrackPublication
-
- All Implemented Interfaces:
AudioTrackPublication
,TrackPublication
public class RemoteAudioTrackPublication extends java.lang.Object implements AudioTrackPublication
A remote audio track publication represents aRemoteAudioTrack
that has been shared to aRoom
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AudioTrack
getAudioTrack()
Returns the base audio track object of the published remote audio track.TrackPriority
getPublishPriority()
Returns theTrackPriority
set by the publisher for the correspondingRemoteAudioTrack
.RemoteAudioTrack
getRemoteAudioTrack()
Returns the published remote audio track.java.lang.String
getTrackName()
Returns the name of the published audio track.java.lang.String
getTrackSid()
Returns the remote audio track's server identifier.boolean
isTrackEnabled()
Check if remote audio track is enabled.boolean
isTrackSubscribed()
Check if the remote audio track is subscribed to by theLocalParticipant
.
-
-
-
Method Detail
-
getTrackSid
@NonNull public java.lang.String getTrackSid()
Returns the remote audio track's server identifier. This value uniquely identifies the remote audio track within the scope of aRoom
.- Specified by:
getTrackSid
in interfaceTrackPublication
-
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 interfaceAudioTrackPublication
- Returns:
- the published audio track.
- See Also:
LocalAudioTrackPublication
,RemoteAudioTrackPublication
-
getTrackName
@NonNull public java.lang.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 interfaceTrackPublication
-
isTrackEnabled
public boolean isTrackEnabled()
Check if remote audio track is enabled.- Specified by:
isTrackEnabled
in interfaceTrackPublication
-
isTrackSubscribed
public boolean isTrackSubscribed()
Check if the remote audio track is subscribed to by theLocalParticipant
.
-
getPublishPriority
@NonNull public TrackPriority getPublishPriority()
Returns theTrackPriority
set by the publisher for the correspondingRemoteAudioTrack
. ReturnsTrackPriority.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.
-
-