aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/player/video.phtml
diff options
context:
space:
mode:
authorMaZderMind2014-10-19 16:35:35 +0200
committerMaZderMind2014-10-19 16:35:35 +0200
commitc4eff083f2dc1b51057e8bea7a4ecc6cd2dab4a4 (patch)
tree3d2f41b8eec69c67cc0529a106dfaa072f1260e2 /template/assemblies/player/video.phtml
parent1de6e17ed3e390a50f3d038169290ba3687bfd8f (diff)
player config & style
Diffstat (limited to '')
-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