Skip navigation
Currently Being Moderated

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

Aug 27, 2013 5:26 AM

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

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points