SAAS-1156: Podcast episode playback and download from Radio Page

Playback works in HTML mode for mp3 files only right now.
Added a function that changes the player iframe's src attribute
so it plays individual tracks.
This commit is contained in:
drigato 2015-10-27 16:00:15 -04:00
parent 1211e8db7f
commit 09efacf4d5
3 changed files with 18 additions and 1 deletions

View file

@ -40,6 +40,9 @@
if (this.playerMode == "manual") {
this.settings.url = <?php echo $this->streamURL ?>;
this.settings.codec = "<?php echo $this->codec ?>";
} else if (this.playerMode == "file") {
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?>;
this.availableDesktopStreamQueue = <?php echo $this->availableDesktopStreams?>;
@ -213,6 +216,7 @@
if (musesPlayer.playerMode == "auto") {
var stream = musesPlayer.getNextAvailableStream();
musesPlayer.deferredPlay(stream["url"], RETRY_DELAY_MSECS);
} else if (musesPlayer.playerMode == "file") {
} else {
// If in manual mode and there is a problem connecting to
// the stream display an error and stop play back.