forked from whyboris/Video-Hub-App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-globals.ts
43 lines (41 loc) · 1.6 KB
/
main-globals.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
35
36
37
38
39
40
41
42
43
export const globals: Globals = {
angularApp: null, // reference used to send messages back to Angular App
cancelCurrentImport: false,
currentlyOpenVhaFile: '', // OFFICAL DECREE IN NODE WHICH FILE IS CURRENTLY OPEN !!!
debug: false,
hubName: 'untitled', // in case user doesn't name their hub any name
selectedOutputFolder: '',
selectedSourceFolder: '',
version: '2.0.0', // update it and the `package.json` version in tandem before release!
vhaFileVersion: 2,
winRef: null,
screenshotSettings: {
clipHeight: 144, // default clip height
clipSnippetLength: 1, // the length of each snippet in the clip
clipSnippets: 0, // the number of video snippets in every clip; 0 == no clip extracted
fixed: true, // true => N screenshots per video; false => 1 screenshot every N minutes
height: 288,
n: 10,
},
};
interface Globals {
angularApp: any;
cancelCurrentImport: boolean;
currentlyOpenVhaFile: string;
debug: boolean;
hubName: string;
screenshotSettings: ScreenshotSettings;
selectedOutputFolder: string;
selectedSourceFolder: string;
version: string;
vhaFileVersion: number;
winRef: any;
}
export interface ScreenshotSettings {
clipHeight: number; // currently only these are allowed '144', '216', '288', '360', '432'
clipSnippetLength: number;
clipSnippets: number; // the number of video snippets in every clip; 0 == no clip extracted
fixed: boolean;
height: number; // currently only these are allowed '144', '216', '288', '360', '432'
n: number;
}