mirror of
https://github.com/aler9/gortsplib
synced 2025-09-27 19:42:11 +08:00
add sample credentials to client examples (#696)
This commit is contained in:
@@ -71,7 +71,7 @@ func main() {
|
||||
|
||||
// connect to the server, announce the format and start recording
|
||||
c := gortsplib.Client{}
|
||||
err = c.StartRecording("rtsp://localhost:8554/mystream", desc)
|
||||
err = c.StartRecording("rtsp://myuser:mypass@localhost:8554/mystream", desc)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user