Streaming services

Overview

The first thing you need to configure before streaming is a live stream account from a streaming service. Right now, we only support YouTube but other will come. You also have the standalone streaming option for development purpose, available by default. The configuration for a streaming service requires the following information:

  • The name of the service for the stream (for now, it can be youtube or local).
  • The address of the streaming server (usually starting with rtmp://)
  • The name of the channel.
  • The private key for the stream.

This configuration can be set in a configuration file, usually named with an .hcl extension.

Once the configuration is done, you can load it using the command: genvid-sdk load-config <myconfigfile>.hcl

You can find an example of a configuration file for youtube there: samples/streaming_services/youtube.sample.hcl

version = "1.7.0"

settings {
  encode {
    stream {
      enable  = true
      service = "youtube"
      addr    = "a.rtmp.youtube.com/live2"
      // YOU MUST CHANGE THE CHANNEL AND KEY VALUE
      channel = ""
      key     = ""
    }
  }
}