diff options
author | MaZderMind | 2015-04-03 20:46:10 +0200 |
---|---|---|
committer | MaZderMind | 2015-04-03 20:49:29 +0200 |
commit | 2a24e19809e3fabf6bf18f8c98040d7769052c4d (patch) | |
tree | 3d858de90b1066f6c525ac938f1f3c945750eac9 /model/Room.php | |
parent | a392d2d10758a76f6758cef0c673436738f9c807 (diff) |
Experimental Multi-Viewer
Diffstat (limited to '')
-rw-r--r-- | model/Room.php | 15 |
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(); |