SAAS-712: UI Improvements
This commit is contained in:
parent
78b2631980
commit
4429117f6a
6 changed files with 97 additions and 15 deletions
|
@ -9,10 +9,14 @@
|
|||
</div>
|
||||
|
||||
<div id="player_instructions">
|
||||
Customize the player by configuring the options below. Once you are happy with the player
|
||||
Customize the player by configuring the options below. When you are done
|
||||
copy the embeddable code below into your websites HTML.
|
||||
</div>
|
||||
|
||||
<?php echo $this->element->getElement('player_display_title'); ?>
|
||||
|
||||
<?php echo $this->element->getElement('player_title')->render(); ?>
|
||||
|
||||
<?php echo $this->element->getElement('player_stream_mode')->render(); ?>
|
||||
|
||||
<?php echo $this->element->getElement('player_stream_url'); ?>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
};
|
||||
|
||||
if (this.playerMode == "manual") {
|
||||
this.settings.url = "<?php echo $this->streamURL ?>";
|
||||
this.settings.url = '<?php echo $this->streamURL ?>';
|
||||
this.settings.codec = "<?php echo $this->codec ?>";
|
||||
} else if (this.playerMode == "auto") {
|
||||
this.availableMobileStreamQueue = <?php echo $this->availableMobileStreams?>;
|
||||
|
@ -48,7 +48,14 @@
|
|||
// Create the Muses player object
|
||||
MRP.insert(this.settings);
|
||||
|
||||
$("p.station_name").html("<?php echo $this->station_name?>");
|
||||
// Configure player title
|
||||
var player_title = <?php echo $this->player_title?>;
|
||||
if (player_title === null) {
|
||||
$(".airtime_header").hide();
|
||||
$(".airtime_player").css('height', '150px');
|
||||
} else {
|
||||
$("p.station_name").html(player_title);
|
||||
}
|
||||
|
||||
attachStreamMetadataToPlayer();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue