public class RemoteVideoTrackPublication extends java.lang.Object implements VideoTrackPublication
RemoteVideoTrack
that has been shared to a
Room
.Modifier and Type | Method and Description |
---|---|
TrackPriority |
getPublishPriority()
Returns the
TrackPriority set by the publisher for the corresponding RemoteVideoTrack . |
RemoteVideoTrack |
getRemoteVideoTrack() |
java.lang.String |
getTrackName()
Returns the name of the published video track.
|
java.lang.String |
getTrackSid()
Returns the remote video track's server identifier.
|
VideoTrack |
getVideoTrack()
Returns the base video track object of the published remote video track.
|
boolean |
isTrackEnabled()
Returns true if the published video track is enabled or false otherwise.
|
boolean |
isTrackSubscribed()
Check if the remote video track is subscribed to by the
LocalParticipant . |
@NonNull public java.lang.String getTrackSid()
Room
.getTrackSid
in interface TrackPublication
@Nullable public VideoTrack getVideoTrack()
null
is
returned if the track is not subscribed to.getVideoTrack
in interface VideoTrackPublication
LocalVideoTrackPublication
,
RemoteVideoTrackPublication
@NonNull public java.lang.String getTrackName()
getTrackName
in interface TrackPublication
public boolean isTrackEnabled()
isTrackEnabled
in interface TrackPublication
public boolean isTrackSubscribed()
LocalParticipant
.@NonNull public TrackPriority getPublishPriority()
TrackPriority
set by the publisher for the corresponding RemoteVideoTrack
. Returns TrackPriority.STANDARD
if no priority was specified by the
publisher.@Nullable public RemoteVideoTrack getRemoteVideoTrack()
null
is returned if the track is
not subscribed to.6.4.1