aboutsummaryrefslogtreecommitdiff
path: root/model/Stream.php
diff options
context:
space:
mode:
authorAndreas Hubel2018-12-28 17:38:23 +0100
committerAndreas Hubel2018-12-28 17:38:32 +0100
commit2b78ec78daa0dd4a0d9c9f8a892a3c8faa9d2690 (patch)
tree986a9b16cce5bba8ababacdfcd579511528bdc9d /model/Stream.php
parent391dccbf84e2c0ecda819db6594c491243fc5df4 (diff)
Add poster image to live stream players
Diffstat (limited to 'model/Stream.php')
-rw-r--r--model/Stream.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/model/Stream.php b/model/Stream.php
index 718ed98..d577df6 100644
--- a/model/Stream.php
+++ b/model/Stream.php
@@ -264,4 +264,7 @@ class Stream
'opus' => 'Opus',
);
}
+ public function getPoster() {
+ return joinpath(['/', 'thumbs', rawurlencode($this->getRoom()->getStream()).'-poster.png']);
+ }
}