diff --git a/README.md b/README.md index 533396c..855ea55 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ logfile: sources: rtmp: enabled: true # must be true - streamkey: live # defaults to "live" + streamKey: live # defaults to "live" destinations: - name: YouTube # Destination name, used only for display url: rtmp://rtmp.youtube.com/12345 # Destination URL with stream key diff --git a/internal/config/config.go b/internal/config/config.go index c1a3daf..84d51a0 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -25,7 +25,7 @@ func (l LogFile) GetPath() string { // RTMPSource holds the configuration for the RTMP source. type RTMPSource struct { Enabled bool `yaml:"enabled"` - StreamKey string `yaml:"streamkey,omitempty"` + StreamKey string `yaml:"streamKey,omitempty"` } // Sources holds the configuration for the sources. diff --git a/internal/config/testdata/complete.yml b/internal/config/testdata/complete.yml index bb95a11..4be07e0 100644 --- a/internal/config/testdata/complete.yml +++ b/internal/config/testdata/complete.yml @@ -5,7 +5,7 @@ logfile: sources: rtmp: enabled: true - streamkey: s3cr3t + streamKey: s3cr3t destinations: - name: my stream url: rtmp://rtmp.example.com:1935/live