#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
  #2  
Old 7th April 2012, 15:32
ernielive's Avatar
ernielive ernielive is offline
Livestream Producer Support
 
Join Date: Oct 2011
Posts: 1,503
Default

metaversetv,

Could you provide a link to the site where your created player is embedded?
__________________
Ernie
Livestream Support
Reply With Quote
  #3  
Old 8th April 2012, 13:15
metaversetv metaversetv is offline
Junior Member
 
Join Date: Feb 2010
Posts: 4
Default

Hi Ernie,

http://metaversetv.com/live/

Currently I have used a work around to retrieve the view count and original live status of the channel by importing via XML. I couldn't get the flash viewerCount property to work nor the isLive status. I can receive the onLive event itself, so that with the original status from the XML file to have the live status behave appropriately.

The work around seems to work perfectly fine, but I am also teaching myself flash and actionscript in the process so if I am doing something wrong or if those functions are invalid I would love to know.

Thanks.
Reply With Quote
  #4  
Old 12th July 2013, 17:19
nomansaleh nomansaleh is offline
Junior Member
 
Join Date: Jul 2013
Posts: 14
Default

As for as the API fixing services are concerned, i think the best service providers out there are http://thecustomconfigshop.com/, they have outstanding experts in this regard and solve the problem in matter of times, you should have a look
Reply With Quote
Reply

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