Get This    Configuration    Examples


Actions with the interacter plugin

First, the principal aim of this plugin is to rate videos by clicking on the stars. This action call the javascript function interacter_rate(mem_id, vid_id, rat_mem_id) which return the member ID, the video ID and the rate given by the member.

Then, we can see the average rate of the video and, when overflying, the total number of rates.

The next icon is the number of comments. If the member clicks over, the javascript function interacter_comment(vid_id, mem_id) is called and return the member ID and the video ID.

The pushpin icon represents the bookmarks. If pushpin is pressed, the video become one of the member's bookmarks. If the member clicks over the pushpin pressed, the javascript function interacter_bookmark_remove(mem_id, vid_id) is called to remove the bookmark with member ID and video ID. Same thing to add to bookmarks with this function : interacter_bookmark_add(mem_id, vid_id).

Then, the report button allows to flag a video if it contains illegal content. By clicking, the javascript function interacter_flag(mem_id, vid_id, position) is called and return the member ID, video ID and the position of the video when the member clicks.

The last icon allows to share the video with a direct link. By clicking, the video's link appears and the user can copy/paste it or click the button at the right to copy it to the clipboard.

Flashvars

Flashvar : interacter.avg

Average rate of the video. Example : 'interacter.avg':3.6.

Flashvar : interacter.bookmark

If the video is in the member's bookmark, this boolean is set to 1. The default is 0. Example : 'interacter.bookmark':1.

Flashvar : interacter.mem_id

Member ID. If set to 0, options are disabled. Example : 'interacter.mem_id':23.

Flashvar : interacter.vid_id

Video ID. Your unique ID for the video (alphanum) Example : 'interacter.avg':'video.flv'.

Flashvar : interacter.url

Begin of the website url. It's completed after by the video ID to generate direct links. Example : 'interacter.url':'http://www.longtailvideo.com/v?'.

Flashvar : interacter.rat_nb

Number of rates. Example : 'interacter.rat_nb':222.

Flashvar : interacter.com_nb

Number of comments. Example : 'interacter.com_nb':444.

Flashvar : interacter.rat_mem_id

Member's rate for the video. Example : 'interacter.rat_mem_id':4.

Flashvar : interacter.lang_path

Path of the language files. Example : 'interacter.lang_path':'lang/'.

Flashvar : interacter.lan_short

Name of the .txt language file. ".txt" is added in the flash. Example : 'interacter.lan_short':'en'.

Flashvar : interacter.disabled

All the options are disabled when this boolean is set to 1. Example : 'interacter.disabled':0.

Example of language file :

/* This comments appear when user is overflying icons. */
/* en.txt */
bookmark=remove+bookmark
¬Bookmark=add+to+bookmarks
&report=Flag+this+video
&share=Share+this+video
&totalRates1=Averaged+over+&totalRates2=+rate(s)
&totalComs=Show+comments
&coms=Number+of+comments
&btnClipboard=Copy+to+clipboard
&star1=Click+to+rate+1+star
&star2=Click+to+rate+2+stars
&star3=Click+to+rate+3+stars
&star4=Click+to+rate+4+stars
&star5=Click+to+rate+5+stars
&disable=Inactive+on+this+video

Links to language files :
- en.txt
- fr.txt

Sending flashvars without reloading the player

User can send the flashvars he wants using a javascript function : interacter_send_flashvars(infos)

"infos" parameter looks like this for example : {'interacter.avg':1,'interacter.mem_id':1}

It's not necessary to put all the flashvars in this function: only the ones that needs to be changed.

Creative Commons License Interacter plugin for JW FLV Player by Sarl ExcelLance est mis à disposition selon les termes de la licence Creative Commons Paternité-Pas d'Utilisation Commerciale 2.0 France. Les autorisations au-delà du champ de cette licence peuvent être obtenues à http://www.excellance.fr/contact.