Twitch Streaming Service

Warning

Support for Twitch Streaming Service is experimental. The current implementation gives us limited synchronization and the precision can be ± 1 second.

Creating a Twitch Account

Because the Genvid SDK works with Twitch, you will need to create your own Twitch account if you do not have one already.

The simplest way to create a new Twitch account is to visit:

and click the Sign up button in the top right corner.

Follow these steps and you should have a Twitch account in no time.

Configuring Live Streaming

Now that your account is created, we need the address, the stream key, and the channel for your configuration to work with your Twitch account.

Address
This link explains how to create the address needed https://help.twitch.tv/customer/portal/articles/2420572#BroadcastURLsandStreamKeys For Genvid, we only need rtmp://<twitch-ingest-server>/app so without the stream key as indicated in the link.
Channel

Your Twitch channel name is normally your username. To verify your channel name:

This displays your channel page. Your channel name is the part of the page URL following https://www.twitch.tv.

Fig. 5 Twitch drop down menu

Stream key
The stream key is found in your Twitch dashboard.
  • Go to https://www.twitch.tv.
  • Click your username to open the drop-down menu.
  • Click Dashboard.
  • Click Channel under Settings on the left side of the page.
  • Click Stream Key.
  • Click Show Key.
  • Click I Understand.

Your stream key is the entire string shown under Stream Key in the dialog box.

Fig. 6 Twitch Channel Settings

Settings

Once you have all the information above, you can edit your configuration file. The result should be set to the following:

version = "1.7.0"

settings {
  encode {
    stream {
      enable  = true
      service = "twitch"
      addr    = "live-jfk.twitch.tv/app"
      // YOU MUST CHANGE THE CHANNEL AND KEY VALUE
      channel = "channelname"
      key     = "live_NNNNNNNN_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    }
  }
}

Important

Twitch Extension is partly supported for development, but requires a more complex setup and is not ready for certification. We also plan to provide full instructions along with a complete demo in an upcoming version of the SDK. In the meantime, please contact us if you want to know more.