Adding support for media players

Media player modules are added in much the same way as adding support for embedding methods. You download the required support files from the appropriate website, add them to a sub-directory under modules/swftools/shared, and then activate the appropriate SWF Tools module to enable it.

The media player modules let you add support for flash based mp3 players, flv players and image rotators. Some players just support playback of one file, while others support playlists of several files, or even mixed types.

SWF Tools comes with support for players as listed in the table below. The table provides a link to where you can obtain the support files, and shows where to install the files to.

Note: The table below describes only the SWF Tools 3.x locations. For 2.x and earlier versions, replace sites/all/libraries with the sites/all/modules/swftools/shared as per the note above.

3.x and later

Player Download it from Install it to
1 Pixel out http://downloads.wordpress.org/plugin/audio-player.1.2.3.zip sites/all/libraries/audio-player/audio-player/player.swf
FlowPlayer 2 http://www.tucows.com/download.html?software_id=519713&t=2 sites/all/libraries/flowplayer/FlowPlayerClassic.swf
Flowplayer 3 http://flowplayer.org/download sites/all/libraries/flowplayer3/flowplayer-3.x.x.swf
JW Image Rotator 3 http://www.longtailvideo.com/players/jw-image-rotator/ sites/all/libraries/imagerotator/imagerotator.swf
JW Media Player 4 http://www.longtailvideo.com/players/jw-flv-player/ sites/all/libraries/mediaplayer4/player-viral.swf
JW Media Player 5 http://www.longtailvideo.com/players/jw-flv-player/ sites/all/libraries/mediaplayer-5/player.swf
Simple Viewer http://www.airtightinteractive.com/simpleviewer sites/all/libraries/simpleviewer/simpleviewer.swf

Additional notes about Flowplayer 3:

  • Flowplayer 3 will extract to a flowplayer directory by default, but you need to rename this to flowplayer3.
  • You need to install all three files if you wish to support streaming video (the rtmp plugin) and audio playback (the audio plugin). Place the plugin files inside your flowplayer3 directory at the same level as the main player (flowplayer-3.x.x.swf).
  • You also need to tell the FlowPlayer 3 module what the player filename is, as this changes with each FlowPlayer release. You enter this at Administer > Site configuration > SWF Tools > FlowPlayer 3 (admin/settings/swftools/flowplayer3), under the Player and plugin files
    section.

Comments

GreenSkunk’s picture

This is what I just did to display a 1 Pixel Out player, now known as the WordPress Audio Player?
Do not enable 1 Pixel Out for the SWF Tools 6.x.3.x module. Enable the SWF Tools Wordpress Audio module

  1. Download WordPress Audio Player version 2 from http://wordpress.org/extend/plugins/audio-player/
  2. Unzip audio-player.2.x.x.x.zip to sites/all/libraries
  3. Move the contents of sites/all/libraries/audio-player/assets to sites/all/libraries/audio-player/
  4. On your Drupal site you may want to create an SWF Tools Profile (preset). Go to Site Configuration->SWF Tools->Profiles->Add new profile
  5. Go to your Content-Type's Display Fields Content management->Content Types->[Content-Type]->Display Fields
  6. On the "Teaser" or "Full Node" fields Select your SWF Tools Profile - [name]

"It is a damn poor day when you don't learn something!" - Mr. Jones, teacher

nelsonbranco’s picture

Even if still get the warning that i am missing that 1 pixel out, player is working fine (till now)...
Only cron jobs gave me a wsod... Cache cleared, problem solved.
Thank you.