Wähle das Vorschaubild am Medium und nutze es als Standard in der Anzeige und in Modulen.
Deploy Test / test (push) Successful in 28s
Deploy Test / deploy (push) Successful in 39s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-16 21:34:11 +01:00
1 parent f86032cb5f
commit 8e77defaca
18 files changed
+664 -26

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@
@endif
@if ($entry['playable'])
<div class="player">
<video controls preload="metadata" playsinline @if (($entry['playback'] ?? 'file') === 'hls') data-hls="{{ $entry['url'] }}" @else src="{{ $entry['url'] }}" @endif></video>
<video controls preload="metadata" playsinline @if ($poster = \App\Domain\Media\ThumbnailRef::url('member.thumbnail', 'element', $entry['version']->element->id, $entry['version']->element->thumbnail_path)) poster="{{ $poster }}" @endif @if (($entry['playback'] ?? 'file') === 'hls') data-hls="{{ $entry['url'] }}" @else src="{{ $entry['url'] }}" @endif></video>
<button class="button button-quiet" type="button" data-fullscreen>Vollbild</button>
</div>
@elseif ($entry['allowed'] && $entry['url'])
-4
View File
@@ -74,10 +74,6 @@
'href' => route('member.program', $program['composition']),
'card' => $program + [
'error' => $program['composition']->thumbnail_error,
'image' => filled($program['composition']->thumbnail_path) ? ($program['composition']->thumbnail_alt ?: 'Vorschaubild') : null,
'image_url' => str_starts_with((string) $program['composition']->thumbnail_path, 'vorschau/')
? route('member.thumbnail', ['kind' => 'komposition', 'subject' => $program['composition']->id])
: null,
],
])
@endforeach
@@ -20,7 +20,7 @@
@if ($node['output_class'] === 'audio')
<audio controls preload="metadata" src="{{ $node['view_url'] }}"></audio>
@else
<video controls preload="metadata" playsinline @if (($node['playback'] ?? 'file') === 'hls') data-hls="{{ $node['view_url'] }}" @else src="{{ $node['view_url'] }}" @endif></video>
<video controls preload="metadata" playsinline @if ($node['poster_url'] ?? null) poster="{{ $node['poster_url'] }}" @endif @if (($node['playback'] ?? 'file') === 'hls') data-hls="{{ $node['view_url'] }}" @else src="{{ $node['view_url'] }}" @endif></video>
<button class="button button-quiet" type="button" data-fullscreen>Vollbild</button>
@endif
</div>
+2 -2
View File
@@ -34,8 +34,8 @@
<div>
<dt>Vorschaubild</dt>
<dd>
@if (str_starts_with((string) $composition->thumbnail_path, 'vorschau/'))
<img src="{{ route('member.thumbnail', ['kind' => 'komposition', 'subject' => $composition->id]) }}" alt="{{ $composition->thumbnail_alt ?: 'Vorschaubild' }}">
@if ($picture)
<img src="{{ route('member.thumbnail', ['kind' => $picture['kind'], 'subject' => $picture['subject']]) }}" alt="{{ $picture['alt'] ?: 'Vorschaubild' }}">
@else
Platzhalter
@endif