WaveSurfer player voor podcasts, voor live WIP

This commit is contained in:
NH Gooi
2024-09-24 17:29:57 +02:00
parent cff9948dda
commit 1dadbc62af
4 changed files with 231 additions and 8 deletions

View File

@@ -88,11 +88,11 @@
@section('content')
@if ($podcast)
<?php
<?php
$audioUrl = url($apiUrl . 'podcast/download' . $podcast->url . "?auth=" . $podcast->auth);
$streamUrl = url($apiUrl . 'podcast/stream' . $podcast->url . "?auth=" . $podcast->auth);
$popoutUrl = route('luister.podcast') . $podcast->url . '?auth=' . $podcast->auth;
?>
?>
<div class="">
<div class="row news_post">
@@ -112,9 +112,12 @@
</ul>
<div class="announcement">
<audio controls>
<source src="{{$streamUrl}}" type="audio/mpeg"/>
</audio>
@include("widgets.audioplayer", [
'source' => $streamUrl,
'lengte' => $podcast->duration / 1000,
'waveform' => $podcast->waveform
])
<div class="clearfix">
<a class="action_button btn" href="{{$audioUrl}}" title="Download dit fragment als MP3">
<span>Download fragment</span>