Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Can we Playback Live Stream api videos on GCP

When we stream video through GCP LIVE Stream API can we archive those Live videos for watching later? & if we can how to do it?

Solved Solved
0 3 1,687
1 ACCEPTED SOLUTION

Hi Prajmane,

Here is the link documentation to follow for triggering a Cloud Function with Cloud Pub/Sub. I hope this helps you as you mentioned in your last reply.

Additionally, here is a link of Pub/Sub triggers Google documentation that might help you too.

View solution in original post

3 REPLIES 3

As stated in the documentation, as soon as the channel is stopped, all files and folders created by the Live Stream API are removed from the bucket.

Therefore, I advise using a Pub/Sub notification when the input stream is stopped, followed by shutting the channel, in order to save those files. You could use this documentation to configure the Pub/Sub notification.

Then, you could copy your files to another bucket using a Cloud Function similar to this example. This Cloud function should be triggered by the previously configured Pub/Sub notification, as shown here.

Once the files have been copied, you can finally close the channel at the conclusion of the Cloud function.

Thanks for Reply,

I've one doubt for Pub/Sub notification of input stream & Channel. How to configure it?

you have provided one link but it was related to Video Intelligence API. I'm just using livestream API. or alternatively can i use Pub/Sub notifications for Cloud Storage

Hi Prajmane,

Here is the link documentation to follow for triggering a Cloud Function with Cloud Pub/Sub. I hope this helps you as you mentioned in your last reply.

Additionally, here is a link of Pub/Sub triggers Google documentation that might help you too.