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 aLocalVideoTrackthat has been shared to aRoom.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalVideoTrackgetLocalVideoTrack()Returns the published local video track.TrackPrioritygetPriority()Returns theTrackPriorityof the published local video track.java.lang.StringgetTrackName()Returns the name of the local video track.java.lang.StringgetTrackSid()Returns the local video track's server identifier.VideoTrackgetVideoTrack()UnlikeVideoTrackPublicationorRemoteVideoTrackPublicationthisVideoTrackis guaranteed to be non null.booleanisTrackEnabled()Check if local video track is enabled.voidsetPriority(TrackPriority priority)Update the publisher'sTrackPriorityfor thisLocalVideoTrackafter 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:
getTrackSidin 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:
getTrackNamein interfaceTrackPublication
-
isTrackEnabled
public boolean isTrackEnabled()
Check if local video track is enabled.- Specified by:
isTrackEnabledin interfaceTrackPublication
-
getVideoTrack
@NonNull public VideoTrack getVideoTrack()
UnlikeVideoTrackPublicationorRemoteVideoTrackPublicationthisVideoTrackis guaranteed to be non null.- Specified by:
getVideoTrackin 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 theTrackPriorityof the published local video track.
-
setPriority
public void setPriority(TrackPriority priority)
Update the publisher'sTrackPriorityfor thisLocalVideoTrackafter it has been published. This method is a no-op if theLocalVideoTrackhas been unpublished, or theLocalParticipanthas disconnected from theRoom.- Parameters:
priority- TheTrackPriorityto be set.
-
-