PDA

View Full Version : JW Player


skooby
03-08-2011, 02:34 PM
Has anyone had success getting JW Player working properly in vBulletin 3.x? I don't want to use it with the AME plugin-in. I basically want to just upload mp3 files to my website and embed JW. I went through the instructions and put the SWF code in my headerinclude template, but when I put the SWFObject code into a new post, I just get the "This text will be replaced" (instead of the actual player).

Was hoping someone could offer some insight. Thanks!

--------------- Added 1299604298 at 1299604298 ---------------

Figured it out. Thx!

--------------- Added 1299625858 at 1299625858 ---------------

Actually ran into another problem. The javascript I have in my posts (to embed the JW Player) works fine in Firefox, but not in IE. Was wondering maybe if IE is not liking how vBulletin is displaying the javascript.

http://www.nokturnalist.com/john-digweed-mixes/4339-john-digweed-1998-03-06-live-twilo-new-york.html

The above works fine in Firefox (it displays the player), but it does not work in IE


Here is the javascript:

<SCRIPT type=text/javascript src="http://nokturnalist.com/jwplayer/swfobject.js"></SCRIPT>

<div id='mediaspace'>This text will be replaced</div>

<SCRIPT type=text/javascript>
var so = new SWFObject('http://nokturnalist.com/jwplayer/player.swf','mpl','500','24','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://nokturnalist.com/media/mixes/JohnDigweed/John_Digweed-1998-03-06-Live_At_Twilo.mp3');
so.write('mediaspace');
</SCRIPT>

Xtrigit
03-13-2011, 05:11 AM
If you want to embed the JW player to posts only, create a bbcode instead.

You can then have a mp3 bbcode:
http://----/music/song.mp3

Should work with all major browsers.