Skip to content

Commit

Permalink
feat: added TimecodeConfig for specifying the source of timecode used…
Browse files Browse the repository at this point in the history
… in media workflow synchronization (#5987)

feat: added Encryption for enabling output encryption with DRM systems
feat: added InputConfig to allow enabling/disabling automatic failover
feat: added new tasks to Event: inputSwitch, returnToProgram, mute, unmute
feat: added support for audio normalization and audio gain
docs: clarify behavior when update_mask is omitted in PATCH requests
PiperOrigin-RevId: 518110162
Source-Link: googleapis/googleapis@874ec6a
Source-Link: googleapis/googleapis-gen@414df04
Copy-Tag: eyJwIjoiVmlkZW9MaXZlU3RyZWFtLy5Pd2xCb3QueWFtbCIsImgiOiI0MTRkZjA0YjUwYWM3OTNkNjUyMzAzMGU3ZjJiN2MyNTY1ZjEyMjc3In0=
  • Loading branch information
gcf-owl-bot[bot] committed Mar 22, 2023
1 parent 8b1f6e3 commit 2744091
Show file tree
Hide file tree
Showing 46 changed files with 2,728 additions and 215 deletions.
Binary file modified VideoLiveStream/metadata/V1/Outputs.php
Binary file not shown.
Binary file modified VideoLiveStream/metadata/V1/Resources.php
Binary file not shown.
7 changes: 4 additions & 3 deletions VideoLiveStream/metadata/V1/Service.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -25,7 +25,7 @@
// [START livestream_v1_generated_LivestreamService_CreateEvent_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\Video\LiveStream\V1\Event;
use Google\Cloud\Video\LiveStream\V1\Event\AdBreakTask;
use Google\Cloud\Video\LiveStream\V1\Event\InputSwitchTask;
use Google\Cloud\Video\LiveStream\V1\LivestreamServiceClient;

/**
Expand All @@ -44,9 +44,9 @@ function create_event_sample(string $formattedParent, string $eventId): void
$livestreamServiceClient = new LivestreamServiceClient();

// Prepare any non-scalar elements to be passed along with the request.
$eventAdBreak = new AdBreakTask();
$eventInputSwitch = new InputSwitchTask();
$event = (new Event())
->setAdBreak($eventAdBreak);
->setInputSwitch($eventInputSwitch);

// Call the API and handle any network failures.
try {
Expand Down
@@ -0,0 +1,53 @@
<?php
/*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
* GENERATED CODE WARNING
* This file was automatically generated - do not edit!
*/

require_once __DIR__ . '/../../../vendor/autoload.php';

// [START livestream_v1_generated_LivestreamService_GetLocation_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\Location\Location;
use Google\Cloud\Video\LiveStream\V1\LivestreamServiceClient;

/**
* Gets information about a location.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
* - It may require correct/in-range values for request initialization.
* - It may require specifying regional endpoints when creating the service client,
* please see the apiEndpoint client configuration option for more details.
*/
function get_location_sample(): void
{
// Create a client.
$livestreamServiceClient = new LivestreamServiceClient();

// Call the API and handle any network failures.
try {
/** @var Location $response */
$response = $livestreamServiceClient->getLocation();
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
}
}
// [END livestream_v1_generated_LivestreamService_GetLocation_sync]
@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
* GENERATED CODE WARNING
* This file was automatically generated - do not edit!
*/

require_once __DIR__ . '/../../../vendor/autoload.php';

// [START livestream_v1_generated_LivestreamService_ListLocations_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\Location\Location;
use Google\Cloud\Video\LiveStream\V1\LivestreamServiceClient;

/**
* Lists information about the supported locations for this service.
*
* This sample has been automatically generated and should be regarded as a code
* template only. It will require modifications to work:
* - It may require correct/in-range values for request initialization.
* - It may require specifying regional endpoints when creating the service client,
* please see the apiEndpoint client configuration option for more details.
*/
function list_locations_sample(): void
{
// Create a client.
$livestreamServiceClient = new LivestreamServiceClient();

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $livestreamServiceClient->listLocations();

/** @var Location $element */
foreach ($response as $element) {
printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
}
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
}
}
// [END livestream_v1_generated_LivestreamService_ListLocations_sync]
12 changes: 8 additions & 4 deletions VideoLiveStream/src/V1/AudioStream.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

102 changes: 78 additions & 24 deletions VideoLiveStream/src/V1/AudioStream/AudioMapping.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2744091

Please sign in to comment.