Package com.twilio.video
Class LocalVideoTrackPublication
- java.lang.Object
-
- com.twilio.video.LocalVideoTrackPublication
-
- All Implemented Interfaces:
TrackPublication
,VideoTrackPublication
public class LocalVideoTrackPublication extends java.lang.Object implements VideoTrackPublication
A local video track publication represents aLocalVideoTrack
that has been shared to aRoom
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalVideoTrack
getLocalVideoTrack()
Returns the published local video track.TrackPriority
getPriority()
Returns theTrackPriority
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()
UnlikeVideoTrackPublication
orRemoteVideoTrackPublication
thisVideoTrack
is guaranteed to be non null.boolean
isTrackEnabled()
Check if local video track is enabled.void
setPriority(TrackPriority priority)
Update the publisher'sTrackPriority
for thisLocalVideoTrack
after it has been published.
-
-
-
Method Detail
-
getTrackSid
@NonNull public java.lang.String 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
@NonNull public java.lang.String 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
@NonNull public VideoTrack 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:
LocalVideoTrackPublication
,RemoteVideoTrackPublication
-
getLocalVideoTrack
@NonNull public LocalVideoTrack getLocalVideoTrack()
Returns the published local video track.
-
getPriority
@NonNull public TrackPriority getPriority()
Returns theTrackPriority
of the published local video track.
-
setPriority
public void setPriority(TrackPriority priority)
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.
-
-