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"` TsDisguisedAsPng bool `yaml:"ts_disguised_as_png" hc:"disguise the .ts file as a .png file" env:"RTMP_TS_DISGUISED_AS_PNG"` } func DefaultRtmpConfig() RtmpConfig { return RtmpConfig{ Enable: true, Port: 0, CustomPublishHost: "", RtmpPlayer: false, TsDisguisedAsPng: true, } }