Added player preview to view
Everything is hardcoded right now
|
@ -9,12 +9,13 @@ class EmbeddablePlayerController extends Zend_Controller_Action
|
|||
|
||||
public function indexAction()
|
||||
{
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||
$this->view->headLink()->appendStylesheet($baseUrl.'css/embed-player.css?'.$CC_CONFIG['airtime_version']);
|
||||
|
||||
$form = new Application_Form_EmbeddablePlayer();
|
||||
|
||||
$this->view->form = $form;
|
||||
}
|
||||
|
||||
public function embedCodeAction()
|
||||
{
|
||||
$this->view->layout()->disableLayout();
|
||||
}
|
||||
}
|
|
@ -11,7 +11,7 @@ class Application_Form_EmbeddablePlayer extends Zend_Form_SubForm
|
|||
$embedSrc = new Zend_Form_Element_Text('player_embed_src');
|
||||
$embedSrc->setAttrib("readonly", "readonly");
|
||||
$embedSrc->setAttrib("class", "player_embed_src");
|
||||
$embedSrc->setValue('<iframe></iframe>');
|
||||
$embedSrc->setValue('<iframe frameborder="0" src="http://localhost/embeddableplayer/embed-code"></iframe>');
|
||||
$embedSrc->removeDecorator('label');
|
||||
$this->addElement($embedSrc);
|
||||
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<script src="http://localhost/widgets/muses/self_hosted/mrp.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="180" height="60" bgcolor="#FFFFFF">
|
||||
<param name="movie" value="muses.swf" />
|
||||
<param name="flashvars" value="url=http://albertprov1.out.airtime.pro:8000/albertprov1_a&lang=auto&codec=mp3&volume=100&introurl=&tracking=true&jsevents=true&buffering=5&skin=http://localhost/js/airtime/embeddableplayer/ffmp3-mcclean.xml&title=Albert's%20Test Stream" />
|
||||
<param name="wmode" value="window" />
|
||||
<param name="allowscriptaccess" value="always" />
|
||||
<param name="bgcolor" value="#FFFFFF" />
|
||||
<param name="scale" value="noscale" />
|
||||
<embed src="http://localhost/js/airtime/embeddableplayer/muses.swf" flashvars="url=http://albertprov1.out.airtime.pro:8000/albertprov1_a&lang=auto&codec=mp3&volume=100&introurl=&tracking=true&jsevents=true&buffering=5&skin=http://localhost/js/airtime/embeddableplayer/ffmp3-mcclean.xml&title=Albert's%20Test Stream" width="180" scale="noscale" height="60" wmode="window" bgcolor="#FFFFFF" allowscriptaccess="always" type="application/x-shockwave-flash" />
|
||||
</object>
|
||||
|
||||
</html>
|
|
@ -8,6 +8,6 @@
|
|||
<?php echo $this->element->getElement('player_stream_url'); ?>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
<div id="embed_player_preview">player preview holder</div>
|
||||
<iframe frameborder="0" src="http://localhost/embeddableplayer/embed-code"></iframe>
|
||||
</dl>
|
||||
</fieldset>
|
|
@ -0,0 +1,10 @@
|
|||
<ffmp3-skin folder="ffmp3-mcclean">
|
||||
<bg image="bg.png" x="0" y="0" />
|
||||
<play image="play.gif" x="8" y="29" clickimage="playclick.jpg" />
|
||||
<stop image="stop.jpg" x="40" y="29" clickimage="stopclick.jpg" />
|
||||
<text x="13" y="9" width="154" height="17" color="#ffffff" font="Arial" size="11" />
|
||||
<songtitle x="12" y="83" width="210" height="22" color="#000000" font="Arial" size="12" />
|
||||
<artist x="12" y="103" width="210" height="22" color="#000000" font="Arial" size="12" />
|
||||
<volume mode="holder" x="71" y="33" width="100" height="17" holderImage="holder.png" />
|
||||
<status imagePlay="statusplay.png" imageStop="statusstop.png" x="13" y="34" />
|
||||
</ffmp3-skin>
|
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 830 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 138 B |
After Width: | Height: | Size: 136 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |