|
@@ -37,7 +37,7 @@ import {
|
|
|
import { GetAssetCountByTimeBucketDto } from './dto/get-asset-count-by-time-bucket.dto';
|
|
|
import { GetAssetByTimeBucketDto } from './dto/get-asset-by-time-bucket.dto';
|
|
|
import { AssetCountByUserIdResponseDto } from './response-dto/asset-count-by-user-id-response.dto';
|
|
|
-import { timeUtils } from '@app/common/utils';
|
|
|
+import { assetUtils, timeUtils } from '@app/common/utils';
|
|
|
import { CheckExistingAssetsDto } from './dto/check-existing-assets.dto';
|
|
|
import { CheckExistingAssetsResponseDto } from './response-dto/check-existing-assets-response.dto';
|
|
|
import { UpdateAssetDto } from './dto/update-asset.dto';
|
|
@@ -456,7 +456,7 @@ export class AssetService {
|
|
|
|
|
|
await fs.access(videoPath, constants.R_OK | constants.W_OK);
|
|
|
|
|
|
- if (query.isWeb && asset.mimeType == 'video/quicktime') {
|
|
|
+ if (query.isWeb && !assetUtils.isWebPlayable(asset.mimeType)) {
|
|
|
videoPath = asset.encodedVideoPath == '' ? String(asset.originalPath) : String(asset.encodedVideoPath);
|
|
|
mimeType = asset.encodedVideoPath == '' ? asset.mimeType : 'video/mp4';
|
|
|
}
|