Jump to content
  • 0

RE: How is hlsViewerCount calculated?

Ray Jender


Last I heard, the hlsViewerCount was broke?






From: ant-media-server@googlegroups.com [mailto:ant-media-server@googlegroups.com] On Behalf Of Mark Sergienko

Sent: Thursday, May 07, 2020 10:28 AM

To: Ant Media Server <ant-media-server@googlegroups.com>

Subject: Re: How is hlsViewerCount calculated?



So apparently this has to do with Cookies (I'm assuming ant media server should set / check a cookie on requests to HLS ts files)


I could not find any reference to where this should be set. 



Please advice


On Monday, 20 April 2020 09:23:33 UTC-4, Mark Sergienko wrote:


This is consistent with what I'm getting.


That is why I'm curious with how HLS Viewer count is calculated in Ant Media





On Monday, 20 April 2020 07:58:56 UTC-4, Ray Jender wrote:


Rest api is broke.  That's how the management page gets the count.



Here is the rest output with only one viewer!



root@AMSC1:/usr/local/antmedia/webapps# curl -X GET "
" | json_pp | grep hls

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100   709  100   709    0     0    98k      0 --:--:-- --:--:-- --:--:--   98k

hlsViewerCount" : 13


On Sunday, April 19, 2020 at 11:56:00 AM UTC-4, Sherin Fathima wrote:


you can use rest api for couting the viewers


On Sunday, April 19, 2020 at 9:20:55 PM UTC+5:30, Mark Sergienko wrote:


It seems like HLS Viewer Count is higher than the actual number of HLS viewers. What is the method it's calculated by?



It shows anywhere from 6 to 14 viewers when there's only one person watching.



Anyone got a formula how to find exact number of viewers?










You received this message because you are subscribed to the Google Groups "Ant Media Server" group.

To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-server+unsubscribe@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/96ca8f79-b21e-4397-9bfe-e1b4e5954a5d%40googlegroups.com.


Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Days

0 answers to this question

Recommended Posts

There have been no answers to this question yet


  • Create New...