Search : in
By :

Traffic counter for Web FLV player

Last answer on Nov 3, 2009 8:55:19 am GMT Shirley1874, on Nov 3, 2009 8:22:17 am GMT 
 Report this message to moderators

Introduction:
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.
http://www.playerdiy.com/images/addons/counter-api1.jpg

The "Traffic Counter API " interface is for choosing a way to get the video data from player
http://www.playerdiy.com/images/addons/counter-api2.jpg

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}&pi={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
Configuration: Windows XP
Firefox 3.5.4

Best answers for « Traffic counter for Web FLV player » in :
Download Socusoft Web Video Player Show Socusoft Web Video Player is a software which allows you to add videos to your web site. The software is very easy to use because it is equipped with a very user-friendly interface and a wizard to guide you. You can add video files, select among...
Playing music on your website ShowPlaying music on your website Introduction Dewplayer XSPF Web Music Player Zanorg Radio MyFlashFetish Introduction If you are searching for a simple and lightweight solution to enable music on your website independent from web...
[Apache]Monitoring web traffic in real-time Show[Apache]Monitoring web traffic in real-time There are tool endemic to Apache web server allowing a real-time analysis of the web traffic: Log files can be used by specialized software to develop a comprehensive and complete analysis of...
Flash Player for Nokia Symbian Phones ShowFlash Player for Nokia Symbian Phones Issue Solution Issue You are trying to view web videos on your nokia phone and flash player is required. You are looking everywhere for a compatible flash player for your phone but in...
Download GLM FLV Player ShowGodLikeMouse Flash Video Player or GLM is a FLV file player. The videos are in Flash format that are common on the sites of distribution of video streaming. Advantage A reading optimized with respect for the proportions of the dimensions on the...
Measuring Website Traffic ShowMeasuring and Qualifying Website Traffic Every webmaster's goal is to increase traffic to his or her website, i.e. increase the number of visits everyday. Therefore, it is essential to have indicators that, on the one hand, facilitate the...
Web server attacks ShowVulnerability of web services The first network attacks exploited vulnerabilities related to the implementation of TCP/IP protocol suites. With the gradual correction of these vulnerabilities, attacks have shifted to application layers and...
Web - Introduction to the World Wide Web ShowIntroduction to the World Wide Web The "Web", short for "World Wide Web" (which gives us the acronym www), is the name for one of the ways that the Internet lets people browse documents connected by hypertext links. The concept of the Web was...

1

 iveal, on Nov 3, 2009 8:55:19 am GMT

Hi there,

Thanks for information.

Reply to iveal