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

+2 -2
View File
@@ -14,7 +14,7 @@
use App\Domain\Entitlement\DecideAccess;
use App\Domain\Entitlement\Grant;
use App\Domain\Entitlement\GrantStatus;
use App\Domain\Media\MediaRendition;
use App\Domain\Media\FilmPlayback;
use App\Domain\Media\ThumbnailRef;
use App\Filament\Support\EditorialCatalog;
use App\Models\User;
@@ -138,7 +138,7 @@ private function present(User $user, StructureNode $node): array
if ($node->contentElementVersionId !== null) {
$view = $this->open($user, $node->contentElementVersionId, $this->viewAction($node->outputClass));
$download = $this->open($user, $node->contentElementVersionId, 'laden');
$playback = MediaRendition::masterPath($node->contentElementVersionId) !== null ? 'hls' : 'file';
$playback = app(FilmPlayback::class)->mode($node->contentElementVersionId);
if ($view !== null && $node->contentElementId !== null) {
$path = ContentElement::query()->whereKey($node->contentElementId)->value('thumbnail_path');
$poster = ThumbnailRef::url('member.thumbnail', 'element', $node->contentElementId, $path);