Add custom RTMP port number support (#462)

* Bump api spec version

* Add support for custom RTMP port. Closes #454
This commit is contained in:
Gabe Kangas
2020-12-17 09:56:04 -08:00
committed by GitHub
parent ef792c66a6
commit e9c7ff29cf
4 changed files with 14 additions and 3 deletions

View File

@@ -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 {
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