From c4eff083f2dc1b51057e8bea7a4ecc6cd2dab4a4 Mon Sep 17 00:00:00 2001
From: MaZderMind
Date: Sun, 19 Oct 2014 16:35:35 +0200
Subject: player config & style

---
 template/assemblies/player/video.phtml | 62 ++++++++++++++++++----------------
 1 file changed, 32 insertions(+), 30 deletions(-)

(limited to 'template/assemblies')

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
-- 
cgit v1.2.3