Ðăng Nhập

View Full Version : JW video player



PhucSD
07-06-2011, 10:51 PM
this is the first time i post a mod so... i hope it is good :-)

JW Player (http://www.longtailvideo.com/players/jw-flv-player/)™ Overview

The JW Player™ (http://www.longtailvideo.com/players/jw-flv-player/) is the Internet's most popular and flexible media player. It supports playback of any format the Adobe Flash Player can handle (FLV, H.264, MP4, MP3, AAC, JPG, PNG and GIF). It also supports various streaming and playlist formats (including RMTP, HTTP, live streaming and more), a wide range of flashvar settings and an extensive JavaScript API.

The XML-based skinning functionality allows you to completely customize its look and its plugin architecture allows you to easily extend the player with features such as sharing, recommendations, searching, analytics and ad serving.

Installation :
1) Download attachment
2) Unzip
3) Upload to forum root
4) Add-in Custom BBCode
5) Done

Titel : JW Player:Video Player

Tag : JW

Replacement :


<script type='text/javascript' src='/video/swfobject.js'></script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
var so = new SWFObject('/video/player.swf','mpl','470','320','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','{param}');
so.addVariable('backcolor','CCCCFF');
so.addVariable('frontcolor','000000');
so.addVariable('lightcolor','000000');
so.addVariable('screencolor','000000');
so.write('mediaspace');
</script>

Example : http://www.yourdomain.com/video/video.flv
Description : JW Player:Video Player
Use {option}: No
Button Image (Optional) : http://icons3.iconfinder.netdna-cdn....o-x-ms-wmv.png (http://icons3.iconfinder.netdna-cdn.com/data/icons/UltimateGnome/24x24/mimetypes/video-x-ms-wmv.png)
Remove Tag If Empty: No
Disable BB Code Within This BB Code : No
Disable Smilies Within This BB Code : no
Disable Word Wrapping Within This BB Code : No

to use this as a widget do the next steps:
Go to admincp->vbulletin CMS->Widgets->Create new widget
Widget type : static HTML
Title : Player
after doing this press configure and add this code remember to change this line http://www.your-domain-name.com/video/video.mp4 and you can change the size of the player by changing this numbers '215','157'




<script type='text/javascript' src='/video/swfobject.js'></script>
<p id='preview'>The player will show in this paragraph</p>
<script type='text/javascript'>
var so = new SWFObject('/video/player.swf','player','215','157','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('flashvars','file=http://www.your-domain-name.com/video/video.mp4');
so.write('preview');
</script>


http://s3.amazonaws.com/ember/fYzh0MlwnH5TZ1nQhrIBcOxxal54ufZn_m.pnghttp://s3.amazonaws.com/ember/lLpWEPqNEzmoyfvh9Wy8K53igFLvvokG_m.png