API ondersteunt /stream en /download

This commit is contained in:
NH Gooi
2024-09-12 13:45:41 +02:00
parent cc1eba5959
commit 5ebf7f20be
6 changed files with 12 additions and 12 deletions

View File

@@ -90,6 +90,7 @@
@if ($podcast)
<?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;
?>
@@ -112,7 +113,7 @@
<div class="announcement">
<audio controls>
<source src="{{$audioUrl}}" type="audio/mpeg"/>
<source src="{{$streamUrl}}" type="audio/mpeg"/>
</audio>
<div class="clearfix">
<a class="action_button btn" href="{{$audioUrl}}" title="Download dit fragment als MP3">