Renamed NativeRtmp to just Rtmp - since it is exposed to clients. FfmpegRtmp should be deprecated.

This commit is contained in:
Alan Noble 2018-06-25 10:53:26 +09:30
parent 72d7dc3991
commit 9d113cc498
3 changed files with 5 additions and 5 deletions

View File

@ -151,8 +151,8 @@ func main() {
config.Output = revid.File
case "Http":
config.Output = revid.Http
case "NativeRtmp":
config.Output = revid.NativeRtmp
case "Rtmp":
config.Output = revid.Rtmp
case "FfmpegRtmp":
config.Output = revid.FfmpegRtmp
case "":

View File

@ -80,7 +80,7 @@ const (
QuantizationOff
Yes
No
NativeRtmp
Rtmp
FfmpegRtmp
)
@ -172,7 +172,7 @@ func (c *Config) Validate(r *Revid) error {
switch c.Output {
case File:
case NativeRtmp, FfmpegRtmp:
case Rtmp, FfmpegRtmp:
if c.RtmpUrl == "" {
r.Log(Info, "No RTMP URL: falling back to HTTP")
c.Output = Http

View File

@ -158,7 +158,7 @@ func (r *Revid) reset(config Config) error {
return err
}
r.destination = s
case NativeRtmp:
case Rtmp:
s, err := newRtmpSender(config.RtmpUrl, rtmpConnectionTimout, rtmpConnectionMaxTries, r.Log)
if err != nil {
return err