aboutsummaryrefslogtreecommitdiff
path: root/model/Room.php
diff options
context:
space:
mode:
authorMaZderMind2015-04-04 12:31:20 +0200
committerMaZderMind2015-04-04 12:31:20 +0200
commitb8f51fa77f3ebb19ee7d54ef10e655176ae249c2 (patch)
treeca5341e636803ecb6ce9575a255d03a1f06ce22a /model/Room.php
parentcee3889ef56129a23e4971afaaf49a35fe30413d (diff)
parent084098645828740a5f96a011eb3bd1d69c5a9e6e (diff)
Merge branch 'multiview'
Diffstat (limited to '')
-rw-r--r--model/Room.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/model/Room.php b/model/Room.php
index 47f5b26..33beb9f 100644
--- a/model/Room.php
+++ b/model/Room.php
@@ -247,6 +247,21 @@ class Room extends ModelBase
return $res;
}
+ public function getStreams()
+ {
+ $selections = $this->getSelectionNames();
+ $streams = array();
+
+ foreach ($selections as $selection) {
+ $streams[] = $this->createStreamObject($selection, 'native');
+
+ if($this->hasTranslation())
+ $streams[] = $this->createStreamObject($selection, 'translated');
+ }
+
+ return $streams;
+ }
+
public function selectStream($selection, $language = 'native')
{
$selections = $this->getSelectionNames();