Prev Previous Post   Next Post Next
  #1  
Old 5th April 2012, 21:17
metaversetv metaversetv is offline
Junior Member
 
Join Date: Feb 2010
Posts: 4
Default Player API retrieving viewerCount function Flash

Hi I have spent the last few days making my own player, but I am having issues calling the live viewer count, it is only showing 0 viewers (when i obviously know there are more)

From the documentation:

viewerCount property
viewerCount:int [read-only]

The number of viewers currently watching this Livestream channel.
Implementation
public function get viewerCount():int

Basically I am adding into the readyHandler a variable that stores the viewer count and then input the viewer count into a text box. I know that this process works it will input most other return calls into the box, but it only ever shows 0.

viewernum = lsPlayer.viewerCount;
MenuHov.viewers.text = viewernum;


I am either doing something very wrong or this function does not work any longer? Can anyone provide me with some info on this? I know I can call up the XML file for the channel to get the viewers but would rather not have to parse an XML file everytime the player looks to see how many viewers there are.

Thanks
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump