mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
client: add Start2; deprecate Start (#801)
This commit is contained in:
@@ -35,16 +35,19 @@ func (c *client) run() {
|
||||
}
|
||||
|
||||
func (c *client) read() error {
|
||||
rc := gortsplib.Client{}
|
||||
|
||||
// parse URL
|
||||
u, err := base.ParseURL(existingStream)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
rc := gortsplib.Client{
|
||||
Scheme: u.Scheme,
|
||||
Host: u.Host,
|
||||
}
|
||||
|
||||
// connect to the server
|
||||
err = rc.Start(u.Scheme, u.Host)
|
||||
err = rc.Start2()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user