Embed player - code review fixes

This commit is contained in:
drigato 2015-04-07 17:49:21 -04:00
parent 481d21ff70
commit f6d5b34cca
5 changed files with 89 additions and 48 deletions

View file

@ -65,22 +65,6 @@ class Application_Model_StreamSetting
return $result ? $result : $default;
}
public static function getEnabledStreamUrls()
{
$urls = Array();
$streamIds = Application_Model_StreamSetting::getEnabledStreamIds();
foreach ($streamIds as $id) {
$prefix = $id."_";
$streamData = Application_Model_StreamSetting::getStreamData($id);
$host = $streamData[$prefix."host"];
$port = $streamData[$prefix."port"];
$mount = $streamData[$prefix."mount"];
$type = $streamData[$prefix."type"];
$urls[$type] = "http://$host:$port/$mount";
}
return $urls;
}
public static function getEnabledStreamData()
{
$streams = Array();