-
public final class RemoteTrackPublication extends TrackPublication
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumRemoteTrackPublication.SubscriptionStatus
-
Field Summary
Fields Modifier and Type Field Description private Tracktrackprivate BooleanisDesiredprivate BooleansubscriptionAllowedprivate final BooleanisAutoManagedprivate final Booleansubscribedprivate final RemoteTrackPublication.SubscriptionStatussubscriptionStatusprivate Booleanmutedprivate Stringnameprivate Stringsidprivate Track.Kindkindprivate final LivekitModels.Encryption.TypeencryptionTypeprivate final EventListenable<TrackPublicationEvent>eventsprivate Booleansimulcastedprivate Track.Dimensionsdimensionsprivate Track.Sourcesourceprivate StringmimeTypeprivate WeakReference<Participant>participant
-
Constructor Summary
Constructors Constructor Description RemoteTrackPublication(LivekitModels.TrackInfo info, Track track, RemoteParticipant participant, CoroutineDispatcher ioDispatcher, Boolean autoSubscribe)
-
Method Summary
Modifier and Type Method Description TrackgetTrack()UnitsetTrack(Track track)final BooleangetIsDesired()final UnitsetIsDesired(Boolean isDesired)final BooleangetSubscriptionAllowed()final UnitsetSubscriptionAllowed(Boolean subscriptionAllowed)final BooleangetIsAutoManaged()BooleangetSubscribed()final RemoteTrackPublication.SubscriptionStatusgetSubscriptionStatus()BooleangetMuted()UnitsetMuted(Boolean muted)final StringgetName()final UnitsetName(String name)final StringgetSid()final UnitsetSid(String sid)final Track.KindgetKind()final UnitsetKind(Track.Kind kind)LivekitModels.Encryption.TypegetEncryptionType()final EventListenable<TrackPublicationEvent>getEvents()final BooleangetSimulcasted()final UnitsetSimulcasted(Boolean simulcasted)final Track.DimensionsgetDimensions()final UnitsetDimensions(Track.Dimensions dimensions)final Track.SourcegetSource()final UnitsetSource(Track.Source source)final StringgetMimeType()final UnitsetMimeType(String mimeType)final WeakReference<Participant>getParticipant()final UnitsetParticipant(WeakReference<Participant> participant)final UnitsetSubscribed(Boolean subscribed)Subscribe or unsubscribe from this track final UnitsetEnabled(Boolean enabled)disable server from sending down data for this trackthis is useful when the participant is off screen, you may disable streaming down their video to reduce bandwidth requirements final UnitsetVideoQuality(VideoQuality quality)For tracks that support simulcasting, directly adjust subscribed qualityThis indicates the highest quality the client can accept. final UnitsetVideoDimensions(Track.Dimensions dimensions)Update the dimensions that the server will use for determining the video quality to send down. final UnitsetVideoFps(Integer fps)Update the fps that the server will use for determining the video quality to send down. -
-
Constructor Detail
-
RemoteTrackPublication
RemoteTrackPublication(LivekitModels.TrackInfo info, Track track, RemoteParticipant participant, CoroutineDispatcher ioDispatcher, Boolean autoSubscribe)
-
-
Method Detail
-
getIsDesired
final Boolean getIsDesired()
-
setIsDesired
final Unit setIsDesired(Boolean isDesired)
-
getSubscriptionAllowed
final Boolean getSubscriptionAllowed()
-
setSubscriptionAllowed
final Unit setSubscriptionAllowed(Boolean subscriptionAllowed)
-
getIsAutoManaged
final Boolean getIsAutoManaged()
-
getSubscribed
Boolean getSubscribed()
-
getSubscriptionStatus
final RemoteTrackPublication.SubscriptionStatus getSubscriptionStatus()
-
getKind
final Track.Kind getKind()
-
setKind
final Unit setKind(Track.Kind kind)
-
getEncryptionType
LivekitModels.Encryption.Type getEncryptionType()
-
getEvents
final EventListenable<TrackPublicationEvent> getEvents()
-
getSimulcasted
final Boolean getSimulcasted()
-
setSimulcasted
final Unit setSimulcasted(Boolean simulcasted)
-
getDimensions
final Track.Dimensions getDimensions()
-
setDimensions
final Unit setDimensions(Track.Dimensions dimensions)
-
getSource
final Track.Source getSource()
-
setSource
final Unit setSource(Track.Source source)
-
getMimeType
final String getMimeType()
-
setMimeType
final Unit setMimeType(String mimeType)
-
getParticipant
final WeakReference<Participant> getParticipant()
-
setParticipant
final Unit setParticipant(WeakReference<Participant> participant)
-
setSubscribed
final Unit setSubscribed(Boolean subscribed)
Subscribe or unsubscribe from this track
-
setEnabled
final Unit setEnabled(Boolean enabled)
disable server from sending down data for this track
this is useful when the participant is off screen, you may disable streaming down their video to reduce bandwidth requirements
-
setVideoQuality
final Unit setVideoQuality(VideoQuality quality)
For tracks that support simulcasting, directly adjust subscribed quality
This indicates the highest quality the client can accept. If network bandwidth does not allow, server will automatically reduce quality to optimize for uninterrupted video.
Will override previous calls to setVideoDimensions.
-
setVideoDimensions
final Unit setVideoDimensions(Track.Dimensions dimensions)
Update the dimensions that the server will use for determining the video quality to send down.
Will override previous calls to setVideoQuality.
-
setVideoFps
final Unit setVideoFps(Integer fps)
Update the fps that the server will use for determining the video quality to send down.
-
-
-
-