Skip to main content
Known Participant
Aug 27, 2013 12:26 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Petro_O__Bochan
    Inspiring
    Aug 27, 2013 4:54 PM UTC

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

    Translate