diff --git a/resources/views/layouts/master.blade.php b/resources/views/layouts/master.blade.php index 3fb6e1cf..3ddb356d 100644 --- a/resources/views/layouts/master.blade.php +++ b/resources/views/layouts/master.blade.php @@ -186,6 +186,7 @@ + + @endpush - @include('widgets.mediaplayer') diff --git a/resources/views/podcastitem.blade.php b/resources/views/podcastitem.blade.php index 17f28226..722f774a 100644 --- a/resources/views/podcastitem.blade.php +++ b/resources/views/podcastitem.blade.php @@ -88,11 +88,11 @@ @section('content') @if ($podcast) - url . "?auth=" . $podcast->auth); $streamUrl = url($apiUrl . 'podcast/stream' . $podcast->url . "?auth=" . $podcast->auth); $popoutUrl = route('luister.podcast') . $podcast->url . '?auth=' . $podcast->auth; - ?> + ?>
@@ -112,9 +112,12 @@
- + @include("widgets.audioplayer", [ + 'source' => $streamUrl, + 'lengte' => $podcast->duration / 1000, + 'waveform' => $podcast->waveform + ]) +
Download fragment diff --git a/resources/views/widgets/audioplayer.blade.php b/resources/views/widgets/audioplayer.blade.php new file mode 100644 index 00000000..20eca206 --- /dev/null +++ b/resources/views/widgets/audioplayer.blade.php @@ -0,0 +1,213 @@ + +
+ {{-- + +
+ @if( $lengte > 60) + {{ floor($lengte / 60) }} minuten en {{ floor(($lengte % 60)) }} seconden + @else + {{ $lengte }} seconden + @endif +
+ --}} + +
+
0:00
+
0:00
+
+
+ +
+ + +
+ +
+ + + + + +
+
+ + + + \ No newline at end of file