Тему можно в php перенести.
Недолго мучаясь заюзал плеер (правда не открытый) - http://flv-mp3.ru/ Попутно сделал небольшой код на php5:
| Код | <? // -------------------------------------------------------------------- // uplayer 2.5 config // -------------------------------------------------------------------- // php 5.x class uplayer { private $params; private $template; function uplayer($swf,$stream,$info) { // setup parameters $this->params['swf'] = $swf; $this->params['way'] = $stream; $this->params['w'] = "400"; $this->params['h'] = "60"; $this->params['comment'] = $info; $this->params['autoplay'] = "0"; $this->params['skin'] = "bs"; $this->params['volume'] = "70"; $this->params['time_seconds'] = "0"; // setup template $this->template = "<object type='application/x-shockwave-flash' data='%s' height='%s' width='%s'> <param name='wmode' VALUE='transparent' /> <param name='allowFullScreen' value='true' /> <param name='movie' value='%s' /> <param name='FlashVars' value='%s' /> </object>"; } function get_params() { $result = ""; foreach($this->params as $key => $value) { $result .= $key.'='.$value.'&'; } return $result; } function get_object() { $result = sprintf($this->template, $this->params['swf'], $this->params['h'],$this->params['w'], $this->params['swf'], $this->get_params()); return $result; } } ?>
|
|