mirror of https://bitbucket.org/ausocean/av.git
rtp: assert that udp with no packetization works
This commit is contained in:
parent
efe2333683
commit
92294aed70
|
@ -186,6 +186,7 @@ func (c *Config) Validate(r *Revid) error {
|
|||
switch c.Output {
|
||||
case File:
|
||||
case Rtp:
|
||||
case Udp:
|
||||
case Rtmp, FfmpegRtmp:
|
||||
if c.RtmpUrl == "" {
|
||||
c.Logger.Log(smartlogger.Info, pkg+"no RTMP URL: falling back to HTTP")
|
||||
|
|
|
@ -228,7 +228,7 @@ func (r *Revid) reset(config Config) error {
|
|||
r.destination = s
|
||||
case Http:
|
||||
r.destination = newHttpSender(r.ns, r.config.Logger.Log)
|
||||
case Rtp:
|
||||
case Rtp, Udp:
|
||||
s, err := newUdpSender(r.config.RtpAddress, r.config.Logger.Log)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue