14
Good point Matt!
In more detail for those who want it:
If the site only needs a few players, this will provide a XOOPS wrap that makes a one page(mediaplayer.html) module with custom blocks.
Jeroen has merged the old FLV player and mp3 player into the one Media Player that plays all file types. Download and extract
Jeroen's Flash Media Player 3.6. The extracted folder should be named flash_media_player.
Make a new file named index.php with this code:
require('../../mainfile.php');
require(XOOPS_ROOT_PATH.'/header.php');
include 'mediaplayer.html';
require(XOOPS_ROOT_PATH.'/footer.php');
?>
Add a new file named xoops_version.php with this code:
// XOOPS wrap for Jeroen Wijering's Flash Media Player
$modversion['name'] = "flash_media_player";
$modversion['version'] = 1.00;
$modversion['description'] = "Play Flash media files.";
$modversion['credits'] = "Jeroen Wijering";
$modversion['author'] = "Jeroen Wijering";
$modversion['help'] = "";
$modversion['license'] = "Creative Commons NonCommercial - Share A Like";
$modversion['official'] = 0;
$modversion['image'] = "";
$modversion['dirname'] = "flash_media_player";
//** Menu - Set to 0 for no Main Menu link
$modversion['hasMain'] = 1;
?>
Edit mediaplayer.html to suit your needs. If you don't want a page view, you can delete mediaplayer.html and set $modversion['hasMain'] to 0.
Copy the flash_media_player folder into xoops/modules
folder and install as normal.
After install you can embed the player on any html page or custom block:
<embed src="http://www.yoursite.com/modules/flash_media_player/mediaplayer.swf" width="180" height="180" bgcolor="#FFFFFF"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="file=http://www.yoursite.com/modules/flash_media_player/song.mp3&autostart=false" />
*/