aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies
diff options
context:
space:
mode:
Diffstat (limited to 'template/assemblies')
-rw-r--r--template/assemblies/player/video.phtml62
1 files changed, 32 insertions, 30 deletions
diff --git a/template/assemblies/player/video.phtml b/template/assemblies/player/video.phtml
index 03026f7..defb14d 100644
--- a/template/assemblies/player/video.phtml
+++ b/template/assemblies/player/video.phtml
@@ -1,35 +1,37 @@
-<video
- autoplay="autoplay"
- controls="controls"
- id="video-tag"
- preload="auto"
- width="<?=h($width)?>"
- height="<?=h($height)?>"
->
- <source
- data-plugin-type="flash"
- src="<?=h(link_stream('rtmp', $room, $format, $translated))?>"
- title="h.H264 (RTMP)"
- type="video/rtmp"
- />
- <source
- data-plugin-type="native"
- src="<?=h(link_stream('hls', $room, $format, $translated))?>"
- title="h.264 (HLS)"
- type="application/vnd.apple.mpegURL"
- />
-
- <object
- data="assets/js/lib/flashmediaelement.swf"
- type="application/x-shockwave-flash"
+<div style="width: 100%; height: 100%; max-width: <?=h($width)?>px; margin: 0 auto;">
+ <video
+ autoplay="autoplay"
+ id="video-tag"
+ preload="auto"
width="<?=h($width)?>"
height="<?=h($height)?>"
+ style="width: 100%; height: 100%;"
>
- <param name="movie" value="assets/js/lib/flashmediaelement.swf" />
- <param name="flashvars" value="controls=true&file=<?=h(link_stream('rtmp', $room, $format, $translated))?>" />
+ <source
+ data-plugin-type="flash"
+ src="<?=h(link_stream('rtmp', $room, $format, $translated))?>"
+ title="h.H264 (RTMP)"
+ type="video/rtmp"
+ />
+ <source
+ data-plugin-type="native"
+ src="<?=h(link_stream('hls', $room, $format, $translated))?>"
+ title="h.264 (HLS)"
+ type="application/vnd.apple.mpegURL"
+ />
+
+ <object
+ data="assets/js/lib/flashmediaelement.swf"
+ type="application/x-shockwave-flash"
+ width="<?=h($width)?>"
+ height="<?=h($height)?>"
+ >
+ <param name="movie" value="assets/js/lib/flashmediaelement.swf" />
+ <param name="flashvars" value="controls=false&file=<?=h(link_stream('rtmp', $room, $format, $translated))?>" />
- <param name="allowFullScreen" value="true">
+ <param name="allowFullScreen" value="true">
- <pre>Sorry, Lynx is not supported.</pre>
- </object>
-</video>
+ <pre>Sorry, Lynx is not supported.</pre>
+ </object>
+ </video>
+</div> \ No newline at end of file