forked from snobu/destreamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTypes.ts
34 lines (30 loc) · 816 Bytes
/
Types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export type Session = {
AccessToken: string;
ApiGatewayUri: string;
ApiGatewayVersion: string;
}
export type Video = {
title: string;
duration: string;
publishDate: string;
publishTime: string;
author: string;
authorEmail: string;
uniqueId: string;
outPath: string;
totalChunks: number; // Abstraction of FFmpeg timemark
playbackUrl: string;
posterImageUrl: string | null;
captionsUrl?: string
}
/* TODO: expand this template once we are all on board with a list
see https://github.com/snobu/destreamer/issues/190#issuecomment-663718010 for list*/
export const templateElements: Array<string> = [
'title',
'duration',
'publishDate',
'publishTime',
'author',
'authorEmail',
'uniqueId'
];