class BitRate extends BaseQualifier

Defines the video bitrate in bits per second.

Learn more: Bitrate control

Methods

__construct(int|string $bitRate, null|string $type = null)

BitRate constructor.

bitRate(int|string $bitRate)

Sets the bitrate.

type(string $bitRateType)

The type of bitrate.

constant()

Sets bitrate type to constant

Details

__construct(int|string $bitRate, null|string $type = null)

BitRate constructor.

Parameters

Name Type Description
$bitRate int|string
$type null|string

$this bitRate(int|string $bitRate)

Sets the bitrate.

Parameters

Name Type Description
$bitRate int|string The bitrate in bits per second. The value supports "k" and "m "for kilobits and megabits respectively.

Return Value

$this

$this type(string $bitRateType)

The type of bitrate.

Parameters

Name Type Description
$bitRateType string The type of bitrate. If "constant" is specified, the video plays with a constant bitrate (CBR).

Return Value

$this

$this constant()

Sets bitrate type to constant

Return Value

$this

Constants

CONSTANT