forked from chenfan0/fideo-live-record
-
Notifications
You must be signed in to change notification settings - Fork 0
/
type.d.ts
43 lines (40 loc) · 759 Bytes
/
type.d.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
interface IStreamConfig {
id: string
title: string
roomUrl: string
filename: string
directory: string
proxy?: string
cookie?: string
interval: number
liveUrls?: string[]
segmentTime?: string | ''
line: string // '0' '1' eg
status: number
convertToMP4: boolean
detectResolution: boolean
}
type Lang = 'en' | 'cn'
interface IDefaultDefaultSettingsConfig {
directory: string
lang: Lang
xizhiKey?: string
}
type IFfmpegProgressInfo = Record<
string,
{
targetSize: number
timemark: string
}
>
interface IDownloadDepProgressInfo {
title: string
showRetry: boolean
downloading: boolean
progress: number
}
interface IWebControlSetting {
webControlPath: string
enableWebControl: boolean
email: string
}