如何使用 gstreamer 在客户端指定 rtsp 身份验证凭据?
How to specify rtsp authentication credentials on client side with gstreamer?
gstreamer RTSP server supports basic username-password authentication (example). On the client side, the gstreamer playbin element 支持从 RTSP 服务器播放,如下所示:
playbin uri=rtsp://127.0.0.1:554/test
有没有办法在连接到流时在客户端指定凭据(用户名和密码)?
来自gst-inspect-1.0 rtspsrc
:
user-id : RTSP location URI user id for authentication
flags: readable, writable
String. Default: null
user-pw : RTSP location URI user password for authentication
flags: readable, writable
String. Default: null
编辑:
哦游戏箱..
它不接受来自 URI 的用户名和密码吗?例如:
playbin uri=rtsp://user:password@ip.address/stream
gstreamer RTSP server supports basic username-password authentication (example). On the client side, the gstreamer playbin element 支持从 RTSP 服务器播放,如下所示:
playbin uri=rtsp://127.0.0.1:554/test
有没有办法在连接到流时在客户端指定凭据(用户名和密码)?
来自gst-inspect-1.0 rtspsrc
:
user-id : RTSP location URI user id for authentication
flags: readable, writable
String. Default: null
user-pw : RTSP location URI user password for authentication
flags: readable, writable
String. Default: null
编辑: 哦游戏箱..
它不接受来自 URI 的用户名和密码吗?例如:
playbin uri=rtsp://user:password@ip.address/stream