mirror of
https://github.com/voc/streaming-website
synced 2024-09-20 06:22:03 +00:00
use voc-player for audioOnly (except explicit translated versions), remove dash notice
This commit is contained in:
parent
78645e1c4d
commit
aec18c42ef
3 changed files with 14 additions and 12 deletions
|
@ -40,6 +40,7 @@ $(function() {
|
|||
baseUrl: 'assets/voc-player/',
|
||||
autoPlay: true,
|
||||
poster: $player.data("poster"),
|
||||
audioOnly: !!$player.data("audio-only"),
|
||||
events: {
|
||||
onReady: function() {
|
||||
var player = this;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<!-- Uses regular player only if translation is forced -->
|
||||
<? if($stream->isTranslated()): ?>
|
||||
<video
|
||||
preload="auto"
|
||||
controls="controls"
|
||||
|
@ -9,8 +11,15 @@
|
|||
src="<?=h($stream->getAudioUrl('mp3'))?>"
|
||||
type="audio/mp3"
|
||||
/>
|
||||
<source
|
||||
src="<?=h($stream->getAudioUrl('opus'))?>"
|
||||
type="audio/opus"
|
||||
/>
|
||||
</video>
|
||||
|
||||
<!-- Use voc-player per default, TODO: implement preferred language feature -->
|
||||
<? else: ?>
|
||||
<div class="video-wrap"
|
||||
data-voc-player
|
||||
data-stream="<?=h($room->getStream())?>"
|
||||
data-poster="<?=h($stream->getPoster())?>"
|
||||
data-audio-only="true"
|
||||
></div>
|
||||
<? endif ?>
|
||||
|
||||
|
|
|
@ -1,13 +1,5 @@
|
|||
<div class="container-fluid">
|
||||
|
||||
<div class="notes well">
|
||||
<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/c3voc">@c3voc</a>.</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="directlinks">
|
||||
<? foreach(Stream::getVideoProtos() as $proto => $display): ?>
|
||||
<h3>Direct links (<?=h($display)?>)</h3>
|
||||
|
|
Loading…
Reference in a new issue