add ConnClient.Pause

This commit is contained in:
aler9
2020-11-07 18:32:26 +01:00
parent e711b2925f
commit 6c9dc82a55
2 changed files with 162 additions and 87 deletions

View File

@@ -91,7 +91,7 @@ func (d Dialer) DialRead(address string, proto StreamProtocol) (*ConnClient, err
}
}
_, err = conn.Play(u)
_, err = conn.Play()
if err != nil {
conn.Close()
return nil, err
@@ -139,7 +139,7 @@ func (d Dialer) DialPublish(address string, proto StreamProtocol, tracks Tracks)
}
}
_, err = conn.Record(u)
_, err = conn.Record()
if err != nil {
conn.Close()
return nil, err