|
|
|
@ -26,6 +26,7 @@ type config struct {
@@ -26,6 +26,7 @@ type config struct {
|
|
|
|
|
VersionNumber string `yaml:"-"` |
|
|
|
|
VideoSettings videoSettings `yaml:"videoSettings"` |
|
|
|
|
WebServerPort int `yaml:"webServerPort"` |
|
|
|
|
RTMPServerPort int `yaml:"rtmpServerPort"` |
|
|
|
|
DisableUpgradeChecks bool `yaml:"disableUpgradeChecks"` |
|
|
|
|
YP YP `yaml:"yp"` |
|
|
|
|
} |
|
|
|
@ -174,6 +175,14 @@ func (c *config) GetPublicWebServerPort() int {
@@ -174,6 +175,14 @@ func (c *config) GetPublicWebServerPort() int {
|
|
|
|
|
return _default.WebServerPort |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (c *config) GetRTMPServerPort() int { |
|
|
|
|
if c.RTMPServerPort != 0 { |
|
|
|
|
return c.RTMPServerPort |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return _default.RTMPServerPort |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (c *config) GetMaxNumberOfReferencedSegmentsInPlaylist() int { |
|
|
|
|
if c.Files.MaxNumberInPlaylist > 0 { |
|
|
|
|
return c.Files.MaxNumberInPlaylist |
|
|
|
|