Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RPC RPC `yaml:"rpc"` Debug bool `yaml:"debug"` Interval int `yaml:"interval"` OutPutPath string `yaml:"out_put_path"` Feature Feature `yaml:"feature"` LiveRooms []string `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"` // contains filtered or unexported fields }
Config content all config info.
func NewConfigWithFile ¶
type Feature ¶
type Feature struct {
UseNativeFlvParser bool `yaml:"use_native_flv_parser"`
}
Feature info.
type OnRecordFinished ¶ added in v0.6.5
type OnRecordFinished struct { ConvertToMp4 bool `yaml:"convert_to_mp4"` DeleteFlvAfterConvert bool `yaml:"delete_flv_after_convert"` }
On record finished actions.
type VideoSplitStrategies ¶
type VideoSplitStrategies struct { OnRoomNameChanged bool `yaml:"on_room_name_changed"` MaxDuration time.Duration `yaml:"max_duration"` }
VideoSplitStrategies info.
Click to show internal directories.
Click to hide internal directories.