-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added TimecodeConfig for specifying the source of timecode used…
… 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
1 parent
8b1f6e3
commit 2744091
Showing
46 changed files
with
2,728 additions
and
215 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
VideoLiveStream/samples/V1/LivestreamServiceClient/get_location.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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] |
58 changes: 58 additions & 0 deletions
58
VideoLiveStream/samples/V1/LivestreamServiceClient/list_locations.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.