Skip to main content
Known Participant
August 27, 2013
Question

Example of how to show number of users watching an event/application.

  • August 27, 2013
  • 1 reply
  • 706 views

Is there some example code of how to display the number of users currently watching a live event?

I've tried using the admin api methods getUsers, etc... But it only returns one client connection which is my encoder connected pushing the live stream to the server. It nevers seems to return any client/user connections. Is this because the client is connecting via http instead of rtmp?

my code snippet to view the stream. Show I change the protocol to RTMP?

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="512"  height="288" align="middle">

<param name="movie" value="StrobeMediaPlayback.swf"></param>

<param name="FlashVars" value="src=http://fms.dave.net/livesports.f4m&poster=posters/poster.jpg&autoPlay=false&playButtonOverlay=true"></param>

<param name="allowFullScreen" value="true"></param>

<param name="allowscriptaccess" value="always"></param>

<embed src="StrobeMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"width="512" height="288"

  FlashVars="src=http://fms.dave.net/livesports.f4m&poster=posters/poster.jpg&autoPlay=false&playButtonOverlay=true">

</embed>

</object>

Thanks,

Dave

    This topic has been closed for replies.

    1 reply

    Petro_O__Bochan
    Inspiring
    August 27, 2013

    Hello, yes, this is because it's an http stream. Check this out - http://forums.adobe.com/message/5266859