Google Cloud Video Live Stream V1 Client - Class VideoFormat (0.6.2)

Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class VideoFormat.

Properties of the video format.

Generated from protobuf message google.cloud.video.livestream.v1.VideoFormat

Namespace

Google \ Cloud \ Video \ LiveStream \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ codec string

Video codec used in this video stream.

↳ width_pixels int

The width of the video stream in pixels.

↳ height_pixels int

The height of the video stream in pixels.

↳ frame_rate float

The frame rate of the input video stream.

getCodec

Video codec used in this video stream.

Returns
TypeDescription
string

setCodec

Video codec used in this video stream.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getWidthPixels

The width of the video stream in pixels.

Returns
TypeDescription
int

setWidthPixels

The width of the video stream in pixels.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getHeightPixels

The height of the video stream in pixels.

Returns
TypeDescription
int

setHeightPixels

The height of the video stream in pixels.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getFrameRate

The frame rate of the input video stream.

Returns
TypeDescription
float

setFrameRate

The frame rate of the input video stream.

Parameter
NameDescription
var float
Returns
TypeDescription
$this