Cyclone3 Skin

JW Media Player4

From Cyclone3 Wiki

JW Media Player is an installable Cyclone3 template for playing h264 and flv videos on a webpage. The primary part of this template is JW Media Player based on Flash technology. JW Media Player is originally developed by jeroenwijering.com.

How to install

  • Download package jwmediaplayer4.tar.gz
  • Unpack to directory /www/TOM/_dsgn
  • Load template in one or more service types in the domain service
vim /www/TOM/!example.tld/_type/l_video.pub.type

add line:

 <CONF_VAR id="tpl" value="JW_Media_Player4" />

in design template you can use this piece of code (example):

 <p id='preview'>The player will show in this paragraph</p>
 <script type='text/javascript' src='<$tom::H_media>/tpl/swfobject.js'></script>
 <script type='text/javascript'>
 var s1 = new SWFObject('<$tom::H_media>/tpl/jwmediaplayer4.swf','player','400','300','9');
 s1.addParam('allowfullscreen','true');
 s1.addParam('allowscriptaccess','always');
 s1.addParam('flashvars','file=video.flv');
 s1.write('preview');
 </script>

Image:jwmediaplayer.png