1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/src/common/entities/VideoDTO.ts

20 lines
453 B
TypeScript
Raw Normal View History

2021-06-28 01:33:37 +08:00
import {DirectoryPathDTO} from './DirectoryDTO';
import {MediaDimension, MediaDTO, MediaMetadata} from './MediaDTO';
2018-11-05 02:28:32 +08:00
export interface VideoDTO extends MediaDTO {
id: number;
name: string;
2021-06-28 01:33:37 +08:00
directory: DirectoryPathDTO;
metadata: VideoMetadata;
}
export interface VideoMetadata extends MediaMetadata {
size: MediaDimension;
creationDate: number;
bitRate: number;
duration: number; // in milliseconds
fileSize: number;
fps: number;
2018-11-05 02:28:32 +08:00
}