Twitch Setup¶
In This Section
Creating a Twitch Account¶
If you don’t already have a Twitch account, you’ll need to create one to develop with Genvid for the Twitch service.
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:
- Go to https://www.twitch.tv.
- Click your username to open the drop-down menu.
- Select Channel.
This displays your channel page. Your channel name is the part of the page URL following https://www.twitch.tv.
- 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.
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.