|
|
@ -23,7 +23,7 @@ type config struct { |
|
|
|
VersionInfo string `yaml:"-"` // For storing the version/build number
|
|
|
|
VersionInfo string `yaml:"-"` // For storing the version/build number
|
|
|
|
VideoSettings videoSettings `yaml:"videoSettings"` |
|
|
|
VideoSettings videoSettings `yaml:"videoSettings"` |
|
|
|
WebServerPort int `yaml:"webServerPort"` |
|
|
|
WebServerPort int `yaml:"webServerPort"` |
|
|
|
YP yp `yaml:"yp"` |
|
|
|
YP YP `yaml:"yp"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// InstanceDetails defines the user-visible information about this particular instance.
|
|
|
|
// InstanceDetails defines the user-visible information about this particular instance.
|
|
|
@ -57,11 +57,11 @@ type videoSettings struct { |
|
|
|
HighestQualityStreamIndex int `yaml:"-"` |
|
|
|
HighestQualityStreamIndex int `yaml:"-"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Registration to the central Owncast YP (Yellow pages) service operating as a directory.
|
|
|
|
// YP allows registration to the central Owncast YP (Yellow pages) service operating as a directory.
|
|
|
|
type yp struct { |
|
|
|
type YP struct { |
|
|
|
Enabled bool `yaml:"enabled"` |
|
|
|
Enabled bool `yaml:"enabled" json:"enabled"` |
|
|
|
InstanceURL string `yaml:"instanceURL"` // The public URL the directory should link to
|
|
|
|
InstanceURL string `yaml:"instanceURL" json:"instanceUrl"` // The public URL the directory should link to
|
|
|
|
YPServiceURL string `yaml:"ypServiceURL"` // The base URL to the YP API to register with (optional)
|
|
|
|
YPServiceURL string `yaml:"ypServiceURL" json:"-"` // The base URL to the YP API to register with (optional)
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// StreamQuality defines the specifics of a single HLS stream variant.
|
|
|
|
// StreamQuality defines the specifics of a single HLS stream variant.
|
|
|
|