fix
This commit is contained in:
@@ -60,8 +60,8 @@ async def get_asset(
|
|||||||
# Main content: стримим из S3 без загрузки в RAM
|
# Main content: стримим из S3 без загрузки в RAM
|
||||||
if asset.minio_object_name and s3_adapter:
|
if asset.minio_object_name and s3_adapter:
|
||||||
content_type = "image/png"
|
content_type = "image/png"
|
||||||
if asset.content_type == AssetContentType.VIDEO:
|
# if asset.content_type == AssetContentType.VIDEO:
|
||||||
content_type = "video/mp4"
|
# content_type = "video/mp4"
|
||||||
return StreamingResponse(
|
return StreamingResponse(
|
||||||
s3_adapter.stream_file(asset.minio_object_name),
|
s3_adapter.stream_file(asset.minio_object_name),
|
||||||
media_type=content_type,
|
media_type=content_type,
|
||||||
|
|||||||
Reference in New Issue
Block a user