Camera in xprotect via the APIs for WebRTC

Hi Team

Greetings.

I tried connecting the camera in xprotect via the APIs for WebRTC to the browser

https://doc.developer.milestonesys.com/mipvmsapi/api/webrtc-rest/v1/

But I see some configuration are required to enable STUN and TURN entries I am able to create the webrtc session but it does not return me ICE servers please check the loom video I shared below.

Loom video:

https://www.loom.com/share/0b2fa93b654543f3b05c4f367f5ca93c

I followed this document it clearing gives the steps to what is to be done but I don’t get the ice servers when the session is created and when trying to send ice candidates they are rejected by the server.

Introduction to WebRTC support in XProtect

KR

Bhuvan Shetty

I know that the official WebRTC sample has fields for STUN and TURN.
If you test with the sample do you see the same issues? If not, maybe the sample can be an inspiration for your code.

WebRTC - JavaScript client sample documentation and sample source code.