Cannot initiate WebRTC session against camera using the sample app

We have configured your sample “WebRTC_JavaScript” app on the same IIS server but in another website and also configured CORS to allow all access. We can access the camera using its separate webUI so we know it is working.

We have provided info according to the index.html page with gateway url, cameraid, username and password.

We have this license (XProtect Essential+ 2024 R1) and receive this license error:

main.js:155

POST [https://XXX/api/REST/v1/WebRTC/Session](https://XXX/api/REST/v1/WebRTC/Session) 400 (Bad Request)

initiateWebRTCSession @ main.js:155

start @ main.js:75

await in start

onclick @ (index):69

main.js:186 Failed to initiate WebRTC session - Error: One or more errors occurred.

(GET Unexpected statuscode BadRequest in ‘https://XXX.omnicom.secsys/API/rest/v1/cameras/XXXguid/privacyProtections?definitions&tasks&resources&disabled

- The feature is not licensed.)VideoOS.Platform.RestApiMIPException: GET Unexpected statuscode BadRequest in ‘https://XXX.omnicom.secsys/API/rest/v1/cameras/xxxguid/privacyProtections?definitions&tasks&resources&disabled

- The feature is not licensed.

at VideoOS.Platform.Proxy.RestApi.RestApiClient.GetRequest(String url)

Can you point us in the right direction what the reason might be?

This is a known issue recently discovered. You see this issue in XProtect Essential+ but not in the other variants of XProtect. The issue is because XProtect Essential+ does not support privacy masking and mistakenly the Rest API probes the XProtect VMS in a way that fails when detecting whether privacy masking has been applied on the camera.

The issue will be solved in 2024R2. (Expected to release November 7).

More information about the XProtect product variants and their capabilities - https://www.milestonesys.com/products/software/xprotect-comparison/