<?php

include_once dirname(__FILE__).'/class.player.php';

$player = new pPlayer();
$player->name = "Neolao FLV Player";
$player->location = "modules/Play/bin/player_flv_maxi.swf";
$player->params = array('showplayer'=>'always','showstop'=>'1','showvolume'=>'1','showtime'=>'1');
$player->width = 320;
$player->height = 260;
$player->template =  <<<EOF
<object type="application/x-shockwave-flash" data="{\$location}" width="{\$width}" height="{\$height}">
	<param name="movie" value="{\$location}" />
	<param name="FlashVars" value="flv={\$file}{foreach from=\$player_params key=n item=v}&amp;{\$n}={\$v}{/foreach}" />
	<param name="wmode" value="transparent" />
</object>
EOF;
$player->paramlist = array('autoplay','autoload','buffer','buffermessage','buffercolor','bufferbgcolor','buffershowbg','config','configxml','title','titlesize','titlecolor','margin','srt','srtcolor','srtbgcolor','srtsize','showstop','showvolume','showtime','showplayer','showloading','showfullscreen','showswitchsubtitles','showmouse','loop','startimage','skin','playercolor','loadingcolor','bgcolor','bgcolor1','bgcolor2','buttoncolor','buttonovercolor','slidercolor1','slidercolor2','sliderovercolor','loadonstop','onclick','onclicktarget','ondoubleclick','ondoubleclicktarget','playertimeout','videobgcolor','volume','shortcut','playeralpha','phpstream','srturl','top1','netconnection');

$result = $player->savedbnew();



$player = new pPlayer();
$player->name = "Neolao MP3 Player Multi";
$player->location = "modules/Play/bin/player_mp3_multi.swf";
$player->params = array();
$player->width = 200;
$player->height = 100;
$player->template =  <<<EOF
<object type="application/x-shockwave-flash" data="{\$location}" width="{\$width}" height="{\$height}">
	<param name="movie" value="{\$location}" />

	<param name="FlashVars" value="{strip}
		mp3={foreach from=\$files item=file name=foo}{if \$smarty.foreach.foo.first}{else}|{/if}{\$file}{/foreach}
		&amp;title={foreach from=\$files key=title item=file name=foo}{if \$smarty.foreach.foo.first}{else}|{/if}{\$title}{/foreach}
		{foreach from=\$player_params key=n item=v}&amp;{\$n}={\$v}{/foreach}
		{/strip}" />
	<param name="wmode" value="transparent" />
</object>
EOF;
$player->paramlist = array('autoplay','bgcolor','bgcolor1','bgcolor2','buttoncolor','buttonovercolor','buttonwidth','currentmp3color','loadingcolor','loop','playlistalpha','playlistcolor','playlistrss','scrollbarcolor','scrollbarovercolor','showinfo','showlist','showloading','showplaylistnumbers','showslider','showvolume','shuffle','skin','slidercolor1','slidercolor2','sliderheight','sliderovercolor','sliderwidth','textcolor','volume','volumeheight','volumewidth');
$result = $player->savedbnew();


?>