Add support for established chat user mode. #1587 (#1681)

* Add support for established user mode. #1587

* Tweak tests

* Tweak tests

* Update test

* Fix test.
This commit is contained in:
Gabe Kangas
2022-03-06 23:26:24 -08:00
committed by GitHub
parent 123d559ba4
commit e0a75d5d54
10 changed files with 245 additions and 83 deletions

View File

@@ -1,6 +1,10 @@
package config
import "github.com/owncast/owncast/models"
import (
"time"
"github.com/owncast/owncast/models"
)
// Defaults will hold default configuration values.
type Defaults struct {
@@ -27,6 +31,8 @@ type Defaults struct {
FederationUsername string
FederationGoLiveMessage string
ChatEstablishedUserModeTimeDuration time.Duration
}
// GetDefaults will return default configuration values.
@@ -54,6 +60,8 @@ func GetDefaults() Defaults {
RTMPServerPort: 1935,
StreamKey: "abc123",
ChatEstablishedUserModeTimeDuration: time.Minute * 15,
StreamVariants: []models.StreamOutputVariant{
{
IsAudioPassthrough: true,