ace/lib/webrtcconnection/options.go

28 lines
555 B
Go
Raw Normal View History

2022-09-26 03:04:07 +00:00
package webrtcconnection
type Options struct {
STUNServers []string `yaml:"stun_servers"`
Video struct {
Height int `yaml:"height"`
Width int `yaml:"width"`
BPS int `yaml:"bps"`
} `yaml:"video"`
Audio struct {
BPS int `yaml:"bps"`
} `yaml:"audio"`
}
func ExampleOptions() *Options {
options := &Options{
STUNServers: []string{
"stun:stun.l.google.com:19302",
"stun:wetofu.me:3478",
},
}
options.Video.BPS = 500_000
options.Video.Height = 768
options.Video.Width = 1024
options.Audio.BPS = 96_000
return options
}