aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authorMaZderMind2018-03-24 12:09:48 +0100
committerMaZderMind2018-03-24 12:16:24 +0100
commitaf1f5031603d0cef6db31f5119eb51a502d67c87 (patch)
treedad3e3ff24d58416cf0393a375db6d30e1852191 /model
parenta9b8687602112819599f33456404e41b441885c2 (diff)
select dash-stream as default, provide legacy streams under the legacy label
Diffstat (limited to 'model')
-rw-r--r--model/Room.php33
-rw-r--r--model/RoomTab.php8
2 files changed, 24 insertions, 17 deletions
diff --git a/model/Room.php b/model/Room.php
index 9ec6ebe..7089532 100644
--- a/model/Room.php
+++ b/model/Room.php
@@ -212,6 +212,15 @@ class Room
public function getSelectionNames()
{
$selections = array();
+ if($this->hasDash())
+ $selections[] = 'dash';
+
+ if($this->hasAudio())
+ $selections[] = 'audio';
+
+ if($this->hasMusic())
+ $selections[] = 'music';
+
if($this->hasHdVideo())
$selections[] = 'hd';
@@ -221,15 +230,6 @@ class Room
if($this->hasSlides())
$selections[] = 'slides';
- if($this->hasAudio())
- $selections[] = 'audio';
-
- if($this->hasMusic())
- $selections[] = 'music';
-
- if($this->hasDash())
- $selections[] = 'dash';
-
return $selections;
}
@@ -241,11 +241,8 @@ class Room
public function getTabNames()
{
$tabs = array();
- if($this->hasVideo())
- $tabs[] = 'video';
-
- if($this->hasSlides())
- $tabs[] = 'slides';
+ if($this->hasDash())
+ $tabs[] = 'dash';
if($this->hasAudio())
$tabs[] = 'audio';
@@ -253,8 +250,11 @@ class Room
if($this->hasMusic())
$tabs[] = 'music';
- if($this->hasDash())
- $tabs[] = 'dash';
+ if($this->hasVideo())
+ $tabs[] = 'video';
+
+ if($this->hasSlides())
+ $tabs[] = 'slides';
return $tabs;
}
@@ -331,6 +331,7 @@ class Room
public function selectStream($selection, $language = 'native')
{
+ if($selection == 'video') $selection = 'hd';
$selections = $this->getSelectionNames();
if(count($selections) == 0)
diff --git a/model/RoomTab.php b/model/RoomTab.php
index cd9e355..4848f57 100644
--- a/model/RoomTab.php
+++ b/model/RoomTab.php
@@ -37,8 +37,14 @@ class RoomTab
case 'music':
return 'Radio';
+ case 'video':
+ return 'Video (Legacy)';
+
+ case 'slides':
+ return 'Slides (Legacy)';
+
case 'dash':
- return 'Adaptive Quality Video';
+ return 'Video';
default:
return ucfirst($tab);