Package com.twilio.video
Class RemoteAudioTrackPublication
java.lang.Object
com.twilio.video.RemoteAudioTrackPublication
- All Implemented Interfaces:
AudioTrackPublication
,TrackPublication
A remote audio track publication represents a
RemoteAudioTrack
that has been shared to a
Room
.-
Method Summary
Modifier and TypeMethodDescriptionReturns the base audio track object of the published remote audio track.Returns theTrackPriority
set by the publisher for the correspondingRemoteAudioTrack
.Returns the published remote audio track.Returns the name of the published audio track.Returns the remote audio track's server identifier.boolean
Check if remote audio track is enabled.boolean
Check if the remote audio track is subscribed to by theLocalParticipant
.
-
Method Details
-
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
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:
-
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
Returns theTrackPriority
set by the publisher for the correspondingRemoteAudioTrack
. ReturnsTrackPriority.STANDARD
if no priority was specified by the publisher. -
getRemoteAudioTrack
Returns the published remote audio track.null
is returned if the track is not subscribed to.
-