mirror of https://bitbucket.org/ausocean/av.git
Renamed NativeRtmp to just Rtmp - since it is exposed to clients. FfmpegRtmp should be deprecated.
This commit is contained in:
parent
72d7dc3991
commit
9d113cc498
|
@ -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 "":
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue