forked from BreeeZe/rpos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrpos.d.ts
78 lines (70 loc) · 1.51 KB
/
rpos.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
///<reference path="./lib/extension.ts"/>
interface rposConfig {
NetworkAdapters: string[];
IpAddress: string;
ServicePort: number;
RTSPPort: number;
RTSPName: string;
RTSPServer: number;
MulticastEnabled: boolean;
RTSPMulticastName : string;
MulticastAddress: string;
MulticastPort: number;
DeviceInformation: DeviceInformation;
logLevel: number;
logSoapCalls: Boolean;
}
interface DeviceInformation {
Manufacturer: string;
Model: string;
HardwareId: string;
SerialNumber: string;
FirmwareVersion: string;
}
interface TypeConstructor extends Function {
name: string;
}
interface SoapServiceOptions {
path: string,
services: any,
xml: any,
wsdlPath: string,
onReady: () => void;
}
interface Date {
stdTimezoneOffset: () => number;
dst: () => boolean;
}
interface UserControlOptions<T> {
stringify?: (T) => string,
range?: {
min: T,
max: T,
allowZero?: boolean,
step?: T
}
lookupSet?: UserControlsLookupSet<T>;
}
interface UserControlsLookup<T> {
value: T;
desc: string;
}
interface UserControlsLookupSet<T> extends Array<UserControlsLookup<T>> {
}
interface Resolution {
Width: number;
Height: number;
}
interface CameraSettingsParameter {
gop: number; //keyframe every X sec.
resolution: Resolution;
framerate: number;
bitrate: number;
profile: string;
quality: number;
}
interface CameraSettingsBase {
forceGop: boolean; // Use iframe interval setting from v4l2ctl.json instead of Onvif
resolution: Resolution;
framerate: number;
}