Package 

Class BaseVideoTrackPublishOptions

    • Constructor Detail

      • BaseVideoTrackPublishOptions

        BaseVideoTrackPublishOptions()
    • Method Detail

      • 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.