Available Plugins
AgeGate plugin
This is a simple plugin that checks the age of a viewer before showing them a video. The plugin asks the user for their birthdate once, and then checks the viewer's age. The the plugin can check for both a maximum and minimum age, and will accept different age settings for each item in a playlist. Additionally, the plugin stores the users age as a Flash cookie, so users need only input their age once.
This plugin is compatible with version 4.3+ of the player.
Examples
Here is an example of the AgeGate plugin in action. Below is the string of flashvars used:
file=/player/testing/files/bunny.flv&plugins=agegate&agegate.minage=18
Note that the plugin may not display correctly if you set the width of the video window to less than 300px.
Configuration
The plugin is loaded with the flashvar plugins=agegate. This will automatically load the latest version of the plugin straight off our servers. It offers four additional flashvars:
- agegate.minage (18): The minimum age of a viewer.
- agegate.maxage (100): The maximum age of a viewer.
- agegate.message (You do not meet the age criteria for this video.): The message displayed if you do not meet the age criteria.
- agegate.redirecturl (null): The URL of the clickable link that is provided when you do not meet the age criteria. If this is left blank, the 'message' will be displayed, but it will not be clickable.
- agegate.redirecttarget (_blank): The target of the clickable link that is provided when you do not meet the age criteria. Options include "_blank", "_parent", "_self", and "_top".
- agegate.backgroundcolor (0x000000): Color of the curtain that covers the player.
- agegate.textcolor (0xFFFFFF): Color of the text displayed on screen.
- agegate.bordercolor (0xFFFFFF): Color of the submit button border.
- agegate.exitfullscreen_message (Text entry is not supported in fullscreen): Message to display when user attempts to enter data into the 'Year' input box while in fullscreen. This is not supported by Flash for security reasons.
Playlists
AgeGate can also be placed in playlists, by leveraging the JWPlayer namespace. Use the jwplayer:AgeGate element name for this. Here is an example of an RSS feed with one video that contains captions:
<rss version="2.0" xmlns:jwplayer="http://developer.longtailvideo.com/trac/wiki/FlashFormats">
<channel>
<title>Example RSS feed with jwplayer extensions</title>
<item>
<title>FLV Video</title>
<link>http://www.bigbuckbunny.org/</link>
<description>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation.</description>
<enclosure url="../../testing/files/bunny.flv" type="video/x-flv" length="1192846" />
<jwplayer:agegate.minage>18</jwplayer:agegate.minage>
</item>
</channel>
</rss>
Source code
The source code of this plugin can be obtained in a zip (click the zip links at the bottom) or through Subversion:
svn co http://developer.longtailvideo.com/svn/plugins/agegate
If you don't have a Subversion client, check out Tortoise (Windows) or SC Plugin (MAC).
You don't need Adobe Flash to modify this plugin. Instead, you can edit the plugin with any text editor you like. The plugin can be compiled with the free, cross-platform MXMLC compiler. See our plugin compiling overview for more info.
