Leite Vorschaubilder und Filmstufen geschuetzt ab
Deploy Test / test (push) Successful in 2m28s
Deploy Test / deploy (push) Failing after 14s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-16 09:40:59 +01:00
1 parent d6ff881e4e
commit c997eb500c
32 files changed
+979 -68

No files matched your search

+5
View File
@@ -13,6 +13,7 @@
use App\Domain\Entitlement\DecideAccess;
use App\Domain\Entitlement\Grant;
use App\Domain\Entitlement\GrantStatus;
use App\Domain\Media\MediaRendition;
use App\Models\User;
use Illuminate\Support\Collection;
@@ -117,9 +118,12 @@ private function present(User $user, StructureNode $node): array
$view = null;
$download = null;
$playback = 'file';
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';
}
return [
@@ -127,6 +131,7 @@ private function present(User $user, StructureNode $node): array
'title' => $node->title,
'kind' => $node->editorialKindLabel ?? $node->technicalKindLabel,
'output_class' => $node->outputClass,
'playback' => $playback,
'view_url' => $view,
'download_url' => $download,
'program_url' => $this->programUrl($node),