public class LocalVideoTrackPublication extends java.lang.Object implements VideoTrackPublication
LocalVideoTrack
that has been shared to a
Room
.Modifier and Type | Method and Description |
---|---|
LocalVideoTrack |
getLocalVideoTrack()
Returns the published local video track.
|
TrackPriority |
getPriority()
Returns the
TrackPriority of the published local video track. |
java.lang.String |
getTrackName()
Returns the name of the local video track.
|
java.lang.String |
getTrackSid()
Returns the local video track's server identifier.
|
VideoTrack |
getVideoTrack()
Unlike
VideoTrackPublication or RemoteVideoTrackPublication this VideoTrack is guaranteed to be non null. |
boolean |
isTrackEnabled()
Check if local video track is enabled.
|
void |
setPriority(TrackPriority priority)
Update the publisher's
TrackPriority for this LocalVideoTrack after it has
been published. |
@NonNull public java.lang.String getTrackSid()
Room
.getTrackSid
in interface TrackPublication
@NonNull public java.lang.String getTrackName()
getTrackName
in interface TrackPublication
public boolean isTrackEnabled()
isTrackEnabled
in interface TrackPublication
@NonNull public VideoTrack getVideoTrack()
VideoTrackPublication
or RemoteVideoTrackPublication
this VideoTrack
is guaranteed to be non null.getVideoTrack
in interface VideoTrackPublication
LocalVideoTrackPublication
,
RemoteVideoTrackPublication
@NonNull public LocalVideoTrack getLocalVideoTrack()
@NonNull public TrackPriority getPriority()
TrackPriority
of the published local video track.public void setPriority(TrackPriority priority)
TrackPriority
for this LocalVideoTrack
after it has
been published. This method is a no-op if the LocalVideoTrack
has been unpublished,
or the LocalParticipant
has disconnected from the Room
.priority
- The TrackPriority
to be set.6.4.1