Set Up Cluster and Extension

Before You Begin

This section assumes that:

Before getting started, you also need:

Edit the Terraform Configuration

  1. Open stream.hcl from ..\samples\twitch\config.

  2. Edit the following variables:

    • Under secrets.twitch:

      TWITCH_EXT_KEY = Streaming Key (Found on your Twitch dashboard.)

      TWITCH_EXT_CHANNEL = Your Twitch Account Channel Name.

    • Under encode.stream:

      channel = Your Twitch Account Channel Name.

      key = Streaming Key (Found on your Twitch dashboard.)

    • Under config:

      ssl = false

Start the Tutorial Sample

  1. Go to the /samples/twitch directory.

  2. Copy the Genvid files used to build the project.

    py tutorial.py prepare
    
  3. Build the project and the website.

    py tutorial.py build
    
  4. Load the tutorial.

    py tutorial.py load
    
  5. Launch the Cluster UI.

    genvid-sdk monitor
    
  6. Click the Jobs tab.

  7. Click START ALL.

    Cluster UI Jobs Page

Create a Twitch Extension

Note

This information is dependent upon systems maintained by Twitch. We do our best to keep it updated, but you should see the Twitch developer documentation for the latest information.

  1. Open your Twitch Developer Account.

  2. Click Your Dashboard.

  3. Click Create Extension.

  4. Choose a name for your extension. (It can be anything.)

  5. Click Continue.

  6. Under Create an Extension Version select Panel and Video - Fullscreen.

  7. Enter something in Summary.

  8. Click Create Extension Version.

The Genvid SDK uses the Twitch Extension Configuration Service, so you need to activate it.

  1. Select the Capabilities tab.

  2. Under Select how you will configure your extension select Extension Configuration Service.

  3. Click Save Changes.

Associate the Twitch Developer Rig with Your Extension

  1. Open your Twitch Developer Rig.

  2. Log in using your Twitch Account Credentials, if necessary.

  3. Click Add Project.

    Note: If this is the first project you’ve created, click Create Your First Project and skip the next step.

  4. Click Create Project.

  5. In the first drop-down menu under Select Existing or Create New Extension, select the Twitch Extension you just created.

    Note: If you don’t see it, click the Refresh button.

  6. Click Next.

  7. Select the folder for your Twitch Extension project.

    Note: In this case, it is samples\twitch. In general, it has to be the parent of the folder where your files are served.

  8. Select None - I’ll use my own code as your template.

  9. Click Next.

  10. Click Get Started.

    This creates a JSON file in your project folder with all information related to the dev rig and project.

Now your Twitch Developer Rig is ready to stream the Tutorial Sample.