mirror of
https://github.com/aler9/gortsplib
synced 2025-09-27 11:32:08 +08:00
add sample credentials to client examples (#696)
This commit is contained in:
@@ -48,7 +48,7 @@ func main() {
|
||||
|
||||
// connect to the server 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