aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorMaZderMind2018-04-01 15:19:50 +0200
committerMaZderMind2018-04-01 15:19:50 +0200
commit41291d16a45d556ca8ba6310c060114ea90c50fb (patch)
treee58a6a992b88458d389e7daf0f689c7ccff6d084 /template
parent7735231c75b495946a4bced3054cbf9c62e3e25c (diff)
link to webm/hls and c3voc-twitter on dash format page
Diffstat (limited to 'template')
-rw-r--r--template/assemblies/switcher/dash.phtml50
1 files changed, 40 insertions, 10 deletions
diff --git a/template/assemblies/switcher/dash.phtml b/template/assemblies/switcher/dash.phtml
index 70c6405..7c8f617 100644
--- a/template/assemblies/switcher/dash.phtml
+++ b/template/assemblies/switcher/dash.phtml
@@ -4,12 +4,50 @@
<h3 class="beta">WebM DASH</h3>
<p><a href="https://en.wikipedia.org/wiki/Dynamic_Adaptive_Streaming_over_HTTP">DASH</a> is an adaptive-bitrate HTTP-based streaming solution, that is (unlike existing proprietary solutions such as HLS) internationally standardized.</p>
<p>Support for DASH in open source software such as ffmpeg is still pretty rough, so consider this a technology-preview, it's not yet a stable solution.</p>
- <p>Please report your experience to <a href="https://twitter.com/c3streaming">@c3streaming</a>.</p>
+ <p>Please report your experience to <a href="https://twitter.com/c3voc">@c3voc</a>.</p>
</div>
<div class="directlinks">
- <h3>Direct links</h3>
+ <? foreach(Stream::getVideoProtos() as $proto => $display): ?>
+ <h3>Direct links (<?=h($display)?>)</h3>
+ <div class="row">
+ <? foreach($room->getVideoResolutions() as $res): ?>
+ <? $selection = $room->createSelectionObject($res) ?>
+ <? $switcherstream = $room->createStreamObject($res) ?>
+ <div class="col-lg-3 col-md-4 col-lg-5 col-xs-12">
+ <div class="btn-group" role="group" title="<?=h($switcherstream->getVideoTech($proto))?>">
+ <div class="btn btn-primary" disabled><?=h($selection->getDisplay())?></div>
+ <? if($room->hasTranslation()): ?>
+
+ <a href="<?=h($room->createStreamObject($res, 'native')->getVideoUrl($proto))?>" class="btn btn-default">
+ <span class="fa fa-flag-o"></span>
+ Native
+ </a>
+ <? foreach($room->getTranslations() as $translation): ?>
+ <a href="<?=h($room->createStreamObject($res, $translation['endpoint'])->getVideoUrl($proto))?>" class="btn btn-default">
+ <span class="fa fa-flag"></span>
+ <?=h(ucfirst($translation['label']))?>
+ </a>
+ <? endforeach ?>
+
+ <? else: ?>
+
+ <a href="<?=h($switcherstream->getVideoUrl($proto))?>" class="btn btn-default">
+ <span class="fa fa-video-camera"></span>
+ Video
+ </a>
+
+ <? endif ?>
+ </div>
+ </div>
+ <? endforeach ?>
+ </div>
+ <? endforeach ?>
+ </div>
+
+ <div class="directlinks">
+ <h3>Direct link to DASH-Manifest</h3>
<div class="row">
<div class="col-lg-3 col-md-4 col-lg-5 col-xs-12">
@@ -22,14 +60,6 @@
</a>
</div>
- <div class="btn-group" role="group">
- <div class="btn btn-primary" disabled>HLS</div>
- <a href="<?=h($room->GetHLSPlaylistUrl())?>" target="_blank" class="btn btn-default">
- <span class="fa fa-flask"></span>
- Playlist
- </a>
- </div>
-
</div>
</div>
</div>