I apologize for the delayed response.
We are developing a browser feature utilizing WebRTC, referring to the sample.
In this context, we are currently testing the behavior of WebRTC session disconnection by setting various values for ClientTokenTimeoutMinutes.
I have three questions regarding this.
1. Procedure for Changing the ClientTokenTimeoutMinutes Value
Please let me know the official procedure to apply changes when modifying the ClientTokenTimeoutMinutes value.
At present, I am restarting all Milestone services, but is this sufficient?
2. How to Confirm Disconnection When ClientTokenTimeoutMinutes Is Exceeded (WebRTC Session Disconnection)
If the access token is not refreshed via the refresh token and the WebRTC session is not updated, and the ClientTokenTimeoutMinutes value is exceeded,
the video display via WebRTC stops. However, sometimes the WebRTC session is explicitly disconnected (as in the example log output below), and sometimes it is not.
[C:\ProgramData\Milestone\XProtect](file:C:/ProgramData/Milestone/XProtect) API Gateway\Logs\gateway.log
2025-07-19 08:02:03.755+09:00 [ 79] DEBUG - IceConnectionStateChanged sessionId: 67b3961f-1363-4284-823c-01aeea5b3a15, disconnected
2025-07-19 08:02:03.755+09:00 [ 79] DEBUG - ConnectionStateChange sessionId: 67b3961f-1363-4284-823c-01aeea5b3a15, disconnected
2025-07-19 08:02:03.755+09:00 [ 79] DEBUG - Video source stopped
2025-07-19 08:02:03.755+09:00 [ 79] DEBUG - Closing session: 67b3961f-1363-4284-823c-01aeea5b3a15
2025-07-19 08:02:03.768+09:00 [ 79] DEBUG - ConnectionStateChange sessionId: 67b3961f-1363-4284-823c-01aeea5b3a15, closed
2025-07-19 08:02:03.768+09:00 [ 79] DEBUG - Closing session: 67b3961f-1363-4284-823c-01aeea5b3a15
2025-07-19 08:02:03.768+09:00 [ 79] DEBUG - Removed session: 67b3961f-1363-4284-823c-01aeea5b3a15
2025-07-19 08:02:03.768+09:00 [ 79] DEBUG - Removed session: 67b3961f-1363-4284-823c-01aeea5b3a15
Could you explain why there is a difference, and whether this is by design?
3. How to Confirm When ClientTokenTimeoutMinutes Is Exceeded (Other Logs)
Regardless of whether the WebRTC session is explicitly disconnected or not, I have found that the following logs are output.
I understand that these logs are output because the WebRTC session has been disconnected—is this correct?
[C:\ProgramData\Milestone\MIPSDK\MIP20250723.log](file:C:/ProgramData/Milestone/MIPSDK/MIP20250723.log)
2025-07-23 17:43:32.814 Error: BaseLiveSource:PollThread ():Error reading from stream!
[C:\ProgramData\Milestone\XProtect](file:C:/ProgramData/Milestone/XProtect) Recording Server\Logs\SecurityTokenHandler.log
2025-07-23 17:43:32.812+09:00 [ 34] WARNING - Token verify failed: Expired
2025-07-23 17:43:35.841+09:00 [ 284] WARNING - Token verify failed: Expired
2025-07-23 17:43:38.882+09:00 [ 131] WARNING - Token verify failed: Expired
Best Regards.