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 {
|
switch c.Output {
|
||||||
case File:
|
case File:
|
||||||
case Rtp:
|
case Rtp:
|
||||||
|
case Udp:
|
||||||
case Rtmp, FfmpegRtmp:
|
case Rtmp, FfmpegRtmp:
|
||||||
if c.RtmpUrl == "" {
|
if c.RtmpUrl == "" {
|
||||||
c.Logger.Log(smartlogger.Info, pkg+"no RTMP URL: falling back to HTTP")
|
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
|
r.destination = s
|
||||||
case Http:
|
case Http:
|
||||||
r.destination = newHttpSender(r.ns, r.config.Logger.Log)
|
r.destination = newHttpSender(r.ns, r.config.Logger.Log)
|
||||||
case Rtp:
|
case Rtp, Udp:
|
||||||
s, err := newUdpSender(r.config.RtpAddress, r.config.Logger.Log)
|
s, err := newUdpSender(r.config.RtpAddress, r.config.Logger.Log)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue