Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Live Stream API Python Samples

This directory contains samples for the Live Stream API. Use this API to transcode live, linear video streams into a variety of formats. The Live Stream API benefits broadcasters, production companies, businesses, and individuals looking to transform their live video content for use across a variety of user devices. For more information, see the Live Stream API documentation.

Setup

To run the samples, you need to first follow the steps in Before you begin.

For more information on authentication, refer to the Authentication Getting Started Guide.

Install Dependencies

  1. Clone python-docs-samples repository and change directories to the sample directory you want to use.

     $ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
    
  2. Install pip and virtualenv if you do not already have them. You may want to refer to the Python Development Environment Setup Guide for Google Cloud Platform for instructions.

  3. Create a virtualenv. Samples are compatible with Python 3.6+.

     $ virtualenv env
     $ source env/bin/activate
    
  4. Install the dependencies needed to run the samples.

     $ pip install -r requirements.txt
    

Testing

Make sure to enable the Live Stream API on the test project. Set the following environment variable:

  • GOOGLE_CLOUD_PROJECT