mirror of
				https://github.com/aler9/rtsp-simple-server
				synced 2025-11-01 03:22:50 +08:00 
			
		
		
		
	update gortsplib; downgrade pion/rtp to v1
This commit is contained in:
		
							
								
								
									
										4
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								go.mod
									
									
									
									
									
								
							| @@ -4,7 +4,7 @@ go 1.17 | |||||||
|  |  | ||||||
| require ( | require ( | ||||||
| 	code.cloudfoundry.org/bytefmt v0.0.0-20211005130812-5bb3c17173e5 | 	code.cloudfoundry.org/bytefmt v0.0.0-20211005130812-5bb3c17173e5 | ||||||
| 	github.com/aler9/gortsplib v0.0.0-20220324142719-7d9c882cc95b | 	github.com/aler9/gortsplib v0.0.0-20220401091943-cec5326ccfed | ||||||
| 	github.com/asticode/go-astits v1.10.0 | 	github.com/asticode/go-astits v1.10.0 | ||||||
| 	github.com/fsnotify/fsnotify v1.4.9 | 	github.com/fsnotify/fsnotify v1.4.9 | ||||||
| 	github.com/gin-gonic/gin v1.7.2 | 	github.com/gin-gonic/gin v1.7.2 | ||||||
| @@ -12,7 +12,7 @@ require ( | |||||||
| 	github.com/grafov/m3u8 v0.11.1 | 	github.com/grafov/m3u8 v0.11.1 | ||||||
| 	github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 | 	github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 | ||||||
| 	github.com/notedit/rtmp v0.0.2 | 	github.com/notedit/rtmp v0.0.2 | ||||||
| 	github.com/pion/rtp/v2 v2.0.0-20220302185659-b3d10fc096b0 | 	github.com/pion/rtp v1.7.9 | ||||||
| 	github.com/stretchr/testify v1.7.0 | 	github.com/stretchr/testify v1.7.0 | ||||||
| 	golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad | 	golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad | ||||||
| 	gopkg.in/alecthomas/kingpin.v2 v2.2.6 | 	gopkg.in/alecthomas/kingpin.v2 v2.2.6 | ||||||
|   | |||||||
							
								
								
									
										8
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								go.sum
									
									
									
									
									
								
							| @@ -4,8 +4,8 @@ github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafo | |||||||
| github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= | github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= | ||||||
| github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d h1:UQZhZ2O0vMHr2cI+DC1Mbh0TJxzA3RcLoMsFw+aXw7E= | github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d h1:UQZhZ2O0vMHr2cI+DC1Mbh0TJxzA3RcLoMsFw+aXw7E= | ||||||
| github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= | github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= | ||||||
| github.com/aler9/gortsplib v0.0.0-20220324142719-7d9c882cc95b h1:tUbz82mIgMWTVI0pKZGHoL//c+y0VVGIMPHdYeAyvdc= | github.com/aler9/gortsplib v0.0.0-20220401091943-cec5326ccfed h1:lA/dMUwmQcBCeuFRYkPr3qnGPKgrFdGC0RZzB8tRKXw= | ||||||
| github.com/aler9/gortsplib v0.0.0-20220324142719-7d9c882cc95b/go.mod h1:4HE78w95Rqw1B2T90CHwtA4xBPPCRZ7/G8ds8ZdWcFk= | github.com/aler9/gortsplib v0.0.0-20220401091943-cec5326ccfed/go.mod h1:4mWq8mM6v8KrSQG4sEdnvM6+ZVKPPgKtf75TYR+jsKQ= | ||||||
| github.com/aler9/rtmp v0.0.0-20210403095203-3be4a5535927 h1:95mXJ5fUCYpBRdSOnLAQAdJHHKxxxJrVCiaqDi965YQ= | github.com/aler9/rtmp v0.0.0-20210403095203-3be4a5535927 h1:95mXJ5fUCYpBRdSOnLAQAdJHHKxxxJrVCiaqDi965YQ= | ||||||
| github.com/aler9/rtmp v0.0.0-20210403095203-3be4a5535927/go.mod h1:vzuE21rowz+lT1NGsWbreIvYulgBpCGnQyeTyFblUHc= | github.com/aler9/rtmp v0.0.0-20210403095203-3be4a5535927/go.mod h1:vzuE21rowz+lT1NGsWbreIvYulgBpCGnQyeTyFblUHc= | ||||||
| github.com/asticode/go-astikit v0.20.0 h1:+7N+J4E4lWx2QOkRdOf6DafWJMv6O4RRfgClwQokrH8= | github.com/asticode/go-astikit v0.20.0 h1:+7N+J4E4lWx2QOkRdOf6DafWJMv6O4RRfgClwQokrH8= | ||||||
| @@ -84,8 +84,8 @@ github.com/pion/randutil v0.1.0 h1:CFG1UdESneORglEsnimhUjf33Rwjubwj6xfiOXBa3mA= | |||||||
| github.com/pion/randutil v0.1.0/go.mod h1:XcJrSMMbbMRhASFVOlj/5hQial/Y8oH/HVo7TBZq+j8= | github.com/pion/randutil v0.1.0/go.mod h1:XcJrSMMbbMRhASFVOlj/5hQial/Y8oH/HVo7TBZq+j8= | ||||||
| github.com/pion/rtcp v1.2.9 h1:1ujStwg++IOLIEoOiIQ2s+qBuJ1VN81KW+9pMPsif+U= | github.com/pion/rtcp v1.2.9 h1:1ujStwg++IOLIEoOiIQ2s+qBuJ1VN81KW+9pMPsif+U= | ||||||
| github.com/pion/rtcp v1.2.9/go.mod h1:qVPhiCzAm4D/rxb6XzKeyZiQK69yJpbUDJSF7TgrqNo= | github.com/pion/rtcp v1.2.9/go.mod h1:qVPhiCzAm4D/rxb6XzKeyZiQK69yJpbUDJSF7TgrqNo= | ||||||
| github.com/pion/rtp/v2 v2.0.0-20220302185659-b3d10fc096b0 h1:zyOGxHutZ6IhksQSMtwf3OFXB29W5R18yFQWOQJYWjU= | github.com/pion/rtp v1.7.9 h1:17W5Mt2IM3MVfOh7yRfzXbbKXYzBZxV8eG4KKAy+0bg= | ||||||
| github.com/pion/rtp/v2 v2.0.0-20220302185659-b3d10fc096b0/go.mod h1:Vj+rrFbJCT3yxqE/VSwaOo9DQ2pMKGPxuE7hplGOlOs= | github.com/pion/rtp v1.7.9/go.mod h1:bDb5n+BFZxXx0Ea7E5qe+klMuqiBrP+w8XSjiWtCUko= | ||||||
| github.com/pion/sdp/v3 v3.0.2 h1:UNnSPVaMM+Pdu/mR9UvAyyo6zkdYbKeuOooCwZvTl/g= | github.com/pion/sdp/v3 v3.0.2 h1:UNnSPVaMM+Pdu/mR9UvAyyo6zkdYbKeuOooCwZvTl/g= | ||||||
| github.com/pion/sdp/v3 v3.0.2/go.mod h1:bNiSknmJE0HYBprTHXKPQ3+JjacTv5uap92ueJZKsRk= | github.com/pion/sdp/v3 v3.0.2/go.mod h1:bNiSknmJE0HYBprTHXKPQ3+JjacTv5uap92ueJZKsRk= | ||||||
| github.com/pkg/profile v1.4.0/go.mod h1:NWz/XGvpEW1FyYQ7fCx4dqYBLlfTcE+A9FLAkNKqjFE= | github.com/pkg/profile v1.4.0/go.mod h1:NWz/XGvpEW1FyYQ7fCx4dqYBLlfTcE+A9FLAkNKqjFE= | ||||||
|   | |||||||
| @@ -17,7 +17,7 @@ import ( | |||||||
| 	"github.com/aler9/gortsplib/pkg/ringbuffer" | 	"github.com/aler9/gortsplib/pkg/ringbuffer" | ||||||
| 	"github.com/aler9/gortsplib/pkg/rtpaac" | 	"github.com/aler9/gortsplib/pkg/rtpaac" | ||||||
| 	"github.com/aler9/gortsplib/pkg/rtph264" | 	"github.com/aler9/gortsplib/pkg/rtph264" | ||||||
| 	"github.com/pion/rtp/v2" | 	"github.com/pion/rtp" | ||||||
|  |  | ||||||
| 	"github.com/aler9/rtsp-simple-server/internal/conf" | 	"github.com/aler9/rtsp-simple-server/internal/conf" | ||||||
| 	"github.com/aler9/rtsp-simple-server/internal/hls" | 	"github.com/aler9/rtsp-simple-server/internal/hls" | ||||||
|   | |||||||
| @@ -13,7 +13,7 @@ import ( | |||||||
| 	"github.com/aler9/gortsplib/pkg/h264" | 	"github.com/aler9/gortsplib/pkg/h264" | ||||||
| 	"github.com/asticode/go-astits" | 	"github.com/asticode/go-astits" | ||||||
| 	"github.com/gin-gonic/gin" | 	"github.com/gin-gonic/gin" | ||||||
| 	"github.com/pion/rtp/v2" | 	"github.com/pion/rtp" | ||||||
| 	"github.com/stretchr/testify/require" | 	"github.com/stretchr/testify/require" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| package core | package core | ||||||
|  |  | ||||||
| import ( | import ( | ||||||
| 	"github.com/pion/rtp/v2" | 	"github.com/pion/rtp" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // reader is an entity that can read a stream. | // reader is an entity that can read a stream. | ||||||
|   | |||||||
| @@ -16,7 +16,7 @@ import ( | |||||||
| 	"github.com/aler9/gortsplib/pkg/rtpaac" | 	"github.com/aler9/gortsplib/pkg/rtpaac" | ||||||
| 	"github.com/aler9/gortsplib/pkg/rtph264" | 	"github.com/aler9/gortsplib/pkg/rtph264" | ||||||
| 	"github.com/notedit/rtmp/av" | 	"github.com/notedit/rtmp/av" | ||||||
| 	"github.com/pion/rtp/v2" | 	"github.com/pion/rtp" | ||||||
|  |  | ||||||
| 	"github.com/aler9/rtsp-simple-server/internal/conf" | 	"github.com/aler9/rtsp-simple-server/internal/conf" | ||||||
| 	"github.com/aler9/rtsp-simple-server/internal/externalcmd" | 	"github.com/aler9/rtsp-simple-server/internal/externalcmd" | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ import ( | |||||||
| 	"time" | 	"time" | ||||||
|  |  | ||||||
| 	"github.com/aler9/gortsplib" | 	"github.com/aler9/gortsplib" | ||||||
| 	"github.com/pion/rtp/v2" | 	"github.com/pion/rtp" | ||||||
| 	"github.com/stretchr/testify/require" | 	"github.com/stretchr/testify/require" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ import ( | |||||||
|  |  | ||||||
| 	"github.com/aler9/gortsplib" | 	"github.com/aler9/gortsplib" | ||||||
| 	"github.com/aler9/gortsplib/pkg/base" | 	"github.com/aler9/gortsplib/pkg/base" | ||||||
| 	"github.com/pion/rtp/v2" | 	"github.com/pion/rtp" | ||||||
|  |  | ||||||
| 	"github.com/aler9/rtsp-simple-server/internal/conf" | 	"github.com/aler9/rtsp-simple-server/internal/conf" | ||||||
| 	"github.com/aler9/rtsp-simple-server/internal/externalcmd" | 	"github.com/aler9/rtsp-simple-server/internal/externalcmd" | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ import ( | |||||||
| 	"github.com/aler9/gortsplib/pkg/base" | 	"github.com/aler9/gortsplib/pkg/base" | ||||||
| 	"github.com/aler9/gortsplib/pkg/h264" | 	"github.com/aler9/gortsplib/pkg/h264" | ||||||
| 	"github.com/aler9/gortsplib/pkg/rtph264" | 	"github.com/aler9/gortsplib/pkg/rtph264" | ||||||
| 	"github.com/pion/rtp/v2" | 	"github.com/pion/rtp" | ||||||
|  |  | ||||||
| 	"github.com/aler9/rtsp-simple-server/internal/conf" | 	"github.com/aler9/rtsp-simple-server/internal/conf" | ||||||
| 	"github.com/aler9/rtsp-simple-server/internal/logger" | 	"github.com/aler9/rtsp-simple-server/internal/logger" | ||||||
|   | |||||||
| @@ -10,7 +10,7 @@ import ( | |||||||
| 	"github.com/aler9/gortsplib/pkg/auth" | 	"github.com/aler9/gortsplib/pkg/auth" | ||||||
| 	"github.com/aler9/gortsplib/pkg/base" | 	"github.com/aler9/gortsplib/pkg/base" | ||||||
| 	"github.com/aler9/gortsplib/pkg/rtph264" | 	"github.com/aler9/gortsplib/pkg/rtph264" | ||||||
| 	"github.com/pion/rtp/v2" | 	"github.com/pion/rtp" | ||||||
| 	"github.com/stretchr/testify/require" | 	"github.com/stretchr/testify/require" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -4,7 +4,7 @@ import ( | |||||||
| 	"sync" | 	"sync" | ||||||
|  |  | ||||||
| 	"github.com/aler9/gortsplib" | 	"github.com/aler9/gortsplib" | ||||||
| 	"github.com/pion/rtp/v2" | 	"github.com/pion/rtp" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| type streamNonRTSPReadersMap struct { | type streamNonRTSPReadersMap struct { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 aler9
					aler9