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

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

The segment reference scheme for a DASH manifest.

Protobuf type google.cloud.video.transcoder.v1.Manifest.DashConfig.SegmentReferenceScheme

Namespace

Google \ Cloud \ Video \ Transcoder \ V1 \ Manifest \ DashConfig

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

SEGMENT_REFERENCE_SCHEME_UNSPECIFIED

Value: 0

The segment reference scheme is not specified.

Generated from protobuf enum SEGMENT_REFERENCE_SCHEME_UNSPECIFIED = 0;

SEGMENT_LIST

Value: 1

Explicitly lists the URLs of media files for each segment. For example, if SegmentSettings.individual_segments is true, then the manifest contains fields similar to the following:

<Initialization sourceURL="my-hd-stream-init.m4s"/>
 <SegmentList presentationTimeOffset="0" duration="1000"
 timescale="10000">
 <SegmentURL media="hd-stream0000000000.m4s"/>
 <SegmentURL media="hd-stream0000000001.m4s"/>
 ...

Generated from protobuf enum SEGMENT_LIST = 1;

SEGMENT_TEMPLATE_NUMBER

Value: 2

SegmentSettings.individual_segments must be set to true to use this segment reference scheme. Uses the DASH specification <SegmentTemplate> tag to determine the URLs of media files for each segment. For example:

<SegmentTemplate presentationTimeOffset="0" timescale="10000"
 initialization="my-hd-stream-init.m4s"
 media="hd-stream$Number%010d$.m4s" startNumber="0">
 ...

Generated from protobuf enum SEGMENT_TEMPLATE_NUMBER = 2;

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.