Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [VideoLiveStream] added TimecodeConfig for specifying the source of timecode used in media workflow synchronization #5987

Merged
merged 2 commits into from Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.