Issue with Camera Connection in Milestone WebRTC Sample

Hi everyone,

I’m testing the Milestone WebRTC sample from GitHub and am having issues connecting to the camera. The connection seems to establish initially but then disconnects shortly after. Below are the logs from the diagnostic output:

Diagnostics log

Signaling state: have-remote-offer

Signaling state: stable

ICE gathering state: gathering

ICE connection state: checking

Connection state: connecting

ICE connection state: connected

ICE gathering state: complete

Connection state: connected

Establishing connection time: 2690 ms

ICE connection state: disconnected

Connection state: disconnected

Connection state: failed

The first idea is to check whether the camera is using h.264. Other codecs cannot be used. (Will be in future versions.) Either the camera cannot give h264 or isn’t configured to do so.

Verify that the camera streams if you test with Smart Client and that the setup is h.264.

If that is not it, please, as next step, see if the log at “[C:\ProgramData\Milestone\XProtect](file:C:/ProgramData/Milestone/XProtect) API Gateway\Logs\gateway.log” includes some information that might pertain to this.

If this doesn’t solve it, please include some information about the XProtect product and version, and some information about camera (make, model, firmware version). Also, are you using the newest version of the sample? - https://github.com/milestonesys