mirror of
https://github.com/immich-app/immich.git
synced 2025-06-01 04:36:19 -04:00
* Implementing video upload features * setup image resize processor * Add video thumbnail with duration and icon * Fixed issue with video upload timeout and upper case file type on ios * Added video player page * Added video player page * Fixing video player not play on ios * Added partial file streaming for ios/android video request * Added nginx as proxy server for better file serving * update nginx and docker-compose file * Video player working correctly * Video player working correctly * Split duration to the second
29 lines
460 B
TypeScript
29 lines
460 B
TypeScript
import { IsNotEmpty, IsOptional } from 'class-validator';
|
|
import { AssetType } from '../entities/asset.entity';
|
|
|
|
export class CreateAssetDto {
|
|
@IsNotEmpty()
|
|
deviceAssetId: string;
|
|
|
|
@IsNotEmpty()
|
|
deviceId: string;
|
|
|
|
@IsNotEmpty()
|
|
assetType: AssetType;
|
|
|
|
@IsNotEmpty()
|
|
createdAt: string;
|
|
|
|
@IsNotEmpty()
|
|
modifiedAt: string;
|
|
|
|
@IsNotEmpty()
|
|
isFavorite: boolean;
|
|
|
|
@IsNotEmpty()
|
|
fileExtension: string;
|
|
|
|
@IsOptional()
|
|
duration: string;
|
|
}
|