diff --git a/.golangci.yml b/.golangci.yml index b9fd5c65..593d6b20 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -52,11 +52,11 @@ linters-settings: - (github.com/datarhei/gosrt.Conn).Close - (github.com/datarhei/gosrt.Conn).SetReadDeadline - (github.com/datarhei/gosrt.Conn).SetWriteDeadline - - (*github.com/bluenviron/gortsplib/v3.Client).Close - - (*github.com/bluenviron/gortsplib/v3.Server).Close - - (*github.com/bluenviron/gortsplib/v3.ServerSession).Close - - (*github.com/bluenviron/gortsplib/v3.ServerStream).Close - - (*github.com/bluenviron/gortsplib/v3.ServerConn).Close + - (*github.com/bluenviron/gortsplib/v4.Client).Close + - (*github.com/bluenviron/gortsplib/v4.Server).Close + - (*github.com/bluenviron/gortsplib/v4.ServerSession).Close + - (*github.com/bluenviron/gortsplib/v4.ServerStream).Close + - (*github.com/bluenviron/gortsplib/v4.ServerConn).Close govet: enable-all: true diff --git a/README.md b/README.md index 188afe89..8be6bea2 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Lint](https://github.com/bluenviron/gortsplib/workflows/lint/badge.svg)](https://github.com/bluenviron/gortsplib/actions?query=workflow:lint) [![Go Report Card](https://goreportcard.com/badge/github.com/bluenviron/gortsplib)](https://goreportcard.com/report/github.com/bluenviron/gortsplib) [![CodeCov](https://codecov.io/gh/bluenviron/gortsplib/branch/main/graph/badge.svg)](https://app.codecov.io/gh/bluenviron/gortsplib/branch/main) -[![PkgGoDev](https://pkg.go.dev/badge/github.com/bluenviron/gortsplib/v3)](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3#pkg-index) +[![PkgGoDev](https://pkg.go.dev/badge/github.com/bluenviron/gortsplib/v4)](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4#pkg-index) RTSP 1.0 client and server library for the Go programming language, written for [MediaMTX](https://github.com/bluenviron/mediamtx). @@ -92,7 +92,7 @@ Features: ## API Documentation -https://pkg.go.dev/github.com/bluenviron/gortsplib/v3#pkg-index +https://pkg.go.dev/github.com/bluenviron/gortsplib/v4#pkg-index ## RTP Payload Formats @@ -102,35 +102,35 @@ In RTSP, media streams are routed between server and clients by using RTP packet |format / codec|variant|documentation|encoder and decoder available| |--------------|-------|-------------|-----------------------------| -|AV1||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#AV1)|:heavy_check_mark:| -|VP9||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#VP9)|:heavy_check_mark:| -|VP8||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#VP8)|:heavy_check_mark:| -|H265||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#H265)|:heavy_check_mark:| -|H264||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#H264)|:heavy_check_mark:| -|MPEG-4 Video (H263, Xvid)||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#MPEG4VideoES)|:heavy_check_mark:| -|MPEG-1/2 Video||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#MPEG1Video)|| -|M-JPEG||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#MJPEG)|:heavy_check_mark:| +|AV1||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#AV1)|:heavy_check_mark:| +|VP9||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#VP9)|:heavy_check_mark:| +|VP8||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#VP8)|:heavy_check_mark:| +|H265||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#H265)|:heavy_check_mark:| +|H264||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#H264)|:heavy_check_mark:| +|MPEG-4 Video (H263, Xvid)||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#MPEG4VideoES)|:heavy_check_mark:| +|MPEG-1/2 Video||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#MPEG1Video)|| +|M-JPEG||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#MJPEG)|:heavy_check_mark:| ### Audio |format / codec|variant|documentation|encoder and decoder available| |--------------|-------|-------------|-----------------------------| -|Opus||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#Opus)|:heavy_check_mark:| -|Vorbis||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#Vorbis)|| -|MPEG-4 Audio (AAC)|Generic (RFC3640)|[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#MPEG4AudioGeneric)|:heavy_check_mark:| -|MPEG-4 Audio (AAC)|LATM (RFC6416)|[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#MPEG4AudioLATM)|:heavy_check_mark:| -|MPEG-1/2 Audio (MP3)||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#MPEG1Audio)|:heavy_check_mark:| -|Speex||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#Speex)|| -|G726||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#G726)|| -|G722||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#G722)|:heavy_check_mark:| -|G711 (PCMA, PCMU)||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#G711)|:heavy_check_mark:| -|LPCM||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#LPCM)|:heavy_check_mark:| +|Opus||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#Opus)|:heavy_check_mark:| +|Vorbis||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#Vorbis)|| +|MPEG-4 Audio (AAC)|Generic (RFC3640)|[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#MPEG4AudioGeneric)|:heavy_check_mark:| +|MPEG-4 Audio (AAC)|LATM (RFC6416)|[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#MPEG4AudioLATM)|:heavy_check_mark:| +|MPEG-1/2 Audio (MP3)||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#MPEG1Audio)|:heavy_check_mark:| +|Speex||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#Speex)|| +|G726||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#G726)|| +|G722||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#G722)|:heavy_check_mark:| +|G711 (PCMA, PCMU)||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#G711)|:heavy_check_mark:| +|LPCM||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#LPCM)|:heavy_check_mark:| ### Mixed |format / codec|variant|documentation|encoder and decoder available| |--------------|-------|-------------|-----------------------------| -|MPEG-TS||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#MPEGTS)|| +|MPEG-TS||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#MPEGTS)|| ## Standards diff --git a/async_processor.go b/async_processor.go index 1bab2a29..5f1fc271 100644 --- a/async_processor.go +++ b/async_processor.go @@ -1,7 +1,7 @@ package gortsplib import ( - "github.com/bluenviron/gortsplib/v3/pkg/ringbuffer" + "github.com/bluenviron/gortsplib/v4/pkg/ringbuffer" ) // this struct contains a queue that allows to detach the routine that is reading a stream diff --git a/client.go b/client.go index 4349846f..15378853 100644 --- a/client.go +++ b/client.go @@ -19,16 +19,16 @@ import ( "github.com/pion/rtcp" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/auth" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/bytecounter" - "github.com/bluenviron/gortsplib/v3/pkg/conn" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/headers" - "github.com/bluenviron/gortsplib/v3/pkg/liberrors" - "github.com/bluenviron/gortsplib/v3/pkg/media" - "github.com/bluenviron/gortsplib/v3/pkg/sdp" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/auth" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/bytecounter" + "github.com/bluenviron/gortsplib/v4/pkg/conn" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/liberrors" + "github.com/bluenviron/gortsplib/v4/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/sdp" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) // convert an URL into an address, in particular: diff --git a/client_format.go b/client_format.go index fabd8f5c..e567baf8 100644 --- a/client_format.go +++ b/client_format.go @@ -7,11 +7,11 @@ import ( "github.com/pion/rtcp" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/rtcpreceiver" - "github.com/bluenviron/gortsplib/v3/pkg/rtcpsender" - "github.com/bluenviron/gortsplib/v3/pkg/rtplossdetector" - "github.com/bluenviron/gortsplib/v3/pkg/rtpreorderer" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/rtcpreceiver" + "github.com/bluenviron/gortsplib/v4/pkg/rtcpsender" + "github.com/bluenviron/gortsplib/v4/pkg/rtplossdetector" + "github.com/bluenviron/gortsplib/v4/pkg/rtpreorderer" ) type clientFormat struct { diff --git a/client_media.go b/client_media.go index 2e4cc06e..9f386189 100644 --- a/client_media.go +++ b/client_media.go @@ -8,8 +8,8 @@ import ( "github.com/pion/rtcp" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/media" ) type clientMedia struct { diff --git a/client_play_test.go b/client_play_test.go index d95a92b5..94f5a9a7 100644 --- a/client_play_test.go +++ b/client_play_test.go @@ -15,13 +15,13 @@ import ( "github.com/stretchr/testify/require" "golang.org/x/net/ipv4" - "github.com/bluenviron/gortsplib/v3/pkg/auth" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/conn" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/headers" - "github.com/bluenviron/gortsplib/v3/pkg/media" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/auth" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/conn" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" ) diff --git a/client_reader.go b/client_reader.go index 77590371..e11965d1 100644 --- a/client_reader.go +++ b/client_reader.go @@ -3,7 +3,7 @@ package gortsplib import ( "time" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) type clientReader struct { diff --git a/client_record_test.go b/client_record_test.go index d7af7d4b..e4668b02 100644 --- a/client_record_test.go +++ b/client_record_test.go @@ -12,13 +12,13 @@ import ( "github.com/pion/rtp" "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/conn" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/headers" - "github.com/bluenviron/gortsplib/v3/pkg/media" - "github.com/bluenviron/gortsplib/v3/pkg/sdp" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/conn" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/sdp" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) var testH264Media = &media.Media{ diff --git a/client_test.go b/client_test.go index 7553ef89..14f802da 100644 --- a/client_test.go +++ b/client_test.go @@ -8,11 +8,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/auth" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/conn" - "github.com/bluenviron/gortsplib/v3/pkg/media" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/auth" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/conn" + "github.com/bluenviron/gortsplib/v4/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) func mustParseURL(s string) *url.URL { diff --git a/examples/client-publish-format-g711/main.go b/examples/client-publish-format-g711/main.go index 93faae4d..52b61a79 100644 --- a/examples/client-publish-format-g711/main.go +++ b/examples/client-publish-format-g711/main.go @@ -4,9 +4,9 @@ import ( "log" "net" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" "github.com/pion/rtp" ) diff --git a/examples/client-publish-format-g722/main.go b/examples/client-publish-format-g722/main.go index e25e0782..0de82422 100644 --- a/examples/client-publish-format-g722/main.go +++ b/examples/client-publish-format-g722/main.go @@ -4,9 +4,9 @@ import ( "log" "net" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" "github.com/pion/rtp" ) diff --git a/examples/client-publish-format-h264/main.go b/examples/client-publish-format-h264/main.go index 1d41c5ce..36bb4972 100644 --- a/examples/client-publish-format-h264/main.go +++ b/examples/client-publish-format-h264/main.go @@ -4,9 +4,9 @@ import ( "log" "net" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" "github.com/pion/rtp" ) diff --git a/examples/client-publish-format-h265/main.go b/examples/client-publish-format-h265/main.go index 9c399ef7..6dae4239 100644 --- a/examples/client-publish-format-h265/main.go +++ b/examples/client-publish-format-h265/main.go @@ -4,9 +4,9 @@ import ( "log" "net" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" "github.com/pion/rtp" ) diff --git a/examples/client-publish-format-lpcm/main.go b/examples/client-publish-format-lpcm/main.go index c1f1245e..b04c311a 100644 --- a/examples/client-publish-format-lpcm/main.go +++ b/examples/client-publish-format-lpcm/main.go @@ -4,9 +4,9 @@ import ( "log" "net" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" "github.com/pion/rtp" ) diff --git a/examples/client-publish-format-mjpeg/main.go b/examples/client-publish-format-mjpeg/main.go index 73ad3c44..76b4ec73 100644 --- a/examples/client-publish-format-mjpeg/main.go +++ b/examples/client-publish-format-mjpeg/main.go @@ -4,9 +4,9 @@ import ( "log" "net" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" "github.com/pion/rtp" ) diff --git a/examples/client-publish-format-mpeg4audio/main.go b/examples/client-publish-format-mpeg4audio/main.go index 994300e6..3251e616 100644 --- a/examples/client-publish-format-mpeg4audio/main.go +++ b/examples/client-publish-format-mpeg4audio/main.go @@ -4,9 +4,9 @@ import ( "log" "net" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" "github.com/pion/rtp" ) diff --git a/examples/client-publish-format-opus/main.go b/examples/client-publish-format-opus/main.go index a1d0c139..96cb9f2d 100644 --- a/examples/client-publish-format-opus/main.go +++ b/examples/client-publish-format-opus/main.go @@ -4,9 +4,9 @@ import ( "log" "net" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" "github.com/pion/rtp" ) diff --git a/examples/client-publish-format-vp8/main.go b/examples/client-publish-format-vp8/main.go index e20a73c0..7af3b102 100644 --- a/examples/client-publish-format-vp8/main.go +++ b/examples/client-publish-format-vp8/main.go @@ -4,9 +4,9 @@ import ( "log" "net" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" "github.com/pion/rtp" ) diff --git a/examples/client-publish-format-vp9/main.go b/examples/client-publish-format-vp9/main.go index f064930a..6e281d64 100644 --- a/examples/client-publish-format-vp9/main.go +++ b/examples/client-publish-format-vp9/main.go @@ -4,9 +4,9 @@ import ( "log" "net" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" "github.com/pion/rtp" ) diff --git a/examples/client-publish-options/main.go b/examples/client-publish-options/main.go index f5e2636a..9aabf2d3 100644 --- a/examples/client-publish-options/main.go +++ b/examples/client-publish-options/main.go @@ -5,9 +5,9 @@ import ( "net" "time" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" "github.com/pion/rtp" ) diff --git a/examples/client-publish-pause/main.go b/examples/client-publish-pause/main.go index d8ca5481..75a148ce 100644 --- a/examples/client-publish-pause/main.go +++ b/examples/client-publish-pause/main.go @@ -5,9 +5,9 @@ import ( "net" "time" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" "github.com/pion/rtp" ) diff --git a/examples/client-query/main.go b/examples/client-query/main.go index 3e09c318..a66b0668 100644 --- a/examples/client-query/main.go +++ b/examples/client-query/main.go @@ -3,8 +3,8 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) // This example shows how to diff --git a/examples/client-read-format-g711/main.go b/examples/client-read-format-g711/main.go index cf5c8ead..03313d69 100644 --- a/examples/client-read-format-g711/main.go +++ b/examples/client-read-format-g711/main.go @@ -3,9 +3,9 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/client-read-format-g722/main.go b/examples/client-read-format-g722/main.go index e60a27d7..d7d22d67 100644 --- a/examples/client-read-format-g722/main.go +++ b/examples/client-read-format-g722/main.go @@ -3,9 +3,9 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/client-read-format-h264-convert-to-jpeg/main.go b/examples/client-read-format-h264-convert-to-jpeg/main.go index abfb7582..07727f19 100644 --- a/examples/client-read-format-h264-convert-to-jpeg/main.go +++ b/examples/client-read-format-h264-convert-to-jpeg/main.go @@ -8,10 +8,10 @@ import ( "strconv" "time" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtph264" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtph264" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/client-read-format-h264-save-to-disk/main.go b/examples/client-read-format-h264-save-to-disk/main.go index 90b89023..4512ff83 100644 --- a/examples/client-read-format-h264-save-to-disk/main.go +++ b/examples/client-read-format-h264-save-to-disk/main.go @@ -3,10 +3,10 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtph264" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtph264" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/client-read-format-h264/main.go b/examples/client-read-format-h264/main.go index e5a622f4..3238408b 100644 --- a/examples/client-read-format-h264/main.go +++ b/examples/client-read-format-h264/main.go @@ -3,10 +3,10 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtph264" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtph264" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/client-read-format-h265/main.go b/examples/client-read-format-h265/main.go index ecbe0089..43aef80d 100644 --- a/examples/client-read-format-h265/main.go +++ b/examples/client-read-format-h265/main.go @@ -3,10 +3,10 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtph265" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtph265" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/client-read-format-lpcm/main.go b/examples/client-read-format-lpcm/main.go index 8fc2f31f..6bf6d3fb 100644 --- a/examples/client-read-format-lpcm/main.go +++ b/examples/client-read-format-lpcm/main.go @@ -3,9 +3,9 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/client-read-format-mjpeg/main.go b/examples/client-read-format-mjpeg/main.go index 1b560b7a..615dd703 100644 --- a/examples/client-read-format-mjpeg/main.go +++ b/examples/client-read-format-mjpeg/main.go @@ -5,10 +5,10 @@ import ( "image/jpeg" "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmjpeg" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmjpeg" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/client-read-format-mpeg4audio-save-to-disk/main.go b/examples/client-read-format-mpeg4audio-save-to-disk/main.go index 79fd9895..427fb401 100644 --- a/examples/client-read-format-mpeg4audio-save-to-disk/main.go +++ b/examples/client-read-format-mpeg4audio-save-to-disk/main.go @@ -3,9 +3,9 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/client-read-format-mpeg4audio/main.go b/examples/client-read-format-mpeg4audio/main.go index c529e450..671f34ca 100644 --- a/examples/client-read-format-mpeg4audio/main.go +++ b/examples/client-read-format-mpeg4audio/main.go @@ -3,9 +3,9 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/client-read-format-opus/main.go b/examples/client-read-format-opus/main.go index 58c826cc..83715cdc 100644 --- a/examples/client-read-format-opus/main.go +++ b/examples/client-read-format-opus/main.go @@ -3,9 +3,9 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/client-read-format-vp8/main.go b/examples/client-read-format-vp8/main.go index 055f88a4..ff279e69 100644 --- a/examples/client-read-format-vp8/main.go +++ b/examples/client-read-format-vp8/main.go @@ -3,10 +3,10 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpvp8" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpvp8" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/client-read-format-vp9/main.go b/examples/client-read-format-vp9/main.go index 318fc619..712de048 100644 --- a/examples/client-read-format-vp9/main.go +++ b/examples/client-read-format-vp9/main.go @@ -3,10 +3,10 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpvp9" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpvp9" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/client-read-options/main.go b/examples/client-read-options/main.go index 9b3a6690..48263e66 100644 --- a/examples/client-read-options/main.go +++ b/examples/client-read-options/main.go @@ -4,10 +4,10 @@ import ( "log" "time" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtcp" "github.com/pion/rtp" ) diff --git a/examples/client-read-pause/main.go b/examples/client-read-pause/main.go index ba6cdd32..083bd1fb 100644 --- a/examples/client-read-pause/main.go +++ b/examples/client-read-pause/main.go @@ -4,10 +4,10 @@ import ( "log" "time" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtcp" "github.com/pion/rtp" ) diff --git a/examples/client-read-republish/main.go b/examples/client-read-republish/main.go index 55707432..41f0bdb4 100644 --- a/examples/client-read-republish/main.go +++ b/examples/client-read-republish/main.go @@ -3,10 +3,10 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/client-read/main.go b/examples/client-read/main.go index 172bd914..f151332f 100644 --- a/examples/client-read/main.go +++ b/examples/client-read/main.go @@ -3,10 +3,10 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtcp" "github.com/pion/rtp" ) diff --git a/examples/proxy/client.go b/examples/proxy/client.go index 8a177277..de65f3f7 100644 --- a/examples/proxy/client.go +++ b/examples/proxy/client.go @@ -5,10 +5,10 @@ import ( "sync" "time" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/url" "github.com/pion/rtp" ) diff --git a/examples/proxy/server.go b/examples/proxy/server.go index 753ccd83..c439f8c8 100644 --- a/examples/proxy/server.go +++ b/examples/proxy/server.go @@ -3,8 +3,8 @@ package main import ( "log" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) type server struct { diff --git a/examples/server-h264-save-to-disk/main.go b/examples/server-h264-save-to-disk/main.go index c9b21c8d..d5d761a4 100644 --- a/examples/server-h264-save-to-disk/main.go +++ b/examples/server-h264-save-to-disk/main.go @@ -7,11 +7,11 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtph264" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtph264" + "github.com/bluenviron/gortsplib/v4/pkg/media" ) // This example shows how to diff --git a/examples/server-tls/main.go b/examples/server-tls/main.go index d5387f89..e3e01813 100644 --- a/examples/server-tls/main.go +++ b/examples/server-tls/main.go @@ -7,10 +7,10 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" ) // This example shows how to diff --git a/examples/server/main.go b/examples/server/main.go index a17ed392..57319ce4 100644 --- a/examples/server/main.go +++ b/examples/server/main.go @@ -6,10 +6,10 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" ) // This example shows how to diff --git a/go.mod b/go.mod index cec4237a..162918aa 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/bluenviron/gortsplib/v3 +module github.com/bluenviron/gortsplib/v4 go 1.18 diff --git a/internal/highleveltests/server_test.go b/internal/highleveltests/server_test.go index af497901..33fdbff7 100644 --- a/internal/highleveltests/server_test.go +++ b/internal/highleveltests/server_test.go @@ -17,10 +17,10 @@ import ( "github.com/pion/rtp" "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/media" ) var serverCert = []byte(`-----BEGIN CERTIFICATE----- diff --git a/pkg/auth/auth_test.go b/pkg/auth/auth_test.go index a8b4e2a9..0275c8e2 100644 --- a/pkg/auth/auth_test.go +++ b/pkg/auth/auth_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/headers" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) func mustParseURL(s string) *url.URL { diff --git a/pkg/auth/sender.go b/pkg/auth/sender.go index 1efcd7e7..e5d95004 100644 --- a/pkg/auth/sender.go +++ b/pkg/auth/sender.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/headers" ) func findHeader(v base.HeaderValue, prefix string) string { diff --git a/pkg/auth/sender_test.go b/pkg/auth/sender_test.go index c867e760..b0506877 100644 --- a/pkg/auth/sender_test.go +++ b/pkg/auth/sender_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) func TestSenderErrors(t *testing.T) { diff --git a/pkg/auth/validate.go b/pkg/auth/validate.go index 317d2e45..e76aa314 100644 --- a/pkg/auth/validate.go +++ b/pkg/auth/validate.go @@ -5,9 +5,9 @@ import ( "encoding/hex" "fmt" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/headers" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) // GenerateNonce2 generates a nonce that can be used in Validate(). diff --git a/pkg/auth/validate_test.go b/pkg/auth/validate_test.go index b8003665..2abb255e 100644 --- a/pkg/auth/validate_test.go +++ b/pkg/auth/validate_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) func TestValidateErrors(t *testing.T) { diff --git a/pkg/auth/validator.go b/pkg/auth/validator.go index ce7deef3..a1ea7846 100644 --- a/pkg/auth/validator.go +++ b/pkg/auth/validator.go @@ -8,9 +8,9 @@ import ( "fmt" "strings" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/headers" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) func md5Hex(in string) string { diff --git a/pkg/auth/validator_test.go b/pkg/auth/validator_test.go index 0b5bad1f..f43537b0 100644 --- a/pkg/auth/validator_test.go +++ b/pkg/auth/validator_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) func TestValidatorErrors(t *testing.T) { diff --git a/pkg/base/request.go b/pkg/base/request.go index 74f14520..d3104e7e 100644 --- a/pkg/base/request.go +++ b/pkg/base/request.go @@ -6,7 +6,7 @@ import ( "fmt" "strconv" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) const ( diff --git a/pkg/base/request_test.go b/pkg/base/request_test.go index 57a43346..c09661c1 100644 --- a/pkg/base/request_test.go +++ b/pkg/base/request_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) func mustParseURL(s string) *url.URL { diff --git a/pkg/conn/conn.go b/pkg/conn/conn.go index 9f22851f..66a63206 100644 --- a/pkg/conn/conn.go +++ b/pkg/conn/conn.go @@ -5,7 +5,7 @@ import ( "bufio" "io" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) const ( diff --git a/pkg/conn/conn_test.go b/pkg/conn/conn_test.go index c8326380..37be5f9e 100644 --- a/pkg/conn/conn_test.go +++ b/pkg/conn/conn_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) func mustParseURL(s string) *url.URL { diff --git a/pkg/formats/av1.go b/pkg/formats/av1.go index 3ba15730..b39445aa 100644 --- a/pkg/formats/av1.go +++ b/pkg/formats/av1.go @@ -6,7 +6,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpav1" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpav1" ) // AV1 is a RTP format for the AV1 codec. diff --git a/pkg/formats/g711.go b/pkg/formats/g711.go index 39dc9ee5..105ea8a5 100644 --- a/pkg/formats/g711.go +++ b/pkg/formats/g711.go @@ -3,7 +3,7 @@ package formats import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpsimpleaudio" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpsimpleaudio" ) // G711 is a RTP format for the G711 codec, encoded with mu-law or A-law. diff --git a/pkg/formats/g722.go b/pkg/formats/g722.go index 7a320ffd..60853730 100644 --- a/pkg/formats/g722.go +++ b/pkg/formats/g722.go @@ -3,7 +3,7 @@ package formats import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpsimpleaudio" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpsimpleaudio" ) // G722 is a RTP format for the G722 codec. diff --git a/pkg/formats/h264.go b/pkg/formats/h264.go index 1862d2a8..ac0f9ab3 100644 --- a/pkg/formats/h264.go +++ b/pkg/formats/h264.go @@ -10,7 +10,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtph264" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtph264" "github.com/bluenviron/mediacommon/pkg/codecs/h264" ) diff --git a/pkg/formats/h265.go b/pkg/formats/h265.go index 03dac11f..ea3b39eb 100644 --- a/pkg/formats/h265.go +++ b/pkg/formats/h265.go @@ -9,7 +9,7 @@ import ( "github.com/bluenviron/mediacommon/pkg/codecs/h265" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtph265" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtph265" ) // H265 is a RTP format for the H265 codec. diff --git a/pkg/formats/lpcm.go b/pkg/formats/lpcm.go index c1dbbdc4..b1cbc36b 100644 --- a/pkg/formats/lpcm.go +++ b/pkg/formats/lpcm.go @@ -6,7 +6,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtplpcm" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtplpcm" ) // LPCM is a RTP format for the uncompressed, Linear PCM codec. diff --git a/pkg/formats/mjpeg.go b/pkg/formats/mjpeg.go index a14d6148..56811451 100644 --- a/pkg/formats/mjpeg.go +++ b/pkg/formats/mjpeg.go @@ -3,7 +3,7 @@ package formats //nolint:dupl import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmjpeg" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmjpeg" ) // MJPEG is a RTP format for the Motion-JPEG codec. diff --git a/pkg/formats/mpeg1_audio.go b/pkg/formats/mpeg1_audio.go index 55a9fcb1..cc66e185 100644 --- a/pkg/formats/mpeg1_audio.go +++ b/pkg/formats/mpeg1_audio.go @@ -3,7 +3,7 @@ package formats //nolint:dupl import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmpeg1audio" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmpeg1audio" ) // MPEG1Audio is a RTP format for a MPEG-1/2 Audio codec. diff --git a/pkg/formats/mpeg4_audio_generic.go b/pkg/formats/mpeg4_audio_generic.go index 7c3d65f2..5bffe4fa 100644 --- a/pkg/formats/mpeg4_audio_generic.go +++ b/pkg/formats/mpeg4_audio_generic.go @@ -9,7 +9,7 @@ import ( "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmpeg4audio" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmpeg4audio" ) // MPEG4Audio is an alias for MPEG4AudioGeneric. diff --git a/pkg/formats/mpeg4_audio_latm.go b/pkg/formats/mpeg4_audio_latm.go index 47428e1e..3d367f1c 100644 --- a/pkg/formats/mpeg4_audio_latm.go +++ b/pkg/formats/mpeg4_audio_latm.go @@ -8,7 +8,7 @@ import ( "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmpeg4audiolatm" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmpeg4audiolatm" ) // MPEG4AudioLATM is a RTP format for a MPEG-4 Audio codec. diff --git a/pkg/formats/mpeg4_video_es.go b/pkg/formats/mpeg4_video_es.go index 6982ba60..cf8ff6aa 100644 --- a/pkg/formats/mpeg4_video_es.go +++ b/pkg/formats/mpeg4_video_es.go @@ -8,7 +8,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmpeg4video" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmpeg4video" ) // MPEG4Video is an alias for MPEG4VideoES. diff --git a/pkg/formats/opus.go b/pkg/formats/opus.go index 4f898b2a..8842dbca 100644 --- a/pkg/formats/opus.go +++ b/pkg/formats/opus.go @@ -7,7 +7,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpsimpleaudio" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpsimpleaudio" ) // Opus is a RTP format for the Opus codec. diff --git a/pkg/formats/rtpav1/decoder.go b/pkg/formats/rtpav1/decoder.go index 79fd4856..0c0641ee 100644 --- a/pkg/formats/rtpav1/decoder.go +++ b/pkg/formats/rtpav1/decoder.go @@ -9,7 +9,7 @@ import ( "github.com/pion/rtp" "github.com/pion/rtp/codecs" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) // ErrMorePacketsNeeded is returned when more packets are needed. diff --git a/pkg/formats/rtpav1/encoder.go b/pkg/formats/rtpav1/encoder.go index a691fe20..e6c4243e 100644 --- a/pkg/formats/rtpav1/encoder.go +++ b/pkg/formats/rtpav1/encoder.go @@ -7,7 +7,7 @@ import ( "github.com/bluenviron/mediacommon/pkg/codecs/av1" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) const ( diff --git a/pkg/formats/rtph264/decoder.go b/pkg/formats/rtph264/decoder.go index 0a31f478..d2582102 100644 --- a/pkg/formats/rtph264/decoder.go +++ b/pkg/formats/rtph264/decoder.go @@ -8,7 +8,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" "github.com/bluenviron/mediacommon/pkg/codecs/h264" ) diff --git a/pkg/formats/rtph264/encoder.go b/pkg/formats/rtph264/encoder.go index 0eabe150..94e6e0ae 100644 --- a/pkg/formats/rtph264/encoder.go +++ b/pkg/formats/rtph264/encoder.go @@ -7,7 +7,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" "github.com/bluenviron/mediacommon/pkg/codecs/h264" ) diff --git a/pkg/formats/rtph265/decoder.go b/pkg/formats/rtph265/decoder.go index 508718f7..72410048 100644 --- a/pkg/formats/rtph265/decoder.go +++ b/pkg/formats/rtph265/decoder.go @@ -7,7 +7,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" "github.com/bluenviron/mediacommon/pkg/codecs/h265" ) diff --git a/pkg/formats/rtph265/encoder.go b/pkg/formats/rtph265/encoder.go index fde42f3c..f1740ceb 100644 --- a/pkg/formats/rtph265/encoder.go +++ b/pkg/formats/rtph265/encoder.go @@ -7,7 +7,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) const ( diff --git a/pkg/formats/rtplpcm/decoder.go b/pkg/formats/rtplpcm/decoder.go index 79fc3466..569acb33 100644 --- a/pkg/formats/rtplpcm/decoder.go +++ b/pkg/formats/rtplpcm/decoder.go @@ -6,7 +6,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) // Decoder is a RTP/LPCM decoder. diff --git a/pkg/formats/rtplpcm/encoder.go b/pkg/formats/rtplpcm/encoder.go index 8303e2ba..c694ceec 100644 --- a/pkg/formats/rtplpcm/encoder.go +++ b/pkg/formats/rtplpcm/encoder.go @@ -7,7 +7,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) const ( diff --git a/pkg/formats/rtpmjpeg/decoder.go b/pkg/formats/rtpmjpeg/decoder.go index 4176b560..d15f1600 100644 --- a/pkg/formats/rtpmjpeg/decoder.go +++ b/pkg/formats/rtpmjpeg/decoder.go @@ -7,8 +7,8 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmjpeg/headers" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmjpeg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" "github.com/bluenviron/mediacommon/pkg/codecs/jpeg" ) diff --git a/pkg/formats/rtpmjpeg/encoder.go b/pkg/formats/rtpmjpeg/encoder.go index a7add587..e132881f 100644 --- a/pkg/formats/rtpmjpeg/encoder.go +++ b/pkg/formats/rtpmjpeg/encoder.go @@ -8,8 +8,8 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmjpeg/headers" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmjpeg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" "github.com/bluenviron/mediacommon/pkg/codecs/jpeg" ) diff --git a/pkg/formats/rtpmpeg1audio/decoder.go b/pkg/formats/rtpmpeg1audio/decoder.go index 2bdc9221..0ca7f82e 100644 --- a/pkg/formats/rtpmpeg1audio/decoder.go +++ b/pkg/formats/rtpmpeg1audio/decoder.go @@ -8,7 +8,7 @@ import ( "github.com/bluenviron/mediacommon/pkg/codecs/mpeg1audio" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) // ErrMorePacketsNeeded is returned when more packets are needed. diff --git a/pkg/formats/rtpmpeg1audio/encoder.go b/pkg/formats/rtpmpeg1audio/encoder.go index 9c66eadc..68099ed9 100644 --- a/pkg/formats/rtpmpeg1audio/encoder.go +++ b/pkg/formats/rtpmpeg1audio/encoder.go @@ -7,7 +7,7 @@ import ( "github.com/bluenviron/mediacommon/pkg/codecs/mpeg1audio" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) const ( diff --git a/pkg/formats/rtpmpeg2audio/rtpmpeg2audio.go b/pkg/formats/rtpmpeg2audio/rtpmpeg2audio.go index 551b833a..ef24bad4 100644 --- a/pkg/formats/rtpmpeg2audio/rtpmpeg2audio.go +++ b/pkg/formats/rtpmpeg2audio/rtpmpeg2audio.go @@ -2,7 +2,7 @@ package rtpmpeg2audio import ( - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmpeg1audio" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmpeg1audio" ) // ErrMorePacketsNeeded is an alis for rtpmpeg1audio.ErrMorePacketsNeeded. diff --git a/pkg/formats/rtpmpeg4audio/decoder.go b/pkg/formats/rtpmpeg4audio/decoder.go index 03177a59..7299501c 100644 --- a/pkg/formats/rtpmpeg4audio/decoder.go +++ b/pkg/formats/rtpmpeg4audio/decoder.go @@ -3,7 +3,7 @@ package rtpmpeg4audio import ( "errors" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmpeg4audiogeneric" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmpeg4audiogeneric" ) // ErrMorePacketsNeeded is an alis for rtpmpeg4audiogeneric.ErrMorePacketsNeeded. diff --git a/pkg/formats/rtpmpeg4audio/encoder.go b/pkg/formats/rtpmpeg4audio/encoder.go index 844e90ca..c42c1861 100644 --- a/pkg/formats/rtpmpeg4audio/encoder.go +++ b/pkg/formats/rtpmpeg4audio/encoder.go @@ -1,7 +1,7 @@ package rtpmpeg4audio import ( - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmpeg4audiogeneric" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmpeg4audiogeneric" ) // Encoder is an alias for rtpmpeg4audiogeneric.Encoder. diff --git a/pkg/formats/rtpmpeg4audiogeneric/decoder.go b/pkg/formats/rtpmpeg4audiogeneric/decoder.go index 2b5b8f96..434a9cc6 100644 --- a/pkg/formats/rtpmpeg4audiogeneric/decoder.go +++ b/pkg/formats/rtpmpeg4audiogeneric/decoder.go @@ -9,7 +9,7 @@ import ( "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) // ErrMorePacketsNeeded is returned when more packets are needed. diff --git a/pkg/formats/rtpmpeg4audiogeneric/encoder.go b/pkg/formats/rtpmpeg4audiogeneric/encoder.go index 208e1276..9ead52ce 100644 --- a/pkg/formats/rtpmpeg4audiogeneric/encoder.go +++ b/pkg/formats/rtpmpeg4audiogeneric/encoder.go @@ -6,7 +6,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" "github.com/bluenviron/mediacommon/pkg/bits" "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" ) diff --git a/pkg/formats/rtpmpeg4audiolatm/decoder.go b/pkg/formats/rtpmpeg4audiolatm/decoder.go index 086bde65..bf20f1f2 100644 --- a/pkg/formats/rtpmpeg4audiolatm/decoder.go +++ b/pkg/formats/rtpmpeg4audiolatm/decoder.go @@ -8,7 +8,7 @@ import ( "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) // ErrMorePacketsNeeded is returned when more packets are needed. diff --git a/pkg/formats/rtpmpeg4audiolatm/encoder.go b/pkg/formats/rtpmpeg4audiolatm/encoder.go index 348a86e9..e2f9aa74 100644 --- a/pkg/formats/rtpmpeg4audiolatm/encoder.go +++ b/pkg/formats/rtpmpeg4audiolatm/encoder.go @@ -8,7 +8,7 @@ import ( "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) const ( diff --git a/pkg/formats/rtpmpeg4video/decoder.go b/pkg/formats/rtpmpeg4video/decoder.go index 7a93f4e2..075825a6 100644 --- a/pkg/formats/rtpmpeg4video/decoder.go +++ b/pkg/formats/rtpmpeg4video/decoder.go @@ -7,7 +7,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) // ErrMorePacketsNeeded is returned when more packets are needed. diff --git a/pkg/formats/rtpmpeg4video/encoder.go b/pkg/formats/rtpmpeg4video/encoder.go index 99998c2e..f77845bb 100644 --- a/pkg/formats/rtpmpeg4video/encoder.go +++ b/pkg/formats/rtpmpeg4video/encoder.go @@ -6,7 +6,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) const ( diff --git a/pkg/formats/rtpsimpleaudio/decoder.go b/pkg/formats/rtpsimpleaudio/decoder.go index 4876f9a6..a9b12445 100644 --- a/pkg/formats/rtpsimpleaudio/decoder.go +++ b/pkg/formats/rtpsimpleaudio/decoder.go @@ -5,7 +5,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) // Decoder is a RTP/simple audio decoder. diff --git a/pkg/formats/rtpsimpleaudio/encoder.go b/pkg/formats/rtpsimpleaudio/encoder.go index 10521376..69c80504 100644 --- a/pkg/formats/rtpsimpleaudio/encoder.go +++ b/pkg/formats/rtpsimpleaudio/encoder.go @@ -7,7 +7,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) const ( diff --git a/pkg/formats/rtpvp8/decoder.go b/pkg/formats/rtpvp8/decoder.go index 704c43c8..bc5f478d 100644 --- a/pkg/formats/rtpvp8/decoder.go +++ b/pkg/formats/rtpvp8/decoder.go @@ -9,7 +9,7 @@ import ( "github.com/pion/rtp" "github.com/pion/rtp/codecs" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) // ErrMorePacketsNeeded is returned when more packets are needed. diff --git a/pkg/formats/rtpvp8/encoder.go b/pkg/formats/rtpvp8/encoder.go index 76ee28df..e14539d6 100644 --- a/pkg/formats/rtpvp8/encoder.go +++ b/pkg/formats/rtpvp8/encoder.go @@ -8,7 +8,7 @@ import ( "github.com/pion/rtp" "github.com/pion/rtp/codecs" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) const ( diff --git a/pkg/formats/rtpvp9/decoder.go b/pkg/formats/rtpvp9/decoder.go index 51b570db..acdf2159 100644 --- a/pkg/formats/rtpvp9/decoder.go +++ b/pkg/formats/rtpvp9/decoder.go @@ -9,7 +9,7 @@ import ( "github.com/pion/rtp" "github.com/pion/rtp/codecs" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) // ErrMorePacketsNeeded is returned when more packets are needed. diff --git a/pkg/formats/rtpvp9/encoder.go b/pkg/formats/rtpvp9/encoder.go index 28d712ae..0c46156a 100644 --- a/pkg/formats/rtpvp9/encoder.go +++ b/pkg/formats/rtpvp9/encoder.go @@ -8,7 +8,7 @@ import ( "github.com/pion/rtp" "github.com/pion/rtp/codecs" - "github.com/bluenviron/gortsplib/v3/pkg/rtptime" + "github.com/bluenviron/gortsplib/v4/pkg/rtptime" ) const ( diff --git a/pkg/formats/vp8.go b/pkg/formats/vp8.go index cf46cf24..aadbf72d 100644 --- a/pkg/formats/vp8.go +++ b/pkg/formats/vp8.go @@ -6,7 +6,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpvp8" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpvp8" ) // VP8 is a RTP format for the VP8 codec. diff --git a/pkg/formats/vp9.go b/pkg/formats/vp9.go index 53c4de23..32a9a4f8 100644 --- a/pkg/formats/vp9.go +++ b/pkg/formats/vp9.go @@ -6,7 +6,7 @@ import ( "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats/rtpvp9" + "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpvp9" ) // VP9 is a RTP format for the VP9 codec. diff --git a/pkg/headers/authenticate.go b/pkg/headers/authenticate.go index 7baf156e..5049b124 100644 --- a/pkg/headers/authenticate.go +++ b/pkg/headers/authenticate.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) // AuthMethod is an authentication method. diff --git a/pkg/headers/authenticate_test.go b/pkg/headers/authenticate_test.go index 86cf1cee..07c8469d 100644 --- a/pkg/headers/authenticate_test.go +++ b/pkg/headers/authenticate_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) func stringPtr(v string) *string { diff --git a/pkg/headers/authorization.go b/pkg/headers/authorization.go index f81a1332..18e5e7e3 100644 --- a/pkg/headers/authorization.go +++ b/pkg/headers/authorization.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) // Authorization is an Authorization header. diff --git a/pkg/headers/authorization_test.go b/pkg/headers/authorization_test.go index 71c7806d..0f8a9cad 100644 --- a/pkg/headers/authorization_test.go +++ b/pkg/headers/authorization_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) var casesAuthorization = []struct { diff --git a/pkg/headers/range.go b/pkg/headers/range.go index 4109125c..8bc1cba6 100644 --- a/pkg/headers/range.go +++ b/pkg/headers/range.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) func leadingZero(v uint) string { diff --git a/pkg/headers/range_test.go b/pkg/headers/range_test.go index 8b633579..49cac2b6 100644 --- a/pkg/headers/range_test.go +++ b/pkg/headers/range_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) func durationPtr(v time.Duration) *time.Duration { diff --git a/pkg/headers/rtpinfo.go b/pkg/headers/rtpinfo.go index 7f7522d7..97a14554 100644 --- a/pkg/headers/rtpinfo.go +++ b/pkg/headers/rtpinfo.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) // RTPInfoEntry is an entry of a RTP-Info header. diff --git a/pkg/headers/rtpinfo_test.go b/pkg/headers/rtpinfo_test.go index fddf759d..bc27fea4 100644 --- a/pkg/headers/rtpinfo_test.go +++ b/pkg/headers/rtpinfo_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) func uint16Ptr(v uint16) *uint16 { diff --git a/pkg/headers/session.go b/pkg/headers/session.go index 5a9331a2..683b3c19 100644 --- a/pkg/headers/session.go +++ b/pkg/headers/session.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) // Session is a Session header. diff --git a/pkg/headers/session_test.go b/pkg/headers/session_test.go index 0c4f2643..02ceb073 100644 --- a/pkg/headers/session_test.go +++ b/pkg/headers/session_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) var casesSession = []struct { diff --git a/pkg/headers/transport.go b/pkg/headers/transport.go index 0b47c0a2..9ad23f36 100644 --- a/pkg/headers/transport.go +++ b/pkg/headers/transport.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) func parsePorts(val string) (*[2]int, error) { diff --git a/pkg/headers/transport_test.go b/pkg/headers/transport_test.go index f31e1c13..14c358a3 100644 --- a/pkg/headers/transport_test.go +++ b/pkg/headers/transport_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) func ipPtr(v net.IP) *net.IP { diff --git a/pkg/liberrors/client.go b/pkg/liberrors/client.go index 39014ccf..39aa689c 100644 --- a/pkg/liberrors/client.go +++ b/pkg/liberrors/client.go @@ -3,7 +3,7 @@ package liberrors import ( "fmt" - "github.com/bluenviron/gortsplib/v3/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/base" ) // ErrClientTerminated is an error that can be returned by a client. diff --git a/pkg/liberrors/server.go b/pkg/liberrors/server.go index 23f3401d..f56b3fb6 100644 --- a/pkg/liberrors/server.go +++ b/pkg/liberrors/server.go @@ -4,8 +4,8 @@ import ( "fmt" "net" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/headers" ) // ErrServerTerminated is an error that can be returned by a server. diff --git a/pkg/media/media.go b/pkg/media/media.go index 20a0a73d..94f3b0c9 100644 --- a/pkg/media/media.go +++ b/pkg/media/media.go @@ -11,8 +11,8 @@ import ( psdp "github.com/pion/sdp/v3" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) var smartRegexp = regexp.MustCompile("^([0-9]+) (.*?)/90000") diff --git a/pkg/media/media_test.go b/pkg/media/media_test.go index fea46a53..2e348d14 100644 --- a/pkg/media/media_test.go +++ b/pkg/media/media_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/sdp" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/sdp" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) func mustParseURL(s string) *url.URL { diff --git a/pkg/media/medias.go b/pkg/media/medias.go index a8a59ae6..9a4ceaa5 100644 --- a/pkg/media/medias.go +++ b/pkg/media/medias.go @@ -5,7 +5,7 @@ import ( psdp "github.com/pion/sdp/v3" - "github.com/bluenviron/gortsplib/v3/pkg/sdp" + "github.com/bluenviron/gortsplib/v4/pkg/sdp" ) // Medias is a list of media streams. diff --git a/pkg/media/medias_test.go b/pkg/media/medias_test.go index 1bebcc66..edd2bd9a 100644 --- a/pkg/media/medias_test.go +++ b/pkg/media/medias_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/sdp" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/sdp" ) var casesMedias = []struct { diff --git a/server.go b/server.go index 9c993a65..98394206 100644 --- a/server.go +++ b/server.go @@ -9,8 +9,8 @@ import ( "sync" "time" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/liberrors" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/liberrors" ) func extractPort(address string) (int, error) { diff --git a/server_conn.go b/server_conn.go index 8f3c630c..2132ee83 100644 --- a/server_conn.go +++ b/server_conn.go @@ -9,12 +9,12 @@ import ( "strings" "time" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/bytecounter" - "github.com/bluenviron/gortsplib/v3/pkg/conn" - "github.com/bluenviron/gortsplib/v3/pkg/liberrors" - "github.com/bluenviron/gortsplib/v3/pkg/media" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/bytecounter" + "github.com/bluenviron/gortsplib/v4/pkg/conn" + "github.com/bluenviron/gortsplib/v4/pkg/liberrors" + "github.com/bluenviron/gortsplib/v4/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) func getSessionID(header base.Header) string { diff --git a/server_conn_reader.go b/server_conn_reader.go index cf86e1c5..aedf5a60 100644 --- a/server_conn_reader.go +++ b/server_conn_reader.go @@ -4,8 +4,8 @@ import ( "sync/atomic" "time" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/liberrors" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/liberrors" ) type errSwitchReadFunc struct { diff --git a/server_handler.go b/server_handler.go index 51a8b364..511dbb4d 100644 --- a/server_handler.go +++ b/server_handler.go @@ -1,8 +1,8 @@ package gortsplib import ( - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/media" ) // ServerHandler is the interface implemented by all the server handlers. diff --git a/server_multicast_writer.go b/server_multicast_writer.go index b32d5a3c..3228c290 100644 --- a/server_multicast_writer.go +++ b/server_multicast_writer.go @@ -3,7 +3,7 @@ package gortsplib import ( "net" - "github.com/bluenviron/gortsplib/v3/pkg/ringbuffer" + "github.com/bluenviron/gortsplib/v4/pkg/ringbuffer" ) type typeAndPayload struct { diff --git a/server_play_test.go b/server_play_test.go index ab6e81aa..a792e3a2 100644 --- a/server_play_test.go +++ b/server_play_test.go @@ -16,13 +16,13 @@ import ( "github.com/stretchr/testify/require" "golang.org/x/net/ipv4" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/conn" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/headers" - "github.com/bluenviron/gortsplib/v3/pkg/media" - "github.com/bluenviron/gortsplib/v3/pkg/sdp" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/conn" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/sdp" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) func uintPtr(v uint) *uint { diff --git a/server_record_test.go b/server_record_test.go index 7407f237..fce92880 100644 --- a/server_record_test.go +++ b/server_record_test.go @@ -13,12 +13,12 @@ import ( psdp "github.com/pion/sdp/v3" "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/conn" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/headers" - "github.com/bluenviron/gortsplib/v3/pkg/media" - "github.com/bluenviron/gortsplib/v3/pkg/sdp" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/conn" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/sdp" ) func doAnnounce(t *testing.T, conn *conn.Conn, u string, medias media.Medias) { diff --git a/server_session.go b/server_session.go index e240524b..5a940c36 100644 --- a/server_session.go +++ b/server_session.go @@ -13,13 +13,13 @@ import ( "github.com/pion/rtcp" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/headers" - "github.com/bluenviron/gortsplib/v3/pkg/liberrors" - "github.com/bluenviron/gortsplib/v3/pkg/media" - "github.com/bluenviron/gortsplib/v3/pkg/sdp" - "github.com/bluenviron/gortsplib/v3/pkg/url" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/liberrors" + "github.com/bluenviron/gortsplib/v4/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/sdp" + "github.com/bluenviron/gortsplib/v4/pkg/url" ) type readFunc func([]byte) diff --git a/server_session_format.go b/server_session_format.go index 614b3637..d76c8ca5 100644 --- a/server_session_format.go +++ b/server_session_format.go @@ -7,10 +7,10 @@ import ( "github.com/pion/rtcp" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/rtcpreceiver" - "github.com/bluenviron/gortsplib/v3/pkg/rtplossdetector" - "github.com/bluenviron/gortsplib/v3/pkg/rtpreorderer" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/rtcpreceiver" + "github.com/bluenviron/gortsplib/v4/pkg/rtplossdetector" + "github.com/bluenviron/gortsplib/v4/pkg/rtpreorderer" ) type serverSessionFormat struct { diff --git a/server_session_media.go b/server_session_media.go index d9ac5b2f..c472bf8c 100644 --- a/server_session_media.go +++ b/server_session_media.go @@ -9,8 +9,8 @@ import ( "github.com/pion/rtcp" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/media" ) type serverSessionMedia struct { diff --git a/server_stream.go b/server_stream.go index 231fd9e9..96ba59e6 100644 --- a/server_stream.go +++ b/server_stream.go @@ -8,9 +8,9 @@ import ( "github.com/pion/rtcp" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/headers" - "github.com/bluenviron/gortsplib/v3/pkg/liberrors" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/liberrors" + "github.com/bluenviron/gortsplib/v4/pkg/media" ) // ServerStream represents a data stream. diff --git a/server_stream_format.go b/server_stream_format.go index 92860810..8b654589 100644 --- a/server_stream_format.go +++ b/server_stream_format.go @@ -1,8 +1,8 @@ package gortsplib import ( - "github.com/bluenviron/gortsplib/v3/pkg/formats" - "github.com/bluenviron/gortsplib/v3/pkg/rtcpsender" + "github.com/bluenviron/gortsplib/v4/pkg/formats" + "github.com/bluenviron/gortsplib/v4/pkg/rtcpsender" ) type serverStreamFormat struct { diff --git a/server_stream_media.go b/server_stream_media.go index 37a6b826..00c63f06 100644 --- a/server_stream_media.go +++ b/server_stream_media.go @@ -6,8 +6,8 @@ import ( "github.com/pion/rtcp" "github.com/pion/rtp" - "github.com/bluenviron/gortsplib/v3/pkg/media" - "github.com/bluenviron/gortsplib/v3/pkg/rtcpsender" + "github.com/bluenviron/gortsplib/v4/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/rtcpsender" ) type serverStreamMedia struct { diff --git a/server_test.go b/server_test.go index b21d8157..ebc1158e 100644 --- a/server_test.go +++ b/server_test.go @@ -8,11 +8,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/bluenviron/gortsplib/v3/pkg/auth" - "github.com/bluenviron/gortsplib/v3/pkg/base" - "github.com/bluenviron/gortsplib/v3/pkg/conn" - "github.com/bluenviron/gortsplib/v3/pkg/headers" - "github.com/bluenviron/gortsplib/v3/pkg/media" + "github.com/bluenviron/gortsplib/v4/pkg/auth" + "github.com/bluenviron/gortsplib/v4/pkg/base" + "github.com/bluenviron/gortsplib/v4/pkg/conn" + "github.com/bluenviron/gortsplib/v4/pkg/headers" + "github.com/bluenviron/gortsplib/v4/pkg/media" ) var serverCert = []byte(`-----BEGIN CERTIFICATE-----