aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/players/video.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'template/assemblies/players/video.phtml')
-rw-r--r--template/assemblies/players/video.phtml37
1 files changed, 37 insertions, 0 deletions
diff --git a/template/assemblies/players/video.phtml b/template/assemblies/players/video.phtml
new file mode 100644
index 0000000..ca0e87b
--- /dev/null
+++ b/template/assemblies/players/video.phtml
@@ -0,0 +1,37 @@
+<pre><?=print_r(array(
+ 'file' => basename(__FILE__),
+ 'room' => $room,
+ 'language' => $language,
+ 'format' => $format
+), true)?></pre>
+
+<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"
+ width="<?=h($width)?>"
+ height="<?=h($height)?>"
+ >
+ <param name="allowFullScreen" value="true">
+ </object>
+</video>