簡體   English   中英

如何使用 gstreamer 在客戶端指定 rtsp 身份驗證憑據?

[英]How to specify rtsp authentication credentials on client side with gstreamer?

gstreamer RTSP 服務器支持基本的用戶名密碼認證( 示例)。 在客戶端, gstreamer playbin 元素支持從 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

編輯:哦playbin ..

它不接受來自 URI 的用戶和密碼嗎? 例如:

playbin uri=rtsp://user:password@ip.address/stream

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM