Google Cloud Video Transcoder V1 Client - Class SegmentSettings (1.3.1)

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

Segment settings for ts, fmp4 and vtt.

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

Namespace

Google \ Cloud \ Video \ Transcoder \ 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 6.0s. Note that segmentDuration must be greater than or equal to gopDuration, and segmentDuration must be divisible by gopDuration.

↳ individual_segments bool

Required. Create an individual segment file. The default is false.

getSegmentDuration

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

Returns
Type Description
Google\Protobuf\Duration|null

hasSegmentDuration

clearSegmentDuration

setSegmentDuration

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

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

getIndividualSegments

Required. Create an individual segment file. The default is false.

Returns
Type Description
bool

setIndividualSegments

Required. Create an individual segment file. The default is false.

Parameter
Name Description
var bool
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.