bump to v4

This commit is contained in:
aler9
2023-08-14 10:59:37 +02:00
parent 9f19892c23
commit 80106144e6
131 changed files with 324 additions and 324 deletions

View File

@@ -52,11 +52,11 @@ linters-settings:
- (github.com/datarhei/gosrt.Conn).Close - (github.com/datarhei/gosrt.Conn).Close
- (github.com/datarhei/gosrt.Conn).SetReadDeadline - (github.com/datarhei/gosrt.Conn).SetReadDeadline
- (github.com/datarhei/gosrt.Conn).SetWriteDeadline - (github.com/datarhei/gosrt.Conn).SetWriteDeadline
- (*github.com/bluenviron/gortsplib/v3.Client).Close - (*github.com/bluenviron/gortsplib/v4.Client).Close
- (*github.com/bluenviron/gortsplib/v3.Server).Close - (*github.com/bluenviron/gortsplib/v4.Server).Close
- (*github.com/bluenviron/gortsplib/v3.ServerSession).Close - (*github.com/bluenviron/gortsplib/v4.ServerSession).Close
- (*github.com/bluenviron/gortsplib/v3.ServerStream).Close - (*github.com/bluenviron/gortsplib/v4.ServerStream).Close
- (*github.com/bluenviron/gortsplib/v3.ServerConn).Close - (*github.com/bluenviron/gortsplib/v4.ServerConn).Close
govet: govet:
enable-all: true enable-all: true

View File

