Added ignoring "lost package error".
This commit is contained in:
parent
c432174dca
commit
26d94558be
@ -254,6 +254,9 @@ func rtsp(dir string, period int, link string, number int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Skip "lost packet error".
|
||||
c.OnPacketsLost = func(lost uint64) {}
|
||||
|
||||
// Set program if the client gets request.
|
||||
c.OnRequest = func(req *base.Request) {
|
||||
switch req.Method {
|
||||
@ -349,6 +352,9 @@ func rtsp(dir string, period int, link string, number int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Skip "lost packet error".
|
||||
c.OnPacketsLost = func(lost uint64) {}
|
||||
|
||||
// Set program if the client gets request.
|
||||
c.OnRequest = func(req *base.Request) {
|
||||
switch req.Method {
|
||||
@ -474,6 +480,9 @@ func rtsp(dir string, period int, link string, number int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Skip "lost packet error".
|
||||
c.OnPacketsLost = func(lost uint64) {}
|
||||
|
||||
// Set program if the client gets request.
|
||||
c.OnRequest = func(req *base.Request) {
|
||||
switch req.Method {
|
||||
@ -687,6 +696,9 @@ func rtsp(dir string, period int, link string, number int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Skip "lost packet error".
|
||||
c.OnPacketsLost = func(lost uint64) {}
|
||||
|
||||
// Set program if the client gets request.
|
||||
c.OnRequest = func(req *base.Request) {
|
||||
switch req.Method {
|
||||
@ -832,6 +844,9 @@ func rtsp(dir string, period int, link string, number int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Skip "lost packet error".
|
||||
c.OnPacketsLost = func(lost uint64) {}
|
||||
|
||||
// Set program if the client gets request.
|
||||
c.OnRequest = func(req *base.Request) {
|
||||
switch req.Method {
|
||||
@ -942,6 +957,9 @@ func rtsp(dir string, period int, link string, number int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Skip "lost packet error".
|
||||
c.OnPacketsLost = func(lost uint64) {}
|
||||
|
||||
// Set program if the client gets request.
|
||||
c.OnRequest = func(req *base.Request) {
|
||||
switch req.Method {
|
||||
@ -1030,6 +1048,9 @@ func rtsp(dir string, period int, link string, number int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Skip "lost packet error".
|
||||
c.OnPacketsLost = func(lost uint64) {}
|
||||
|
||||
// Set program if the client gets request.
|
||||
c.OnRequest = func(req *base.Request) {
|
||||
switch req.Method {
|
||||
@ -1118,6 +1139,9 @@ func rtsp(dir string, period int, link string, number int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Skip "lost packet error".
|
||||
c.OnPacketsLost = func(lost uint64) {}
|
||||
|
||||
// Set program if the client gets request.
|
||||
c.OnRequest = func(req *base.Request) {
|
||||
switch req.Method {
|
||||
@ -1208,6 +1232,9 @@ func rtsp(dir string, period int, link string, number int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Skip "lost packet error".
|
||||
c.OnPacketsLost = func(lost uint64) {}
|
||||
|
||||
// Set program if the client gets request.
|
||||
c.OnRequest = func(req *base.Request) {
|
||||
switch req.Method {
|
||||
@ -1296,6 +1323,9 @@ func rtsp(dir string, period int, link string, number int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Skip "lost packet error".
|
||||
c.OnPacketsLost = func(lost uint64) {}
|
||||
|
||||
// Set program if the client gets request.
|
||||
c.OnRequest = func(req *base.Request) {
|
||||
switch req.Method {
|
||||
@ -1393,6 +1423,9 @@ func rtsp(dir string, period int, link string, number int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Skip "lost packet error".
|
||||
c.OnPacketsLost = func(lost uint64) {}
|
||||
|
||||
// Set program if the client gets request.
|
||||
c.OnRequest = func(req *base.Request) {
|
||||
switch req.Method {
|
||||
@ -1490,6 +1523,9 @@ func rtsp(dir string, period int, link string, number int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Skip "lost packet error".
|
||||
c.OnPacketsLost = func(lost uint64) {}
|
||||
|
||||
// Set program if the client gets request.
|
||||
c.OnRequest = func(req *base.Request) {
|
||||
switch req.Method {
|
||||
|
Loading…
x
Reference in New Issue
Block a user