CC-2438: Add a button to listen to the stream immediately
-Pop-up. Just need a proper skin.
This commit is contained in:
parent
83bba9532e
commit
1e70feda6b
8 changed files with 497 additions and 2 deletions
|
@ -13,6 +13,14 @@ class DashboardController extends Zend_Controller_Action
|
|||
// action body
|
||||
}
|
||||
|
||||
public function streamPlayerAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$baseUrl = $request->getBaseUrl();
|
||||
$this->view->headLink()->appendStylesheet($baseUrl.'/js/jplayer/skin/jplayer.blue.monday.css');
|
||||
$this->_helper->layout->setLayout('bare');
|
||||
}
|
||||
|
||||
public function helpAction()
|
||||
{
|
||||
// action body
|
||||
|
|
|
@ -90,12 +90,13 @@ class NowplayingController extends Zend_Controller_Action
|
|||
$this->view->entries = Application_Model_Nowplaying::GetDataGridData($viewType, $dateString);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
public function livestreamAction()
|
||||
{
|
||||
//use bare bones layout (no header bar or menu)
|
||||
$this->_helper->layout->setLayout('bare');
|
||||
}
|
||||
*/
|
||||
|
||||
public function dayViewAction()
|
||||
{
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Livestream</title>
|
||||
<?php echo $this->headScript() ?>
|
||||
<?php echo $this->headLink() ?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content"><?php echo $this->layout()->content ?></div>
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
$("#jquery_jplayer_1").jPlayer({
|
||||
ready: function () {
|
||||
$(this).jPlayer("setMedia", {
|
||||
oga: "http://localhost:8000/airtime_128"
|
||||
}).jPlayer("play");
|
||||
},
|
||||
ended: function (event) {
|
||||
$(this).jPlayer("play");
|
||||
},
|
||||
swfPath: "js",
|
||||
supplied: "oga"
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div id="jquery_jplayer_1" class="jp-jplayer"></div>
|
||||
|
||||
<div class="jp-audio">
|
||||
<div class="jp-type-single">
|
||||
<div id="jp_interface_1" class="jp-interface">
|
||||
<ul class="jp-controls">
|
||||
<li><a href="#" class="jp-play" tabindex="1">play</a></li>
|
||||
<li><a href="#" class="jp-pause" tabindex="1">pause</a></li>
|
||||
<li><a href="#" class="jp-mute" tabindex="1">mute</a></li>
|
||||
<li><a href="#" class="jp-unmute" tabindex="1">unmute</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="jp_playlist_1" class="jp-playlist">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue