aboutsummaryrefslogtreecommitdiff
path: root/model/Stream.php
diff options
context:
space:
mode:
authorMaZderMind2015-04-06 00:28:03 +0200
committerMaZderMind2015-04-06 00:28:03 +0200
commit8f14dd9084b10c223508bc9948c5724fc2c9eb63 (patch)
tree9ff0ef30da4a08b7a6f50a3d91afee83ea01479a /model/Stream.php
parentac263c7672d78151ffdf2990dd98127cee572717 (diff)
Audio & Video-Player Embeding
Diffstat (limited to 'model/Stream.php')
-rw-r--r--model/Stream.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/model/Stream.php b/model/Stream.php
index 0d96a02..fe333ce 100644
--- a/model/Stream.php
+++ b/model/Stream.php
@@ -99,6 +99,16 @@ class Stream
return $display;
}
+ public function getEmbedUrl()
+ {
+ return
+ forceslash(baseurl()).
+ 'embed/'.
+ rawurlencode($this->getRoom()->getSlug()).'/'.
+ rawurlencode($this->getSelection()).'/'.
+ rawurlencode($this->getLanguage()).'/';
+ }
+
public function getVideoUrl($proto)
{
switch($proto)