mirror of https://bitbucket.org/ausocean/av.git
made netsender understand flipping vars
This commit is contained in:
parent
90cb3e050c
commit
b2250064c2
15
RevidCLI.go
15
RevidCLI.go
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue