mirror of
https://github.com/aler9/gortsplib
synced 2025-09-28 12:02:16 +08:00
add sample credentials to client examples (#696)
This commit is contained in:
@@ -56,7 +56,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