aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/player
diff options
context:
space:
mode:
authorMaZderMind2014-10-19 13:55:21 +0200
committerMaZderMind2014-10-19 13:55:21 +0200
commit5350c78adf023f9086d4dda631fcc1bfc3f3d879 (patch)
tree7033183da70e49eba337b435d61e8d6966a060a7 /template/assemblies/player
parentce98e5359797c26be23c5db9a786fbd1e58acc7d (diff)
rename player files
Diffstat (limited to 'template/assemblies/player')
-rw-r--r--template/assemblies/player/audio.phtml39
-rw-r--r--template/assemblies/player/slides.phtml39
-rw-r--r--template/assemblies/player/video.phtml35
3 files changed, 113 insertions, 0 deletions
diff --git a/template/assemblies/player/audio.phtml b/template/assemblies/player/audio.phtml
new file mode 100644
index 0000000..f9993c1
--- /dev/null
+++ b/template/assemblies/player/audio.phtml
@@ -0,0 +1,39 @@
+<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="rtmp://rtmp.streaming.media.ccc.de:1935/stream/<?=h($room)?>_<?=h($language)?>_<?=h($format)?>"
+ title="h.H264 (RTMP)"
+ type="video/rtmp"
+ />
+ <source
+ data-plugin-type="native"
+ src="http://hls.streaming.media.ccc.de/hls/<?=h($room)?>_<?=h($language)?>_<?=h($format)?>.m3u8"
+ title="h.264 (HLS)"
+ type="application/vnd.apple.mpegURL"
+ />
+
+ <object
+ data="static/flashmediaelement.swf"
+ type="application/x-shockwave-flash"
+ width="<?=h($width)?>"
+ height="<?=h($height)?>"
+ >
+ <param name="allowFullScreen" value="true">
+ </object>
+</video>
+*/?>
diff --git a/template/assemblies/player/slides.phtml b/template/assemblies/player/slides.phtml
new file mode 100644
index 0000000..f9993c1
--- /dev/null
+++ b/template/assemblies/player/slides.phtml
@@ -0,0 +1,39 @@
+<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="rtmp://rtmp.streaming.media.ccc.de:1935/stream/<?=h($room)?>_<?=h($language)?>_<?=h($format)?>"
+ title="h.H264 (RTMP)"
+ type="video/rtmp"
+ />
+ <source
+ data-plugin-type="native"
+ src="http://hls.streaming.media.ccc.de/hls/<?=h($room)?>_<?=h($language)?>_<?=h($format)?>.m3u8"
+ title="h.264 (HLS)"
+ type="application/vnd.apple.mpegURL"
+ />
+
+ <object
+ data="static/flashmediaelement.swf"
+ type="application/x-shockwave-flash"
+ width="<?=h($width)?>"
+ height="<?=h($height)?>"
+ >
+ <param name="allowFullScreen" value="true">
+ </object>
+</video>
+*/?>
diff --git a/template/assemblies/player/video.phtml b/template/assemblies/player/video.phtml
new file mode 100644
index 0000000..03026f7
--- /dev/null
+++ b/template/assemblies/player/video.phtml
@@ -0,0 +1,35 @@
+<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="movie" value="assets/js/lib/flashmediaelement.swf" />
+ <param name="flashvars" value="controls=true&file=<?=h(link_stream('rtmp', $room, $format, $translated))?>" />
+
+ <param name="allowFullScreen" value="true">
+
+ <pre>Sorry, Lynx is not supported.</pre>
+ </object>
+</video>