Skip to content

Commit

Permalink
docs(samples): add Video Stitcher VOD and live session code samples a… (
Browse files Browse the repository at this point in the history
#9)

* docs(samples): add Video Stitcher VOD and live session code samples and tests

* Remove async from slate and live session before and after hooks

* clean out old slates and CDN keys

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* update SHA

Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 15, 2022
1 parent f3cc127 commit 2478424
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/google-cloud-video-stitcher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,23 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-video-stitc
| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Create Cdn Key | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/createCdnKey.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/createCdnKey.js,samples/README.md) |
| Create Live Session | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/createLiveSession.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/createLiveSession.js,samples/README.md) |
| Create Slate | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/createSlate.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/createSlate.js,samples/README.md) |
| Create Vod Session | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/createVodSession.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/createVodSession.js,samples/README.md) |
| Delete Cdn Key | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/deleteCdnKey.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/deleteCdnKey.js,samples/README.md) |
| Delete Slate | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/deleteSlate.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/deleteSlate.js,samples/README.md) |
| Get Cdn Key | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/getCdnKey.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/getCdnKey.js,samples/README.md) |
| Get Live Ad Tag Detail | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/getLiveAdTagDetail.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/getLiveAdTagDetail.js,samples/README.md) |
| Get Live Session | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/getLiveSession.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/getLiveSession.js,samples/README.md) |
| Get Slate | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/getSlate.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/getSlate.js,samples/README.md) |
| Get Vod Ad Tag Detail | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/getVodAdTagDetail.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/getVodAdTagDetail.js,samples/README.md) |
| Get Vod Session | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/getVodSession.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/getVodSession.js,samples/README.md) |
| Get Vod Stitch Detail | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/getVodStitchDetail.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/getVodStitchDetail.js,samples/README.md) |
| List Cdn Keys | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/listCdnKeys.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/listCdnKeys.js,samples/README.md) |
| List Live Ad Tag Details | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/listLiveAdTagDetails.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/listLiveAdTagDetails.js,samples/README.md) |
| List Slates | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/listSlates.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/listSlates.js,samples/README.md) |
| List Vod Ad Tag Details | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/listVodAdTagDetails.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/listVodAdTagDetails.js,samples/README.md) |
| List Vod Stitch Details | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/listVodStitchDetails.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/listVodStitchDetails.js,samples/README.md) |
| Update Cdn Key | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/updateCdnKey.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/updateCdnKey.js,samples/README.md) |
| Update Slate | [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/updateSlate.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/updateSlate.js,samples/README.md) |

Expand Down
180 changes: 180 additions & 0 deletions packages/google-cloud-video-stitcher/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,23 @@
* [Before you begin](#before-you-begin)
* [Samples](#samples)
* [Create Cdn Key](#create-cdn-key)
* [Create Live Session](#create-live-session)
* [Create Slate](#create-slate)
* [Create Vod Session](#create-vod-session)
* [Delete Cdn Key](#delete-cdn-key)
* [Delete Slate](#delete-slate)
* [Get Cdn Key](#get-cdn-key)
* [Get Live Ad Tag Detail](#get-live-ad-tag-detail)
* [Get Live Session](#get-live-session)
* [Get Slate](#get-slate)
* [Get Vod Ad Tag Detail](#get-vod-ad-tag-detail)
* [Get Vod Session](#get-vod-session)
* [Get Vod Stitch Detail](#get-vod-stitch-detail)
* [List Cdn Keys](#list-cdn-keys)
* [List Live Ad Tag Details](#list-live-ad-tag-details)
* [List Slates](#list-slates)
* [List Vod Ad Tag Details](#list-vod-ad-tag-details)
* [List Vod Stitch Details](#list-vod-stitch-details)
* [Update Cdn Key](#update-cdn-key)
* [Update Slate](#update-slate)

Expand Down Expand Up @@ -55,6 +65,23 @@ __Usage:__



### Create Live Session

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/createLiveSession.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/createLiveSession.js,samples/README.md)

__Usage:__


`node samples/createLiveSession.js`


-----




### Create Slate

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/createSlate.js).
Expand All @@ -72,6 +99,23 @@ __Usage:__



### Create Vod Session

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/createVodSession.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/createVodSession.js,samples/README.md)

__Usage:__


`node samples/createVodSession.js`


-----




### Delete Cdn Key

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/deleteCdnKey.js).
Expand Down Expand Up @@ -123,6 +167,40 @@ __Usage:__



### Get Live Ad Tag Detail

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/getLiveAdTagDetail.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/getLiveAdTagDetail.js,samples/README.md)

__Usage:__


`node samples/getLiveAdTagDetail.js`


-----




### Get Live Session

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/getLiveSession.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/getLiveSession.js,samples/README.md)

__Usage:__


`node samples/getLiveSession.js`


-----




### Get Slate

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/getSlate.js).
Expand All @@ -140,6 +218,57 @@ __Usage:__



### Get Vod Ad Tag Detail

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/getVodAdTagDetail.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/getVodAdTagDetail.js,samples/README.md)

__Usage:__


`node samples/getVodAdTagDetail.js`


-----




### Get Vod Session

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/getVodSession.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/getVodSession.js,samples/README.md)

__Usage:__


`node samples/getVodSession.js`


-----




### Get Vod Stitch Detail

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/getVodStitchDetail.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/getVodStitchDetail.js,samples/README.md)

__Usage:__


`node samples/getVodStitchDetail.js`


-----




### List Cdn Keys

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/listCdnKeys.js).
Expand All @@ -157,6 +286,23 @@ __Usage:__



### List Live Ad Tag Details

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/listLiveAdTagDetails.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/listLiveAdTagDetails.js,samples/README.md)

__Usage:__


`node samples/listLiveAdTagDetails.js`


-----




### List Slates

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/listSlates.js).
Expand All @@ -174,6 +320,40 @@ __Usage:__



### List Vod Ad Tag Details

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/listVodAdTagDetails.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/listVodAdTagDetails.js,samples/README.md)

__Usage:__


`node samples/listVodAdTagDetails.js`


-----




### List Vod Stitch Details

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/listVodStitchDetails.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-stitcher&page=editor&open_in_editor=samples/listVodStitchDetails.js,samples/README.md)

__Usage:__


`node samples/listVodStitchDetails.js`


-----




### Update Cdn Key

View the [source code](https://github.com/googleapis/nodejs-video-stitcher/blob/main/samples/updateCdnKey.js).
Expand Down

0 comments on commit 2478424

Please sign in to comment.