diff --git a/airtime_mvc/application/controllers/EmbedController.php b/airtime_mvc/application/controllers/EmbedController.php index 950387c8e..ab20b7c8b 100644 --- a/airtime_mvc/application/controllers/EmbedController.php +++ b/airtime_mvc/application/controllers/EmbedController.php @@ -24,13 +24,22 @@ class EmbedController extends Zend_Controller_Action $request = $this->getRequest(); - $this->view->css = Application_Common_HTTPHelper::getStationUrl() . "css/player.css?".$CC_CONFIG['airtime_version']; + $this->view->mrp_js = Application_Common_HTTPHelper::getStationUrl() . "js/airtime/player/mrp.js?".$CC_CONFIG['airtime_version']; $this->view->jquery = Application_Common_HTTPHelper::getStationUrl() . "js/libs/jquery-1.10.2.js"; $this->view->muses_swf = Application_Common_HTTPHelper::getStationUrl() . "js/airtime/player/muses.swf"; $this->view->metadata_api_url = Application_Common_HTTPHelper::getStationUrl() . "api/live-info"; $this->view->player_title = json_encode($request->getParam('title')); + //TODO: un-hardcode this + $player_style = "premium"; + if ($player_style == "premium") { + $this->view->css = Application_Common_HTTPHelper::getStationUrl() . "css/radio-page/premium_player.css?".$CC_CONFIG['airtime_version']; + } else { + $this->view->css = Application_Common_HTTPHelper::getStationUrl() . "css/player.css?".$CC_CONFIG['airtime_version']; + } + $this->view->player_style = $player_style; + $stream = $request->getParam('stream'); $streamData = Application_Model_StreamSetting::getEnabledStreamData(); $availableMobileStreams = array(); @@ -56,6 +65,11 @@ class EmbedController extends Zend_Controller_Action $this->view->availableDesktopStreams = json_encode($availableDesktopStreams); } + public function premiumPlayerAction() + { + $this->view->layout()->disableLayout(); + } + public function currentDayProgramAction() { $this->view->layout()->disableLayout(); diff --git a/airtime_mvc/application/views/scripts/embed/player.phtml b/airtime_mvc/application/views/scripts/embed/player.phtml index 30d4736bc..5b4daf58c 100644 --- a/airtime_mvc/application/views/scripts/embed/player.phtml +++ b/airtime_mvc/application/views/scripts/embed/player.phtml @@ -294,6 +294,7 @@ metadataTimer = setTimeout(attachStreamMetadataToPlayer, time_to_next_track_starts+3000); } +