diff options
author | MaZderMind | 2015-04-04 12:31:20 +0200 |
---|---|---|
committer | MaZderMind | 2015-04-04 12:31:20 +0200 |
commit | b8f51fa77f3ebb19ee7d54ef10e655176ae249c2 (patch) | |
tree | ca5341e636803ecb6ce9575a255d03a1f06ce22a /model/Room.php | |
parent | cee3889ef56129a23e4971afaaf49a35fe30413d (diff) | |
parent | 084098645828740a5f96a011eb3bd1d69c5a9e6e (diff) |
Merge branch 'multiview'
Diffstat (limited to 'model/Room.php')
-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(); |