-
Notifications
You must be signed in to change notification settings - Fork 154
/
rpos.d.ts
96 lines (87 loc) · 1.89 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
///<reference path="./lib/extension.ts"/>
interface rposConfig {
NetworkAdapters: string[];
IpAddress: string;
ServicePort: number;
Username: string;
Password: string;
CameraType: string;
CameraDevice: string;
RTSPAddress: string;
RTSPPort: number;
RTSPName: string;
RTSPServer: number;
MulticastEnabled: boolean;
RTSPMulticastName : string;
MulticastAddress: string;
MulticastPort: number;
PTZDriver: string;
PTZOutput: string;
PTZSerialPort: string;
PTZSerialPortSettings: PTZSerialPortSettings;
PTZOutputURL: string;
PTZCameraAddress: number;
DeviceInformation: DeviceInformation;
logLevel: number;
logSoapCalls: Boolean;
}
interface PTZSerialPortSettings {
baudRate: number;
dataBits: number;
parity: string;
stopBits: number;
}
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;
}