Fix player's manual mode

This commit is contained in:
drigato 2015-04-10 10:52:40 -04:00
parent fbcd5bc5bd
commit 9e62c71690
2 changed files with 3 additions and 18 deletions

View file

@ -37,6 +37,7 @@ class EmbedController extends Zend_Controller_Action
if ($stream == "auto") {
$this->view->playerMode = "auto";
$this->view->streamURL = json_encode("");
foreach ($streamData as $s) {
if ($s["mobile"]) {
array_push($availableMobileStreams, $s);
@ -44,7 +45,7 @@ class EmbedController extends Zend_Controller_Action
array_push($availableDesktopStreams, $s);
}
}
} else {
} elseif (!empty($stream)) {
$this->view->playerMode = "manual";
$selectedStreamData = $streamData[$stream];
$this->view->streamURL = json_encode($selectedStreamData["url"]);