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
NameDescription
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
TypeDescription
string

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPlayUri

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

Returns
TypeDescription
string

setPlayUri

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSourceUri

The URI of the live session's source stream.

Returns
TypeDescription
string

setSourceUri

The URI of the live session's source stream.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var bool
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this

getManifestOptions

Additional options that affect the output of the manifest.

Returns
TypeDescription
Google\Cloud\Video\Stitcher\V1\ManifestOptions|null

hasManifestOptions

clearManifestOptions

setManifestOptions

Additional options that affect the output of the manifest.

Parameter
NameDescription
var Google\Cloud\Video\Stitcher\V1\ManifestOptions
Returns
TypeDescription
$this

getStreamId

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

Returns
TypeDescription
string

setStreamId

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this