Wähle das Vorschaubild am Medium und nutze es als Standard in der Anzeige und in Modulen.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
f86032cb5f
commit
8e77defaca
18 files changed
+664
-26
No files matched your search
@@ -1,11 +1,12 @@
|
||||
@php
|
||||
$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);
|
||||
@endphp
|
||||
|
||||
@if ($fileUrl)
|
||||
@if ($class === 'film')
|
||||
<video controls preload="metadata" playsinline src="{{ $fileUrl }}" style="width: 100%; max-height: 70vh; background: #111;"></video>
|
||||
<video controls preload="metadata" playsinline @if ($poster) poster="{{ $poster }}" @endif src="{{ $fileUrl }}" style="width: 100%; max-height: 70vh; background: #111;"></video>
|
||||
@elseif ($class === 'audio')
|
||||
<audio controls preload="metadata" src="{{ $fileUrl }}" style="width: 100%;"></audio>
|
||||
@elseif ($class === 'bild')
|
||||
|
||||
Reference in new issue
Block a user