Package com.twilio.video
Class LocalVideoTrackPublication
java.lang.Object
com.twilio.video.LocalVideoTrackPublication
- All Implemented Interfaces:
TrackPublication
,VideoTrackPublication
A local video track publication represents a
LocalVideoTrack
that has been shared to a
Room
.-
Method Summary
Modifier and TypeMethodDescriptionReturns the published local video track.Returns theTrackPriority
of the published local video track.Returns the name of the local video track.Returns the local video track's server identifier.UnlikeVideoTrackPublication
orRemoteVideoTrackPublication
thisVideoTrack
is guaranteed to be non null.boolean
Check if local video track is enabled.void
setPriority
(TrackPriority priority) Update the publisher'sTrackPriority
for thisLocalVideoTrack
after it has been published.
-
Method Details
-
getTrackSid
Returns the local video track's server identifier. This value uniquely identifies the local video track within the scope of aRoom
.- Specified by:
getTrackSid
in interfaceTrackPublication
-
getTrackName
Returns the name of the local video track. An empty string is returned if no name was specified.- Specified by:
getTrackName
in interfaceTrackPublication
-
isTrackEnabled
public boolean isTrackEnabled()Check if local video track is enabled.- Specified by:
isTrackEnabled
in interfaceTrackPublication
-
getVideoTrack
UnlikeVideoTrackPublication
orRemoteVideoTrackPublication
thisVideoTrack
is guaranteed to be non null.- Specified by:
getVideoTrack
in interfaceVideoTrackPublication
- Returns:
- Returns the base video track object of the published local video track.
- See Also:
-
getLocalVideoTrack
Returns the published local video track. -
getPriority
Returns theTrackPriority
of the published local video track. -
setPriority
Update the publisher'sTrackPriority
for thisLocalVideoTrack
after it has been published. This method is a no-op if theLocalVideoTrack
has been unpublished, or theLocalParticipant
has disconnected from theRoom
.- Parameters:
priority
- TheTrackPriority
to be set.
-