IngressVideoEncodingOptions
extends Message
in package
Generated from protobuf message <code>livekit.IngressVideoEncodingOptions</code>
Table of Contents
Properties
- $frame_rate : mixed
- Generated from protobuf field <code>double frame_rate = 2;</code>
- $video_codec : mixed
- desired codec to publish to room
- $layers : mixed
- simulcast layers to publish, when empty, should usually be set to layers at 1/2 and 1/4 of the dimensions
Methods
- __construct() : mixed
- Constructor.
- getFrameRate() : float
- Generated from protobuf field <code>double frame_rate = 2;</code>
- getLayers() : RepeatedField<string|int, VideoLayer>
- simulcast layers to publish, when empty, should usually be set to layers at 1/2 and 1/4 of the dimensions
- getVideoCodec() : int
- desired codec to publish to room
- setFrameRate() : $this
- Generated from protobuf field <code>double frame_rate = 2;</code>
- setLayers() : $this
- simulcast layers to publish, when empty, should usually be set to layers at 1/2 and 1/4 of the dimensions
- setVideoCodec() : $this
- desired codec to publish to room
Properties
$frame_rate
Generated from protobuf field <code>double frame_rate = 2;</code>
protected
mixed
$frame_rate
= 0.0
$video_codec
desired codec to publish to room
protected
mixed
$video_codec
= 0
Generated from protobuf field .livekit.VideoCodec video_codec = 1;
$layers
simulcast layers to publish, when empty, should usually be set to layers at 1/2 and 1/4 of the dimensions
private
mixed
$layers
Generated from protobuf field repeated .livekit.VideoLayer layers = 3;
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
- $data : array<string|int, mixed> = null
-
{ Optional. Data for populating the Message object.
@type int $video_codec desired codec to publish to room @type float $frame_rate @type \Livekit\VideoLayer[] $layers simulcast layers to publish, when empty, should usually be set to layers at 1/2 and 1/4 of the dimensions}
getFrameRate()
Generated from protobuf field <code>double frame_rate = 2;</code>
public
getFrameRate() : float
Return values
floatgetLayers()
simulcast layers to publish, when empty, should usually be set to layers at 1/2 and 1/4 of the dimensions
public
getLayers() : RepeatedField<string|int, VideoLayer>
Generated from protobuf field repeated .livekit.VideoLayer layers = 3;
Return values
RepeatedField<string|int, VideoLayer>getVideoCodec()
desired codec to publish to room
public
getVideoCodec() : int
Generated from protobuf field .livekit.VideoCodec video_codec = 1;
Return values
intsetFrameRate()
Generated from protobuf field <code>double frame_rate = 2;</code>
public
setFrameRate(float $var) : $this
Parameters
- $var : float
Return values
$thissetLayers()
simulcast layers to publish, when empty, should usually be set to layers at 1/2 and 1/4 of the dimensions
public
setLayers(array<string|int, VideoLayer> $var) : $this
Generated from protobuf field repeated .livekit.VideoLayer layers = 3;
Parameters
- $var : array<string|int, VideoLayer>
Return values
$thissetVideoCodec()
desired codec to publish to room
public
setVideoCodec(int $var) : $this
Generated from protobuf field .livekit.VideoCodec video_codec = 1;
Parameters
- $var : int