Home > Back-end >  Use the live555 testRTSPClient, open flow, don't get the data
Use the live555 testRTSPClient, open flow, don't get the data

Time:09-30

After transplanted live555 into haisi arm platform, live555 testRTSPClient, open flow RTSP://usr: passwd @ IP: port/Streaming/1

Stop at the
ContinueAfterPLAY
[URL: "RTSP://usr: passwd @ IP: port/Streaming/1"] : Started playing session...

Don't get audio and video data

Using VLC broadcast address of this flow is normal

O teach

CodePudding user response:

With VLC log to do comparison, find out the reason of the problem

Live555 testRTSPClient, default to the url of the user name password for processing, when openURL sendDescribeCommand take permission information

As for how to add, but also in the study, have treated friend trouble reply

CodePudding user response:

At the time of call sendDescribeCommand can join the authentication information
The Authenticator * pAuthenicator=NULL;

if (! StrUserName. Empty () & amp; & ! StrPassword. Empty ())
{
PAuthenicator=new Authenticator (strUserName c_str (), strPassword. C_str ());
}

PRtspClient - & gt; SendDescribeCommand (continueAfterDESCRIBE pAuthenicator);

If (pAuthenicator!=NULL)
{
The delete pAuthenicator;
}
  • Related