Traffic counter for Web FLV player
Want to make a post? LOG ON » with your free my town account or SIGN UP NOW » (Takes less than 60 seconds)
Want to make a post? LOG ON » with your free my town account or SIGN UP NOW » (Takes less than 60 seconds)
Search the entire site
Latest posts
Predators trailer now on line.... KICK ASS!!! »
Mar 20, 2010 - CDT 5:01 PM
Best Buy WILL MILK YOU for whatever Bull$h!t they'll want you to believe... »
Mar 20, 2010 - CDT 4:39 PM
So here it is... Your TOP 10 most ORIGINAL movies. »
Mar 20, 2010 - CDT 3:54 PM
DOLAN'S CADILLAC rolls out on April 6 for home audiences »
Mar 19, 2010 - CDT 11:12 AM
Free Shipping offered at CHCanada.com »
Mar 19, 2010 - CDT 9:11 AM
New 'Shrek Forever After' Trailer »
Mar 19, 2010 - CDT 8:53 AM
AVATAR confirmed for April 22nd on DVD and Blu-ray »
Mar 19, 2010 - CDT 8:45 AM
'Hobbit' to begin shooting in July »
Mar 18, 2010 - CDT 7:52 PM
THE PACIFIC coming to Blu-ray and DVD later this year »
Mar 18, 2010 - CDT 1:42 PM
"OZ" the next Harry Potter!!! »
Mar 18, 2010 - CDT 8:10 AM
Local Blockbuster Closing »
Mar 17, 2010 - CDT 1:31 PM
Rumor of a XBOX 360 Slim - Again »
Mar 17, 2010 - CDT 8:45 AM
3D TV is a Gimmick »
Mar 17, 2010 - CDT 7:13 AM
Hey DVDTOWN staff »
Mar 16, 2010 - CDT 4:25 PM
Get a Blu-ray player for just $79.99 »
Mar 16, 2010 - CDT 1:35 PM
Down-streaming: Netflix and the Roku Box »
Mar 15, 2010 - CDT 11:46 PM
GOD OF WAR 3! »
Mar 15, 2010 - CDT 8:49 AM
New FORD Motors Ad from SNL »
Mar 14, 2010 - CDT 4:29 PM
Anyone Watching 'Green Zone' This Weekend? »
Mar 14, 2010 - CDT 10:56 AM
R.I.P. Corey Haim »
Mar 14, 2010 - CDT 10:32 AM
RSS feed with latest message board posts »
Message Board Archive »

stephenz
December 2008
My links
View profile »Traffic Counter API with Moyea Web Player provides easy-to-use ways to enable its users to count and display how many times a video has been viewed, and let viewers know how popular the video is.
About Moyea Web Player:
Moyea Web Player on playerdiy.com is a Flash video player creator. With it, you can easily make customized Web FLV player with playlist and full screen features for website.
Where Traffic Counter API appears:
After install this plugin, it will appears on the following interface of Moyea Web Player.
The "Traffic Counter API " interface is for choosing a way to get the video data from player
This Traffic Counter API provides two options to get data of video from flash video player: 1. Via JS API 2. Via URL
If choose to get video data via JS API on the above interface, the API is:
<script>
function mwplayer_counter_callback_func(idx, caption, path, playerid, date) {
alert(idx+'\n'+caption+'\n'+path+'\n'+playerid+'\n'+date)
}
</script>
If choose to get video data via URL, the API is:
http://yourdomain.com/webpage?i={index}&c={caption}&p={path}π={playerid}&pu={playerurl}&d={date}
Note: To get video data via URL, besides need to build a webpage (e.g.: counter.php) to get the data, but also need to build a page named crossdomain.xml and put it in the same directory with the webpage (e.g.: counter.php)
The content of crossdomain.xml as below:
<?xml version="1.0" ?>
<cross-domain-policy>
<allow-access-fromdomain="*" />
</cross-domain-policy>
Term interpretations:
* idx and index indicate the video ID in the player
* caption indicates the video name.
* path indicates the path to the video file.
* playerid indicates the player ID
* playerurl indicates the path to the player
* date indicates on which day the video was played
Tutorials about making the traffic counter build relationship with flash video player in different situations:
Situation 1: You don’t have a flash video player, and you need to customize one with Moyea Web Player. In this situation, to build the relationship, you just need to check an option (JS API or URL) and click the “Submit” button on the “Traffic Counter API” interface.
Situation 2: You already have a flash video player customized with Moyea Web Player. To build the relationship in this situation, you need to put a folder named “plus” (contains a plugin file counter.swf) and a file addonslist.xml in the same folder with the player files.
The “plus” folder with counter.swf and the addonslist.xml file can be easily generated with Moyea Web Player. About this, please refer to situation 1
[Post edited by stephenz on Nov 26, 2009 - CST 1:08 AM]