CodecConfig

sealed class CodecConfig(val mimeType: String, val startBitrate: Int, val profile: Int = 0)(source)

Base configuration class. If you don't know how to set class members, Video encoding recommendations should give you hints.

Inheritors

Constructors

Link copied to clipboard
protected constructor(mimeType: String, startBitrate: Int, profile: Int = 0)

Properties

Link copied to clipboard

Get default encoder name. If name is null, it won't be possible to start a stream.

Link copied to clipboard

The encoder mime type.

Link copied to clipboard

The encoder profile. Only applicable to AAC, AVC, HEVC, VP9, AV1.

Link copied to clipboard

The encoder bitrate in bits/s.

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun isFormatSupportedForEncoder(requestFallback: Boolean = false): Boolean

Whether configuration is supported by the default encoder. If format is not supported, it won't be possible to start a stream.

fun isFormatSupportedForEncoder(name: String, requestFallback: Boolean = false): Boolean

Check if this configuration is supported by the specified encoder. If format is not supported, it won't be possible to start a stream.

Link copied to clipboard
open override fun toString(): String