AVS JW Player integration mod
Hi,
Seems like the jw player is very popular among AVS users. Here’s is a simple howto on how to integrate the JW Player with Adult Video Script (removing the AVS flash player).
Download the JW Player from http://www.longtailvideo.com/players/jw-flv-player/ and upload the contents of the archive to /WHERE/AVS/IS/INSTALLED/jw (create this directory if necesary).
Create the following file /WHERE/AVS/IS/INSTALLED/templates/frontend/CURRENTLY-USED-TEMPLATE/video_jw.tpl and
add these linese:
<script type='text/javascript' src="{$relative}/jw/swfobject.js"></script>
<script type='text/javascript'>
var s1 = new SWFObject('{$relative}/jw/player.swf','player','630','500','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addVariable('autostart','true');
s1.addVariable('bufferlength', '3');
s1.addVariable('file', '{$baseurl}/media/videos/flv/{$video.VID}.flv');
s1.addVariable('id', 'player');
s1.addVariable("stretching", "uniform");
s1.write('player');
</script>
Edit /WHERE/AVS/IS/INSTALLED/tempaltes/frontend/CURRENTLY-USED-TEMPLATE/video.tpl and
replace following line:
{include file='video_vplayer.tpl'}
with:
{include file='video_jw.tpl'}
This integration ads the JW Player to AVS without any special plugins (basically just the player, no plugins, no ads). The JW player can be also configured to work with lighttpd on AVS but i’ll let this be the text for another howto…