New York Design & Development Forums  

Go Back   New York Design & Development Forums > Knowledge Bank > Tutorials
Connect with Facebook

Notices

Reply
 
LinkBack Thread Tools
Old 11-03-2009, 03:47 AM   #1 (permalink)
Junior Member
Newb
 
stephenz's Avatar
 
Join Date: Jun 2009
Posts: 5
stephenz is on a distinguished road
Default Traffic counter for Web FLV player

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.


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:

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]
http://yourdomain.com/webpage?i={index}&c={caption}&p={path}&pi={playeri d}&pu={playerurl}&d={date}
[code]

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

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
stephenz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
Old 02-16-2010, 11:32 AM   #2 (permalink)
Moderator
Aficionado
 
iughk's Avatar
 
Join Date: Feb 2006
Posts: 123
iughk is on a distinguished road
Default Re: Traffic counter for Web FLV player

this is spam for sure, but it is useful, so we'll allow it
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
iughk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Google Adsense to Web FLV player FlashTech Search Engine Optimization and Marketing 1 06-17-2010 03:34 AM
44 ways to customize the skin and playback options of web FLV player stephenz Multimedia Development 1 05-07-2010 10:02 PM
Make a Xmas-style FLV player to render Christmas ambience stephenz Tutorials 0 12-23-2009 01:46 AM


All times are GMT -4. The time now is 04:13 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13