Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class VideoSerializationHandler extends AbstractHandler
{
use LoggerAwareTrait;

private const ERROR_SEPARATOR = ' error ';

public function getAdditionalSystemFields(Asset $asset): array
{
if (!$asset instanceof Video) {
Expand Down Expand Up @@ -56,7 +58,7 @@ private function getImageThumbnail(Video $video): ?string
} catch (Throwable $e) {
$this->logger->error('Thumbnail generation failed for video asset: ' .
$video->getId() .
' error ' .
self::ERROR_SEPARATOR .
$e->getMessage()
);
}
Expand All @@ -71,7 +73,7 @@ private function getDuration(Video $video): ?float
} catch (Throwable $e) {
$this->logger->error('Duration extraction failed for video asset: ' .
$video->getId() .
' error ' .
self::ERROR_SEPARATOR .
$e->getMessage()
);
}
Expand All @@ -86,7 +88,7 @@ private function getWidth(Video $video): ?int
} catch (Throwable $e) {
$this->logger->error('Width extraction failed for video asset: ' .
$video->getId() .
' error ' .
self::ERROR_SEPARATOR .
$e->getMessage()
);
}
Expand All @@ -101,7 +103,7 @@ private function getHeight(Video $video): ?int
} catch (Throwable $e) {
$this->logger->error('Height extraction failed for video asset: ' .
$video->getId() .
' error ' .
self::ERROR_SEPARATOR .
$e->getMessage()
);
}
Expand Down
Loading