aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/player
diff options
context:
space:
mode:
authorMaZderMind2015-12-20 15:29:09 +0100
committerMaZderMind2015-12-20 15:29:09 +0100
commita439f454df31093157aaa773e549f5bacc5584c1 (patch)
treefe533d042b76213d0029753a7054090a2a8c5494 /template/assemblies/player
parent82fcef7c4cd257c0ee3b666899542e033269af32 (diff)
implement new subtitles L2S2 interface
Diffstat (limited to 'template/assemblies/player')
-rw-r--r--template/assemblies/player/video.phtml6
1 files changed, 5 insertions, 1 deletions
diff --git a/template/assemblies/player/video.phtml b/template/assemblies/player/video.phtml
index 9149a4f..cbbf06b 100644
--- a/template/assemblies/player/video.phtml
+++ b/template/assemblies/player/video.phtml
@@ -1,4 +1,8 @@
-<div style="max-width: <?=h($stream->getVideoWidth())?>px; max-height: <?=h($stream->getVideoHeight())?>px;" class="video-wrap">
+<div
+ style="max-width: <?=h($stream->getVideoWidth())?>px; max-height: <?=h($stream->getVideoHeight())?>px;"
+ class="video-wrap <? if($room->hasSubtitles()): ?>has-subtitles<? endif ?>"
+ data-subtitles-room-id="<?=h($room->getSubtitlesRoomId())?>"
+>
<video
<? if(!isset($autoplay) || $autoplay == true): ?>
autoplay="autoplay"