made netsender understand flipping vars

This commit is contained in:
Saxon1 2018-05-05 15:22:34 +09:30
parent 90cb3e050c
commit b2250064c2
1 changed files with 14 additions and 1 deletions

View File

@ -334,7 +334,6 @@ func updateRevid() {
config.FramesPerClip = value
}
case "RtmpUrl":
fmt.Println("@@@@@@ Updating the rtmp url!")
config.RtmpUrl = value
case "Bitrate":
asInt,err := strconv.Atoi(value)
@ -377,6 +376,20 @@ func updateRevid() {
if asInt > 0 && err == nil {
config.IntraRefreshPeriod = value
}
case "HorizontalFlip":
switch value {
case "Yes":
config.HorizontalFlip = revid.Yes
case "No":
config.HorizontalFlip = revid.No
}
case "VerticalFlip":
switch value {
case "Yes":
config.VerticalFlip = revid.Yes
case "No":
config.VerticalFlip = revid.No
}
}
}