Package 

Class VideoTrackPublishOptions

    • Method Detail

      • getScalabilityMode

         String getScalabilityMode()

        scalability mode for svc codecs, defaults to 'L3T3'. for svc codecs, simulcast is disabled.

      • getBackupCodec

         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.

      • getStream

         String getStream()

        The stream name for the track. Audio and video tracks with the same stream name will be placed in the same MediaStream and offer better synchronization.

        By default, camera and microphone will be placed in the same stream.

      • getDegradationPreference

         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

         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.