Documentation
IPS_GetActiveWebRTCConnections
int IPS_GetActiveWebRTCConnections ()
Returns
Number of open WebRTC sessions of the VideoServer
Description
This function is intended for internal use only and may change or be removed at any time without notice.
The function returns the number of WebRTC sessions of the VideoServer which have not been closed yet. WebRTC is used, for example, to transfer media streams of cameras or door intercoms to the visualization.
If the VideoServer is not running, the function fails with "VideoServer is not available!". On systems without VideoServer, it fails with "VideoServer is not available for this build!".
Proxied MJPEG and RTSP streams are returned by IPS_GetActiveProxyConnections.
Example
echo "Open WebRTC sessions: " . IPS_GetActiveWebRTCConnections();
/* e.g. returns:
Open WebRTC sessions: 1
*/