mirror of
https://github.com/aler9/gortsplib
synced 2025-10-08 16:40:09 +08:00
switch to v5 (#890)
* switch from v4 to v5 * remove deprecated entities * remove "2" suffix from entities * rename TransportProtocol into Protocol
This commit is contained in:
@@ -8,9 +8,9 @@ import (
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/bluenviron/gortsplib/v4"
|
||||
"github.com/bluenviron/gortsplib/v4/pkg/description"
|
||||
"github.com/bluenviron/gortsplib/v4/pkg/format"
|
||||
"github.com/bluenviron/gortsplib/v5"
|
||||
"github.com/bluenviron/gortsplib/v5/pkg/description"
|
||||
"github.com/bluenviron/gortsplib/v5/pkg/format"
|
||||
)
|
||||
|
||||
// This example shows how to:
|
||||
@@ -55,7 +55,7 @@ func main() {
|
||||
// Client allows to set additional client options
|
||||
c := &gortsplib.Client{
|
||||
// transport protocol (UDP or TCP). If nil, it is chosen automatically
|
||||
Transport: nil,
|
||||
Protocol: nil,
|
||||
// timeout of read operations
|
||||
ReadTimeout: 10 * time.Second,
|
||||
// timeout of write operations
|
||||
|
Reference in New Issue
Block a user