aboutsummaryrefslogtreecommitdiff
path: root/model/Room.php
diff options
context:
space:
mode:
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();