The url in the rtsp setup header of the axis device cannot take parameters

background

I used to be a video surveillance client for many years. For a while, I connected to Dahua, Hikvision, axis, Yichuan and other SDKs, and used them in our own surveillance system.
The axis camera is the most expensive camera and the earliest connected device. It is able to communicate using http, rtsp and custom protocol axrt, and it supports IPV6 very early, which is its advantage.


There is a small problem recorded when using it.

 

When using the axis server to find the setup header, the url must be put? Subsequent parameters can only be passed if they are canceled. That is to say, the message header cannot carry parameters, which may be a special case of that device.

Compared


The successful news is that
   

 

The message that cannot succeed is
 
    
the processing method

 

    StrPtrLen fReqURI;
    StringParser theParser(&fURL);
    theParser.ConsumeUntil(&fReqURI, '?');
    fReqURI.Ptr = fReqURI.GetAsCString();
    char endChar = fReqURI.Ptr[fReqURI.Len];
    fReqURI.Ptr[fReqURI.Len] = '\0';

Guess you like

Origin blog.csdn.net/lgs790709/article/details/125485553