mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 23:52:46 +08:00
simplify example
This commit is contained in:
@@ -25,13 +25,8 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
p := gortsplib.ClientTransportUDP
|
|
||||||
c := gortsplib.Client{
|
|
||||||
Transport: &p,
|
|
||||||
}
|
|
||||||
|
|
||||||
// connect to the server and start reading all tracks
|
// connect to the server and start reading all tracks
|
||||||
conn, err := c.DialRead(inputStream)
|
conn, err := gortsplib.DialRead(inputStream)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user