Spiele Filme in allen Playern über die gespeicherte Qualitätsleiter.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
8e77defaca
commit
1fb48783bf
14 files changed
+202
-18
No files matched your search
@@ -344,12 +344,12 @@ public function pickerDetail(): ?array
|
||||
return null;
|
||||
}
|
||||
|
||||
$row['file_url'] = null;
|
||||
$row['playback'] = null;
|
||||
|
||||
if (preg_match('/^element:(\d+)$/', (string) $row['target'], $match) === 1) {
|
||||
$version = ContentElementVersion::query()->find($match[1]);
|
||||
$row['file_url'] = $version instanceof ContentElementVersion
|
||||
? app(ContentPreviewController::class)->fileUrl($version)
|
||||
$version = ContentElementVersion::query()->with('element')->find($match[1]);
|
||||
$row['playback'] = $version instanceof ContentElementVersion
|
||||
? app(ContentPreviewController::class)->playback($version)
|
||||
: null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user