Spiele Filme in allen Playern über die gespeicherte Qualitätsleiter.
Deploy Test / test (push) Successful in 25s
Deploy Test / deploy (push) Successful in 27s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-16 21:48:33 +01:00
1 parent 8e77defaca
commit 1fb48783bf
14 files changed
+202 -18

No files matched your search

+8 -4
View File
@@ -2,12 +2,16 @@
$metadata = is_array($version->metadata) ? $version->metadata : [];
$class = $version->element->output_class;
$poster = \App\Domain\Media\ThumbnailRef::url('editorial.card', 'element', $version->element->id, $version->element->thumbnail_path);
$playback = $class === 'film' ? app(\App\Http\Controllers\ContentPreviewController::class)->playback($version) : null;
@endphp
@if ($fileUrl)
@if ($class === 'film')
<video controls preload="metadata" playsinline @if ($poster) poster="{{ $poster }}" @endif src="{{ $fileUrl }}" style="width: 100%; max-height: 70vh; background: #111;"></video>
@elseif ($class === 'audio')
@if ($class === 'film' && $playback)
@include('content.video', ['playback' => $playback, 'poster' => $poster, 'style' => 'width: 100%; max-height: 70vh; background: #111;'])
@if ($fileUrl)
<p><a href="{{ $fileUrl }}">Datei öffnen</a></p>
@endif
@elseif ($fileUrl)
@if ($class === 'audio')
<audio controls preload="metadata" src="{{ $fileUrl }}" style="width: 100%;"></audio>
@elseif ($class === 'bild')
<img src="{{ $fileUrl }}" alt="{{ $version->element->working_title }}" style="max-width: 100%; height: auto;">