VideoConfig

class VideoConfig(val resolution: Size = Resolution.RESOLUTION_720.size, val bitrate: Int = getDefaultBitrate(resolution), val fps: Int = 30, val gopDuration: Float = 1.0f)

Describes video configuration.

Constructors

Link copied to clipboard
constructor(resolution: Resolution, bitrate: Int, fps: Int, gopDuration: Float)
constructor(resolution: Size = Resolution.RESOLUTION_720.size, bitrate: Int = getDefaultBitrate(resolution), fps: Int = 30, gopDuration: Float = 1.0f)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Video bitrate in bps.

Link copied to clipboard
val fps: Int = 30

Video frame rate.

Link copied to clipboard
val gopDuration: Float = 1.0f

The time interval between two consecutive key frames.

Link copied to clipboard

Video resolution.