Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { File string `yaml:"-"` RPC RPC `yaml:"rpc"` Debug bool `yaml:"debug"` Interval int `yaml:"interval"` OutPutPath string `yaml:"out_put_path"` FfmpegPath string `yaml:"ffmpeg_path"` Log Log `yaml:"log"` Feature Feature `yaml:"feature"` LiveRooms []LiveRoom `yaml:"live_rooms"` OutputTmpl string `yaml:"out_put_tmpl"` VideoSplitStrategies VideoSplitStrategies `yaml:"video_split_strategies"` Cookies map[string]string `yaml:"cookies"` OnRecordFinished OnRecordFinished `yaml:"on_record_finished"` TimeoutInUs int `yaml:"timeout_in_us"` // contains filtered or unexported fields }
Config content all config info.
func NewConfigWithBytes ¶ added in v0.7.0
func NewConfigWithFile ¶
func (Config) GetFilePath ¶ added in v0.7.0
func (*Config) GetLiveRoomByUrl ¶ added in v0.7.0
func (*Config) RefreshLiveRoomIndexCache ¶ added in v0.7.0
func (c *Config) RefreshLiveRoomIndexCache()
func (*Config) RemoveLiveRoomByUrl ¶ added in v0.7.0
type Feature ¶
type Feature struct { UseNativeFlvParser bool `yaml:"use_native_flv_parser"` RemoveSymbolOtherCharacter bool `yaml:"remove_symbol_other_character"` }
Feature info.
type LiveRoom ¶ added in v0.7.0
type LiveRoom struct { Url string `yaml:"url"` IsListening bool `yaml:"is_listening"` LiveId live.ID `yaml:"-"` Quality int `yaml:"quality"` AudioOnly bool `yaml:"audio_only"` }
func NewLiveRoomsWithStrings ¶ added in v0.7.0
func (*LiveRoom) UnmarshalYAML ¶ added in v0.7.0
allow both string and LiveRoom format in config
type OnRecordFinished ¶ added in v0.6.5
type OnRecordFinished struct { ConvertToMp4 bool `yaml:"convert_to_mp4"` DeleteFlvAfterConvert bool `yaml:"delete_flv_after_convert"` CustomCommandline string `yaml:"custom_commandline"` }
On record finished actions.
Click to show internal directories.
Click to hide internal directories.