-
public abstract class BaseVideoTrackPublishOptions
-
-
Field Summary
Fields Modifier and Type Field Description private final VideoEncodingvideoEncodingprivate final Booleansimulcastprivate final StringvideoCodecprivate final StringscalabilityModeprivate final BackupVideoCodecbackupCodecprivate final RtpParameters.DegradationPreferencedegradationPreferenceprivate final List<VideoPreset>simulcastLayers
-
Constructor Summary
Constructors Constructor Description BaseVideoTrackPublishOptions()
-
Method Summary
Modifier and Type Method Description abstract VideoEncodinggetVideoEncoding()abstract BooleangetSimulcast()abstract StringgetVideoCodec()The video codec to use if available. abstract StringgetScalabilityMode()scalability mode for svc codecs, defaults to 'L3T3'. abstract BackupVideoCodecgetBackupCodec()Multi-codec SimulcastCodecs such as VP9 and AV1 are not supported by all clients. abstract RtpParameters.DegradationPreferencegetDegradationPreference()When bandwidth is constrained, this preference indicates which is preferred between degrading resolution vs. abstract List<VideoPreset>getSimulcastLayers()Up to two additional simulcast layers to publish in addition to the original Track. -
-
Method Detail
-
getVideoEncoding
abstract VideoEncoding getVideoEncoding()
-
getSimulcast
abstract Boolean getSimulcast()
-
getVideoCodec
abstract String getVideoCodec()
The video codec to use if available.
Defaults to VP8.
-
getScalabilityMode
abstract String getScalabilityMode()
scalability mode for svc codecs, defaults to 'L3T3'. for svc codecs, simulcast is disabled.
-
getBackupCodec
abstract BackupVideoCodec getBackupCodec()
Multi-codec Simulcast
Codecs such as VP9 and AV1 are not supported by all clients. When backupCodec is set, when an incompatible client attempts to subscribe to the track, LiveKit will automatically publish a secondary track encoded with the backup codec.
-
getDegradationPreference
abstract RtpParameters.DegradationPreference getDegradationPreference()
When bandwidth is constrained, this preference indicates which is preferred between degrading resolution vs. framerate.
null value indicates default value (maintain framerate).
-
getSimulcastLayers
abstract List<VideoPreset> getSimulcastLayers()
Up to two additional simulcast layers to publish in addition to the original Track. Layers should be ordered from smallest to largest. Layers beyond the first two will be ignored. Any layers that have larger resolutions than the source resolution will also be ignored.
When set to null, it defaults to H180 and H360.
-
-
-
-