Google Cloud Video Live Stream V1 Client - Class SegmentSettings (0.7.5)

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

Segment settings for fmp4 and ts.

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

Namespace

Google \ Cloud \ Video \ LiveStream \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ segment_duration Google\Protobuf\Duration

Duration of the segments in seconds. The default is 6s. Note that segmentDuration must be greater than or equal to gop_duration, and segmentDuration must be divisible by gop_duration. Valid range is [2s, 20s]. All mux_streams in the same manifest must have the same segment duration.

getSegmentDuration

Duration of the segments in seconds. The default is 6s. Note that segmentDuration must be greater than or equal to gop_duration, and segmentDuration must be divisible by gop_duration.

Valid range is [2s, 20s]. All mux_streams in the same manifest must have the same segment duration.

Returns
Type Description
Google\Protobuf\Duration|null

hasSegmentDuration

clearSegmentDuration

setSegmentDuration

Duration of the segments in seconds. The default is 6s. Note that segmentDuration must be greater than or equal to gop_duration, and segmentDuration must be divisible by gop_duration.

Valid range is [2s, 20s]. All mux_streams in the same manifest must have the same segment duration.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this