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