aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--index.php11
-rw-r--r--template/page.phtml7
-rw-r--r--template/relive-player-netcut.phtml52
-rw-r--r--view/relive-player-netcut.php13
4 files changed, 83 insertions, 0 deletions
diff --git a/index.php b/index.php
index 95dac53..569a4b9 100644
--- a/index.php
+++ b/index.php
@@ -70,6 +70,8 @@ try {
$route = rtrim($route, '/');
$GLOBALS['forceopen'] = isset($_GET['forceopen']);
+ $GLOBALS['netcut'] = preg_match('@^relive/([0-9]+)/cut$@', $route);
+
// generic template
$tpl = new PhpTemplate('template/page.phtml');
@@ -251,6 +253,15 @@ try {
require('view/relive-player.php');
}
+ // ROUTES AVAILABLE AFTER BUT NOT BEFORE THE CONFERENCE
+ else if(preg_match('@^relive/([0-9]+)/cut$@', $route, $m))
+ {
+ $_GET = array(
+ 'id' => $m[1],
+ );
+ require('view/relive-player-netcut.php');
+ }
+
else if($route == 'relive')
{
require('view/relive.php');
diff --git a/template/page.phtml b/template/page.phtml
index ccd5ea8..4c05008 100644
--- a/template/page.phtml
+++ b/template/page.phtml
@@ -62,12 +62,19 @@
<script type="text/javascript" src="<?=h($assets)?>js/lib/bootstrap.min.js"></script>
<script type="text/javascript" src="<?=h($assets)?>js/lib/bootstrap-datepicker.min.js"></script>
+
+ <? if(isset($GLOBALS['netcut']) && $GLOBALS['netcut'] === true): ?>
+ <link href="<?=h($assets)?>netcut/lib/videojs/video-js.min.css" rel="stylesheet">
+ <link href="<?=h($assets)?>netcut/lib/videojs-markers/videojs.markers.min.css" rel="stylesheet">
+ <link href="<?=h($assets)?>netcut/assets/style.css" rel="stylesheet">
+ <? else: ?>
<script type="text/javascript" src="<?=h($assets)?>mejs/mediaelement-and-player.min.js"></script>
<script type="text/javascript" src="<?=h($assets)?>voc-player/player.js"></script>
<script type="text/javascript">window.Clappr = window.VOCPlayer</script>
<script type="text/javascript" src="<?=h($assets)?>voc-player/clappr-thumbnails-plugin.js"></script>
<script type="text/javascript" src="<?=h($assets)?>voc-player/clappr-playback-rate-plugin.js"></script>
<script type="text/javascript" src="<?=h($assets)?>js/lustiges-script.js"></script>
+ <? endif ?>
<? if(isset($subtitles) && $subtitles->isEnabled()): ?>
<script type="text/javascript" src="<?=h($assets)?>js/lustige-subtitles.js"></script>
diff --git a/template/relive-player-netcut.phtml b/template/relive-player-netcut.phtml
new file mode 100644
index 0000000..7cdde6c
--- /dev/null
+++ b/template/relive-player-netcut.phtml
@@ -0,0 +1,52 @@
+<div class="container">
+ <div class="row headline">
+ <div class="col-xs-12">
+ <h1>netc<img src="<?=h($assets)?>netcut/assets/winkekatze.png" style="height:30px" />t: <?=h($title)?></h1>
+ </div>
+ </div>
+
+ <? if($talk['status'] == 'released'): ?>
+ <div class="row">
+ <div class="col-xs-12">
+ <div class="alert alert-success">
+ <h3>Released</h3>
+ <p>Beware! This is an unprocessed streamdump, the final release was released at <a href="<?=h($talk['release_url'])?>"><?=h(parse_url($talk['release_url'], PHP_URL_HOST))?></a>.</p>
+ </div>
+ </div>
+ </div>
+ <? endif ?>
+
+
+ <div class="row">
+ <div class="col-xs-12">
+ <div class="player-wrap">
+
+ <div id="webcut">
+ <video class="video-js vjs-default-skin" id="video" preload="auto" data-setup="{}" controls autoplay style="min-height: 480px; width: 100%;" poster="<?=h($talk['thumbnail'])?>">
+ <source src="<?= h(forceproto($talk['playlist'])) ?>" type="application/x-mpegURL">
+ </video>
+ </div>
+ <br />
+ Preview: Press i/o to set markers, I/O to jump to markers<br />
+ <span id="inframe"></span><br />
+ <span id="outframe"></span><br />
+
+ <script type="text/javascript" src="<?=h($assets)?>netcut/lib/jquery/jquery-3.3.1.min.js"></script>
+ <script type="text/javascript" src="<?=h($assets)?>netcut/lib/videojs/video.min.js"></script>
+ <script type="text/javascript" src="<?=h($assets)?>netcut/lib/videojs-markers/videojs-markers.min.js"></script>
+ <script type="text/javascript" src="<?=h($assets)?>netcut/lib/videojs-hotkeys/videojs.hotkeys.min.js"></script>
+
+ <script type="text/javascript">
+ VIDEO_FPS = 25;
+ //INFRAME = 5073;
+ //OUTFRAME = 184746;
+ INFRAME = 7179;
+ OUTFRAME = 24687;
+ </script>
+
+ <script type="text/javascript" src="<?=h($assets)?>netcut/assets/script.js"></script>
+
+ </div>
+ </div>
+ </div>
+</div>
diff --git a/view/relive-player-netcut.php b/view/relive-player-netcut.php
new file mode 100644
index 0000000..d453028
--- /dev/null
+++ b/view/relive-player-netcut.php
@@ -0,0 +1,13 @@
+<?php
+
+$relive = $conference->getRelive();
+$talk = $relive->getTalk(intval($_GET['id']));
+
+echo $tpl->render(array(
+ 'page' => 'relive-player-netcut',
+ 'title' => $talk['title'],
+ 'talk' => $talk,
+
+ 'width' => 1920,
+ 'height' => 1080,
+));