@@ -4,7 +4,7 @@
[![Lint](https://github.com/bluenviron/gortsplib/workflows/lint/badge.svg)](https://github.com/bluenviron/gortsplib/actions?query=workflow:lint) [![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) [![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) [![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). 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 ## 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 ## 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| |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:| |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/v3/pkg/formats#VP9)|: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/v3/pkg/formats#VP8)|: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/v3/pkg/formats#H265)|: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/v3/pkg/formats#H264)|: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/v3/pkg/formats#MPEG4VideoES)|: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/v3/pkg/formats#MPEG1Video)|| |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/v3/pkg/formats#MJPEG)|:heavy_check_mark:| |M-JPEG||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#MJPEG)|:heavy_check_mark:|
### Audio ### Audio
|format / codec|variant|documentation|encoder and decoder available| |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:| |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/v3/pkg/formats#Vorbis)|| |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/v3/pkg/formats#MPEG4AudioGeneric)|:heavy_check_mark:| |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/v3/pkg/formats#MPEG4AudioLATM)|: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/v3/pkg/formats#MPEG1Audio)|: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/v3/pkg/formats#Speex)|| |Speex||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#Speex)||
|G726||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#G726)|| |G726||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#G726)||
|G722||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v3/pkg/formats#G722)|:heavy_check_mark:| |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/v3/pkg/formats#G711)|: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/v3/pkg/formats#LPCM)|:heavy_check_mark:| |LPCM||[link](https://pkg.go.dev/github.com/bluenviron/gortsplib/v4/pkg/formats#LPCM)|:heavy_check_mark:|
### Mixed ### Mixed
|format / codec|variant|documentation|encoder and decoder available| |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 ## Standards

View File

@@ -1,7 +1,7 @@
package gortsplib package gortsplib
import ( 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 // this struct contains a queue that allows to detach the routine that is reading a stream

View File

@@ -19,16 +19,16 @@ import (
"github.com/pion/rtcp" "github.com/pion/rtcp"
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3/pkg/auth" "github.com/bluenviron/gortsplib/v4/pkg/auth"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/bytecounter" "github.com/bluenviron/gortsplib/v4/pkg/bytecounter"
"github.com/bluenviron/gortsplib/v3/pkg/conn" "github.com/bluenviron/gortsplib/v4/pkg/conn"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/headers" "github.com/bluenviron/gortsplib/v4/pkg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/liberrors" "github.com/bluenviron/gortsplib/v4/pkg/liberrors"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/sdp" "github.com/bluenviron/gortsplib/v4/pkg/sdp"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
) )
// convert an URL into an address, in particular: // convert an URL into an address, in particular:

View File

@@ -7,11 +7,11 @@ import (
"github.com/pion/rtcp" "github.com/pion/rtcp"
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/rtcpreceiver" "github.com/bluenviron/gortsplib/v4/pkg/rtcpreceiver"
"github.com/bluenviron/gortsplib/v3/pkg/rtcpsender" "github.com/bluenviron/gortsplib/v4/pkg/rtcpsender"
"github.com/bluenviron/gortsplib/v3/pkg/rtplossdetector" "github.com/bluenviron/gortsplib/v4/pkg/rtplossdetector"
"github.com/bluenviron/gortsplib/v3/pkg/rtpreorderer" "github.com/bluenviron/gortsplib/v4/pkg/rtpreorderer"
) )
type clientFormat struct { type clientFormat struct {

View File

@@ -8,8 +8,8 @@ import (
"github.com/pion/rtcp" "github.com/pion/rtcp"
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
) )
type clientMedia struct { type clientMedia struct {

View File

@@ -15,13 +15,13 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"golang.org/x/net/ipv4" "golang.org/x/net/ipv4"
"github.com/bluenviron/gortsplib/v3/pkg/auth" "github.com/bluenviron/gortsplib/v4/pkg/auth"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/conn" "github.com/bluenviron/gortsplib/v4/pkg/conn"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/headers" "github.com/bluenviron/gortsplib/v4/pkg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio"
) )

View File

@@ -3,7 +3,7 @@ package gortsplib
import ( import (
"time" "time"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
) )
type clientReader struct { type clientReader struct {

View File

@@ -12,13 +12,13 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/conn" "github.com/bluenviron/gortsplib/v4/pkg/conn"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/headers" "github.com/bluenviron/gortsplib/v4/pkg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/sdp" "github.com/bluenviron/gortsplib/v4/pkg/sdp"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
) )
var testH264Media = &media.Media{ var testH264Media = &media.Media{

View File

@@ -8,11 +8,11 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/bluenviron/gortsplib/v3/pkg/auth" "github.com/bluenviron/gortsplib/v4/pkg/auth"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/conn" "github.com/bluenviron/gortsplib/v4/pkg/conn"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
) )
func mustParseURL(s string) *url.URL { func mustParseURL(s string) *url.URL {

View File

@@ -4,9 +4,9 @@ import (
"log" "log"
"net" "net"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -4,9 +4,9 @@ import (
"log" "log"
"net" "net"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -4,9 +4,9 @@ import (
"log" "log"
"net" "net"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -4,9 +4,9 @@ import (
"log" "log"
"net" "net"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -4,9 +4,9 @@ import (
"log" "log"
"net" "net"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -4,9 +4,9 @@ import (
"log" "log"
"net" "net"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -4,9 +4,9 @@ import (
"log" "log"
"net" "net"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -4,9 +4,9 @@ import (
"log" "log"
"net" "net"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -4,9 +4,9 @@ import (
"log" "log"
"net" "net"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -4,9 +4,9 @@ import (
"log" "log"
"net" "net"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -5,9 +5,9 @@ import (
"net" "net"
"time" "time"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -5,9 +5,9 @@ import (
"net" "net"
"time" "time"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -3,8 +3,8 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
) )
// This example shows how to // This example shows how to

View File

@@ -3,9 +3,9 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -3,9 +3,9 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -8,10 +8,10 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtph264" "github.com/bluenviron/gortsplib/v4/pkg/formats/rtph264"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -3,10 +3,10 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtph264" "github.com/bluenviron/gortsplib/v4/pkg/formats/rtph264"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -3,10 +3,10 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtph264" "github.com/bluenviron/gortsplib/v4/pkg/formats/rtph264"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -3,10 +3,10 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtph265" "github.com/bluenviron/gortsplib/v4/pkg/formats/rtph265"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -3,9 +3,9 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -5,10 +5,10 @@ import (
"image/jpeg" "image/jpeg"
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmjpeg" "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmjpeg"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -3,9 +3,9 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -3,9 +3,9 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -3,9 +3,9 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -3,10 +3,10 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtpvp8" "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpvp8"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -3,10 +3,10 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtpvp9" "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpvp9"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -4,10 +4,10 @@ import (
"log" "log"
"time" "time"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtcp" "github.com/pion/rtcp"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -4,10 +4,10 @@ import (
"log" "log"
"time" "time"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtcp" "github.com/pion/rtcp"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -3,10 +3,10 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -3,10 +3,10 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtcp" "github.com/pion/rtcp"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -5,10 +5,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp" "github.com/pion/rtp"
) )

View File

@@ -3,8 +3,8 @@ package main
import ( import (
"log" "log"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
) )
type server struct { type server struct {

View File

@@ -7,11 +7,11 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtph264" "github.com/bluenviron/gortsplib/v4/pkg/formats/rtph264"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
) )
// This example shows how to // This example shows how to

View File

@@ -7,10 +7,10 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
) )
// This example shows how to // This example shows how to

View File

@@ -6,10 +6,10 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
) )
// This example shows how to // This example shows how to

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/bluenviron/gortsplib/v3 module github.com/bluenviron/gortsplib/v4
go 1.18 go 1.18

View File

@@ -17,10 +17,10 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/bluenviron/gortsplib/v3" "github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/formats" "github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v3/pkg/media" "github.com/bluenviron/gortsplib/v4/pkg/media"
) )
var serverCert = []byte(`-----BEGIN CERTIFICATE----- var serverCert = []byte(`-----BEGIN CERTIFICATE-----

View File

@@ -5,9 +5,9 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/headers" "github.com/bluenviron/gortsplib/v4/pkg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
) )
func mustParseURL(s string) *url.URL { func mustParseURL(s string) *url.URL {

View File

@@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/headers" "github.com/bluenviron/gortsplib/v4/pkg/headers"
) )
func findHeader(v base.HeaderValue, prefix string) string { func findHeader(v base.HeaderValue, prefix string) string {

View File

@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
) )
func TestSenderErrors(t *testing.T) { func TestSenderErrors(t *testing.T) {

View File

@@ -5,9 +5,9 @@ import (
"encoding/hex" "encoding/hex"
"fmt" "fmt"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/headers" "github.com/bluenviron/gortsplib/v4/pkg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
) )
// GenerateNonce2 generates a nonce that can be used in Validate(). // GenerateNonce2 generates a nonce that can be used in Validate().

View File

@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
) )
func TestValidateErrors(t *testing.T) { func TestValidateErrors(t *testing.T) {

View File

@@ -8,9 +8,9 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/headers" "github.com/bluenviron/gortsplib/v4/pkg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
) )
func md5Hex(in string) string { func md5Hex(in string) string {

View File

@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
) )
func TestValidatorErrors(t *testing.T) { func TestValidatorErrors(t *testing.T) {

View File

@@ -6,7 +6,7 @@ import (
"fmt" "fmt"
"strconv" "strconv"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
) )
const ( const (

View File

@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/require" "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 { func mustParseURL(s string) *url.URL {

View File

@@ -5,7 +5,7 @@ import (
"bufio" "bufio"
"io" "io"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
) )
const ( const (

View File

@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
"github.com/bluenviron/gortsplib/v3/pkg/url" "github.com/bluenviron/gortsplib/v4/pkg/url"
) )
func mustParseURL(s string) *url.URL { func mustParseURL(s string) *url.URL {

View File

@@ -6,7 +6,7 @@ import (
"github.com/pion/rtp" "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. // AV1 is a RTP format for the AV1 codec.

View File

@@ -3,7 +3,7 @@ package formats
import ( import (
"github.com/pion/rtp" "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. // G711 is a RTP format for the G711 codec, encoded with mu-law or A-law.

View File

@@ -3,7 +3,7 @@ package formats
import ( import (
"github.com/pion/rtp" "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. // G722 is a RTP format for the G722 codec.

View File

@@ -10,7 +10,7 @@ import (
"github.com/pion/rtp" "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" "github.com/bluenviron/mediacommon/pkg/codecs/h264"
) )

View File

@@ -9,7 +9,7 @@ import (
"github.com/bluenviron/mediacommon/pkg/codecs/h265" "github.com/bluenviron/mediacommon/pkg/codecs/h265"
"github.com/pion/rtp" "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. // H265 is a RTP format for the H265 codec.

View File

@@ -6,7 +6,7 @@ import (
"github.com/pion/rtp" "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. // LPCM is a RTP format for the uncompressed, Linear PCM codec.

View File

@@ -3,7 +3,7 @@ package formats //nolint:dupl
import ( import (
"github.com/pion/rtp" "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. // MJPEG is a RTP format for the Motion-JPEG codec.

View File

@@ -3,7 +3,7 @@ package formats //nolint:dupl
import ( import (
"github.com/pion/rtp" "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. // MPEG1Audio is a RTP format for a MPEG-1/2 Audio codec.

View File

@@ -9,7 +9,7 @@ import (
"github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio"
"github.com/pion/rtp" "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. // MPEG4Audio is an alias for MPEG4AudioGeneric.

View File

@@ -8,7 +8,7 @@ import (
"github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio"
"github.com/pion/rtp" "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. // MPEG4AudioLATM is a RTP format for a MPEG-4 Audio codec.

View File

@@ -8,7 +8,7 @@ import (
"github.com/pion/rtp" "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. // MPEG4Video is an alias for MPEG4VideoES.

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtp" "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. // Opus is a RTP format for the Opus codec.

View File

@@ -9,7 +9,7 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/pion/rtp/codecs" "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. // ErrMorePacketsNeeded is returned when more packets are needed.

View File

@@ -7,7 +7,7 @@ import (
"github.com/bluenviron/mediacommon/pkg/codecs/av1" "github.com/bluenviron/mediacommon/pkg/codecs/av1"
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime" "github.com/bluenviron/gortsplib/v4/pkg/rtptime"
) )
const ( const (

View File

@@ -8,7 +8,7 @@ import (
"github.com/pion/rtp" "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" "github.com/bluenviron/mediacommon/pkg/codecs/h264"
) )

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtp" "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" "github.com/bluenviron/mediacommon/pkg/codecs/h264"
) )

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtp" "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" "github.com/bluenviron/mediacommon/pkg/codecs/h265"
) )

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime" "github.com/bluenviron/gortsplib/v4/pkg/rtptime"
) )
const ( const (

View File

@@ -6,7 +6,7 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime" "github.com/bluenviron/gortsplib/v4/pkg/rtptime"
) )
// Decoder is a RTP/LPCM decoder. // Decoder is a RTP/LPCM decoder.

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime" "github.com/bluenviron/gortsplib/v4/pkg/rtptime"
) )
const ( const (

View File

@@ -7,8 +7,8 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmjpeg/headers" "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmjpeg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime" "github.com/bluenviron/gortsplib/v4/pkg/rtptime"
"github.com/bluenviron/mediacommon/pkg/codecs/jpeg" "github.com/bluenviron/mediacommon/pkg/codecs/jpeg"
) )

View File

@@ -8,8 +8,8 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmjpeg/headers" "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmjpeg/headers"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime" "github.com/bluenviron/gortsplib/v4/pkg/rtptime"
"github.com/bluenviron/mediacommon/pkg/codecs/jpeg" "github.com/bluenviron/mediacommon/pkg/codecs/jpeg"
) )

View File

@@ -8,7 +8,7 @@ import (
"github.com/bluenviron/mediacommon/pkg/codecs/mpeg1audio" "github.com/bluenviron/mediacommon/pkg/codecs/mpeg1audio"
"github.com/pion/rtp" "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. // ErrMorePacketsNeeded is returned when more packets are needed.

View File

@@ -7,7 +7,7 @@ import (
"github.com/bluenviron/mediacommon/pkg/codecs/mpeg1audio" "github.com/bluenviron/mediacommon/pkg/codecs/mpeg1audio"
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime" "github.com/bluenviron/gortsplib/v4/pkg/rtptime"
) )
const ( const (

View File

@@ -2,7 +2,7 @@
package rtpmpeg2audio package rtpmpeg2audio
import ( import (
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmpeg1audio" "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmpeg1audio"
) )
// ErrMorePacketsNeeded is an alis for rtpmpeg1audio.ErrMorePacketsNeeded. // ErrMorePacketsNeeded is an alis for rtpmpeg1audio.ErrMorePacketsNeeded.

View File

@@ -3,7 +3,7 @@ package rtpmpeg4audio
import ( import (
"errors" "errors"
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmpeg4audiogeneric" "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmpeg4audiogeneric"
) )
// ErrMorePacketsNeeded is an alis for rtpmpeg4audiogeneric.ErrMorePacketsNeeded. // ErrMorePacketsNeeded is an alis for rtpmpeg4audiogeneric.ErrMorePacketsNeeded.

View File

@@ -1,7 +1,7 @@
package rtpmpeg4audio package rtpmpeg4audio
import ( import (
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmpeg4audiogeneric" "github.com/bluenviron/gortsplib/v4/pkg/formats/rtpmpeg4audiogeneric"
) )
// Encoder is an alias for rtpmpeg4audiogeneric.Encoder. // Encoder is an alias for rtpmpeg4audiogeneric.Encoder.

View File

@@ -9,7 +9,7 @@ import (
"github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio"
"github.com/pion/rtp" "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. // ErrMorePacketsNeeded is returned when more packets are needed.

View File

@@ -6,7 +6,7 @@ import (
"github.com/pion/rtp" "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/bits"
"github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio"
) )

View File

@@ -8,7 +8,7 @@ import (
"github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio"
"github.com/pion/rtp" "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. // ErrMorePacketsNeeded is returned when more packets are needed.

View File

@@ -8,7 +8,7 @@ import (
"github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio"
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime" "github.com/bluenviron/gortsplib/v4/pkg/rtptime"
) )
const ( const (

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtp" "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. // ErrMorePacketsNeeded is returned when more packets are needed.

View File

@@ -6,7 +6,7 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime" "github.com/bluenviron/gortsplib/v4/pkg/rtptime"
) )
const ( const (

View File

@@ -5,7 +5,7 @@ import (
"github.com/pion/rtp" "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. // Decoder is a RTP/simple audio decoder.

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime" "github.com/bluenviron/gortsplib/v4/pkg/rtptime"
) )
const ( const (

View File

@@ -9,7 +9,7 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/pion/rtp/codecs" "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. // ErrMorePacketsNeeded is returned when more packets are needed.

View File

@@ -8,7 +8,7 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/pion/rtp/codecs" "github.com/pion/rtp/codecs"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime" "github.com/bluenviron/gortsplib/v4/pkg/rtptime"
) )
const ( const (

View File

@@ -9,7 +9,7 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/pion/rtp/codecs" "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. // ErrMorePacketsNeeded is returned when more packets are needed.

View File

@@ -8,7 +8,7 @@ import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/pion/rtp/codecs" "github.com/pion/rtp/codecs"
"github.com/bluenviron/gortsplib/v3/pkg/rtptime" "github.com/bluenviron/gortsplib/v4/pkg/rtptime"
) )
const ( const (

View File

@@ -6,7 +6,7 @@ import (
"github.com/pion/rtp" "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. // VP8 is a RTP format for the VP8 codec.

View File

@@ -6,7 +6,7 @@ import (
"github.com/pion/rtp" "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. // VP9 is a RTP format for the VP9 codec.

View File

@@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/bluenviron/gortsplib/v3/pkg/base" "github.com/bluenviron/gortsplib/v4/pkg/base"
) )
// AuthMethod is an authentication method. // AuthMethod is an authentication method.

Some files were not shown because too many files have changed in this diff Show More