CDROM-Guide forums

Go Back   CDROM-Guide forums > Main Forums > VideoCD
FAQ Calendar Mark Forums Read
Open   CSec   Data   DevDrv   CoOp   Audio   CDRW   CDG   VCD   DVD   HD DVD   Mac   VGB   PS2   DC   Xbox  


 
 
Thread Tools Display Modes
  #1  
Old Mar 08, 2010, 02:40 AM
stephenz stephenz is offline
Junior Member
 
Join Date: Sep 2009
Posts: 24
Default Traffic counter for Web FLV player on website

sponsored links

 
Traffic counter for Web FLV player on website

[b]Introduction:[/b]
[url=***********.playerdiy.com/configuration/addons/counter.html]Traffic Counter API with [url=***********.playerdiy.com/]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.

[b]About Moyea Web Player:[/b]
Moyea Web Player is a Flash video player creator. With it, you can easily make customized Web [url=***********.playerdiy.com/]FLV player with playlist and full screen features for website.

[b]Where Traffic Counter API appears:[/b]
After install this plugin, it will appears on the following interface of Moyea Web Player.
[img]***********.playerdiy.com/images/addons/counter-api1.jpg[/img]

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

[b]This Traffic Counter API provides two options to get data of video from [url=***********.playerdiy.com/]Flash video player: 1. Via JS API; 2. Via URL[/b]

If choose to get video data via JS API on the above interface, the API is:

Code:
<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:

Code:
********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:

Code:
<?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

[b]Tutorials about making the traffic counter build relationship with flash video player in different situations:[/b]

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
 

Tags
flash video player

Thread Tools
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Broadcast RTMP video streaming with flash video player on website stephenz VideoCD 0 Feb 27, 2010 01:54 AM
Introduction about how to add Google Adsense to flash video player on website stephenz VideoCD 0 Feb 26, 2010 01:36 AM
How to Convert FLV to 3GP for Mac? jimmy6280 HD-DVD & Blue-Ray 0 Jan 03, 2010 09:16 PM
HD Button Plugin for customizing HD FLV Player stephenz HD-DVD & Blue-Ray 0 Dec 29, 2009 12:44 AM
How to convert FLV to video files with watermark? Micky1020 VideoCD 6 Feb 25, 2008 11:12 AM


All times are GMT -5. The time now is 11:10 PM.



Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 1996-2009 CDROM-Guide.com. All rights reserved