Google Cloud Video Stitcher V1 Client - Class LiveSession (0.3.4)

Reference documentation and code samples for the Google Cloud Video Stitcher V1 Client class LiveSession.

Metadata for a live session.

Generated from protobuf message google.cloud.video.stitcher.v1.LiveSession

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The name of the live session, in the form of projects/{project}/locations/{location}/liveSessions/{id}.

↳ play_uri string

Output only. The URI to play the live session's ad-stitched stream.

↳ source_uri string

The URI of the live session's source stream.

↳ default_ad_tag_id string

The default ad tag to use when no ad tag ids are specified in an ad break's SCTE-35 message. default_ad_tag_id is necessary when adTagMap has more than one key. Its value must be present in the adTagMap.

↳ ad_tag_map array|Google\Protobuf\Internal\MapField

Key value pairs for ad tags. Ads parsed from ad tags must be MP4 videos each with at least one audio track.

↳ ad_tag_macros array|Google\Protobuf\Internal\MapField

Key value pairs for ad tag macro replacement. If the specified ad tag URI has macros, this field provides the mapping to the value that will replace the macro in the ad tag URI. Macros are designated by square brackets. For example: Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]" Ad tag macros: {"geoId": "123"} Fully qualified ad tag: "https://doubleclick.google.com/ad/1?geo_id=123"

↳ client_ad_tracking bool

Whether client side ad tracking is enabled. If enabled, the client player is expected to trigger playback and activity events itself. Otherwise, server side ad tracking is enabled and the Video Stitcher API will trigger playback events on behalf of the client player.

↳ default_slate_id string

The default slate to use when no slates are specified in an ad break's SCTE-35 message. When specified, this value must match the ID for a slate that has already been created via the CreateSlate method.

↳ stitching_policy int

Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries. If not specified, the default is COMPLETE_AD.

↳ manifest_options Google\Cloud\Video\Stitcher\V1\ManifestOptions

Additional options that affect the output of the manifest.

↳ stream_id string

Output only. The generated ID of the LiveSession's source stream.

getName

Output only. The name of the live session, in the form of projects/{project}/locations/{location}/liveSessions/{id}.

Returns
Type Description
string

setName

Output only. The name of the live session, in the form of projects/{project}/locations/{location}/liveSessions/{id}.

Parameter
Name Description
var string
Returns
Type Description
$this

getPlayUri

Output only. The URI to play the live session's ad-stitched stream.

Returns
Type Description
string

setPlayUri

Output only. The URI to play the live session's ad-stitched stream.

Parameter
Name Description
var string
Returns
Type Description
$this

getSourceUri

The URI of the live session's source stream.

Returns
Type Description
string

setSourceUri

The URI of the live session's source stream.

Parameter
Name Description
var string
Returns
Type Description
$this

getDefaultAdTagId

The default ad tag to use when no ad tag ids are specified in an ad break's SCTE-35 message.

default_ad_tag_id is necessary when adTagMap has more than one key. Its value must be present in the adTagMap.

Returns
Type Description
string

setDefaultAdTagId

The default ad tag to use when no ad tag ids are specified in an ad break's SCTE-35 message.

default_ad_tag_id is necessary when adTagMap has more than one key. Its value must be present in the adTagMap.

Parameter
Name Description
var string
Returns
Type Description
$this

getAdTagMap

Key value pairs for ad tags. Ads parsed from ad tags must be MP4 videos each with at least one audio track.

Returns
Type Description
Google\Protobuf\Internal\MapField

setAdTagMap

Key value pairs for ad tags. Ads parsed from ad tags must be MP4 videos each with at least one audio track.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getAdTagMacros

Key value pairs for ad tag macro replacement. If the specified ad tag URI has macros, this field provides the mapping to the value that will replace the macro in the ad tag URI.

Macros are designated by square brackets. For example: Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]" Ad tag macros: {"geoId": "123"} Fully qualified ad tag: "https://doubleclick.google.com/ad/1?geo_id=123"

Returns
Type Description
Google\Protobuf\Internal\MapField

setAdTagMacros

Key value pairs for ad tag macro replacement. If the specified ad tag URI has macros, this field provides the mapping to the value that will replace the macro in the ad tag URI.

Macros are designated by square brackets. For example: Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]" Ad tag macros: {"geoId": "123"} Fully qualified ad tag: "https://doubleclick.google.com/ad/1?geo_id=123"

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getClientAdTracking

Whether client side ad tracking is enabled. If enabled, the client player is expected to trigger playback and activity events itself. Otherwise, server side ad tracking is enabled and the Video Stitcher API will trigger playback events on behalf of the client player.

Returns
Type Description
bool

setClientAdTracking

Whether client side ad tracking is enabled. If enabled, the client player is expected to trigger playback and activity events itself. Otherwise, server side ad tracking is enabled and the Video Stitcher API will trigger playback events on behalf of the client player.

Parameter
Name Description
var bool
Returns
Type Description
$this

getDefaultSlateId

The default slate to use when no slates are specified in an ad break's SCTE-35 message. When specified, this value must match the ID for a slate that has already been created via the CreateSlate method.

Returns
Type Description
string

setDefaultSlateId

The default slate to use when no slates are specified in an ad break's SCTE-35 message. When specified, this value must match the ID for a slate that has already been created via the CreateSlate method.

Parameter
Name Description
var string
Returns
Type Description
$this

getStitchingPolicy

Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries. If not specified, the default is COMPLETE_AD.

Returns
Type Description
int

setStitchingPolicy

Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries. If not specified, the default is COMPLETE_AD.

Parameter
Name Description
var int
Returns
Type Description
$this

getManifestOptions

Additional options that affect the output of the manifest.

Returns
Type Description
Google\Cloud\Video\Stitcher\V1\ManifestOptions|null

hasManifestOptions

clearManifestOptions

setManifestOptions

Additional options that affect the output of the manifest.

Parameter
Name Description
var Google\Cloud\Video\Stitcher\V1\ManifestOptions
Returns
Type Description
$this

getStreamId

Output only. The generated ID of the LiveSession's source stream.

Returns
Type Description
string

setStreamId

Output only. The generated ID of the LiveSession's source stream.

Parameter
Name Description
var string
Returns
Type Description
$this