-
- All Implemented Interfaces:
-
com.twilio.video.TrackPublication,com.twilio.video.VideoTrackPublication
public class LocalVideoTrackPublication implements VideoTrackPublication
A local video track publication represents a LocalVideoTrack that has been shared to a Room.
-
-
Field Summary
Fields Modifier and Type Field Description private final LocalVideoTracklocalVideoTrackprivate TrackPrioritypriority
-
Method Summary
Modifier and Type Method Description LocalVideoTrackgetLocalVideoTrack()Returns the published local video track. TrackPrioritygetPriority()Returns the TrackPriority of the published local video track. voidsetPriority(TrackPriority priority)Update the publisher's TrackPriority for this LocalVideoTrack after it hasbeen published. StringgetTrackSid()Returns the local video track's server identifier. StringgetTrackName()Returns the name of the local video track. booleanisTrackEnabled()Check if local video track is enabled. VideoTrackgetVideoTrack()Unlike VideoTrackPublication or RemoteVideoTrackPublication this is guaranteed to be non null. -
-
Method Detail
-
getLocalVideoTrack
@NonNull() LocalVideoTrack getLocalVideoTrack()
Returns the published local video track.
-
getPriority
@NonNull() TrackPriority getPriority()
Returns the TrackPriority of the published local video track.
-
setPriority
void setPriority(TrackPriority priority)
Update the publisher's TrackPriority for this LocalVideoTrack after it hasbeen published. This method is a no-op if the LocalVideoTrack has been unpublished,or the LocalParticipant has disconnected from the Room.
- Parameters:
priority- The TrackPriority to be set.
-
getTrackSid
@NonNull() String getTrackSid()
Returns the local video track's server identifier. This value uniquely identifies the localvideo track within the scope of a Room.
-
getTrackName
@NonNull() String getTrackName()
Returns the name of the local video track. An empty string is returned if no name wasspecified.
-
isTrackEnabled
boolean isTrackEnabled()
Check if local video track is enabled.
-
getVideoTrack
@NonNull() VideoTrack getVideoTrack()
Unlike VideoTrackPublication or RemoteVideoTrackPublication this is guaranteed to be non null.
-
-
-
-