aboutsummaryrefslogtreecommitdiff
path: root/model/Room.php
diff options
context:
space:
mode:
authorMaZderMind2015-04-03 20:46:10 +0200
committerMaZderMind2015-04-03 20:49:29 +0200
commit2a24e19809e3fabf6bf18f8c98040d7769052c4d (patch)
tree3d858de90b1066f6c525ac938f1f3c945750eac9 /model/Room.php
parenta392d2d10758a76f6758cef0c673436738f9c807 (diff)
Experimental Multi-Viewer
Diffstat (limited to 'model/Room.php')
-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();