From 2a24e19809e3fabf6bf18f8c98040d7769052c4d Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 3 Apr 2015 20:46:10 +0200 Subject: Experimental Multi-Viewer --- model/Room.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'model') 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(); -- cgit v1.2.3