You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
synctv/internal/conf/rtmp.go

19 lines
608 B
Go

package conf
type RtmpConfig struct {
Enable bool `yaml:"enable" env:"RTMP_ENABLE"`
Port uint16 `yaml:"port" lc:"default use server port" env:"RTMP_PORT"`
CustomPublishHost string `yaml:"custom_publish_host" lc:"default use http header host" env:"RTMP_CUSTOM_PUBLISH_HOST"`
RtmpPlayer bool `yaml:"rtmp_player" hc:"can watch live streams through the RTMP protocol (without authentication, insecure)." env:"RTMP_PLAYER"`
}
func DefaultRtmpConfig() RtmpConfig {
return RtmpConfig{
Enable: true,
Port: 0,
CustomPublishHost: "",
RtmpPlayer: false,
}
}