Would anyone happen to know how to utilize the JW player (http://www.longtailvideo.com/players/jw-flv-player/), in drupal without installing the flash video module(it takes over the file variable so you can't use it)?

Comments

devenderdagar’s picture

You can choose either way depending on which one you are comfortable with and you don't need flash video module as you have to copy some other files with JW Player. you have to copy those files under some directory and then have to set correct url. I hope this can help you, it still struggling let me know.

Cheers

highvoltage’s picture

Well... this is what I've tried so far with no success.

I download their FLV player and unrar all the files into a folder in my root directory called "jw". I go to the setup wizard on their website(http://www.longtailvideo.com/support/jw-player-setup-wizard?example=5) and get some test code and put it into a CCK text field on my site which is set to full html.

The test code for displaying a youtube video I used:

<script type='text/javascript' src='jw/swfobject.js'></script>

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

<script type='text/javascript'>
  var so = new SWFObject('player.swf','ply','470','320','9','#ffffff');
  so.addParam('allowfullscreen','true');
  so.addParam('allowscriptaccess','always');
  so.addParam('wmode','opaque');
  so.addVariable('file','http://www.youtube.com/watch%3Fv%3DIBTE-RoMsvw');
  so.write('mediaspace');
</script>

Nothing appears after viewing the saved node.

Stuart Greenfield’s picture

You might want to investigate SWF Tools which provides support for the JW Player. It takes care of the code for you, and you can embed content either using an input filter, or by calling its swf() function from a template.

highvoltage’s picture

Thanks stuart, it looks promosing as it alows for the file variable which the flash video module i tried before did not.