This commit is contained in:
xds
2026-02-12 15:32:28 +03:00
parent c6142715d9
commit 9d2e4e47de

View File

@@ -60,8 +60,8 @@ async def get_asset(
# Main content: стримим из S3 без загрузки в RAM
if asset.minio_object_name and s3_adapter:
content_type = "image/png"
if asset.content_type == AssetContentType.VIDEO:
content_type = "video/mp4"
# if asset.content_type == AssetContentType.VIDEO:
# content_type = "video/mp4"
return StreamingResponse(
s3_adapter.stream_file(asset.minio_object_name),
media_type=content_type,