Thanks for your answer, but I already know this method and I can't access the API atm. Are there any methods in the Web SDK (js) that we use to create sessions and streams that archive the same result?Good day.
You can get current streams viewers count from statistics pagehttp://wcs:8081/?action=stat¶ms=streams_viewers&format=jsonby HTTP GET query using fetch API or XHR.
No, we do not allow any data receiving about stream subscribers on client side due to security reason.Are there any methods in the Web SDK (js) that we use to create sessions and streams that archive the same result?
http://wcs:8081/?action=stat¶ms=streams_viewers&format=json once per second to collect an actual state, then implement your own websocket API to pass the state to the publishing client.