將live555移植到海思arm平臺后,live555的testRTSPClient,打開流rtsp://usr:passwd@ip:port/Streaming/1
停在
continueAfterPLAY
[URL:"rtsp://usr:passwd@ip:port/Streaming/1"]: Started playing session...
收不到音視頻資料
使用vlc播放這個流地址是正常的
求指教
uj5u.com熱心網友回復:
跟vlc的log做了對比,找到了問題原因live555的testRTSPClient內,默認未對url的用戶名密碼做處理,在openURL時,sendDescribeCommand要帶權限資訊
至于怎么加,還在研究中,有處理過的朋友麻煩回復下
uj5u.com熱心網友回復:
在呼叫sendDescribeCommand的時候可以加入鑒權資訊Authenticator *pAuthenicator = NULL;
if (!strUserName.empty() && !strPassword.empty())
{
pAuthenicator = new Authenticator(strUserName.c_str(), strPassword.c_str());
}
pRtspClient->sendDescribeCommand(continueAfterDESCRIBE, pAuthenicator);
if (pAuthenicator != NULL)
{
delete pAuthenicator;
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/97372.html
標籤:C語言
上一篇:運行程式時NTL報語法錯誤
下一篇:以指標作為函式引數進行呼叫
