camstreamerlib 4.0.0-beta.95 → 4.0.0-beta.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/CamOverlayAPI.d.ts +4 -4
- package/cjs/CamStreamerAPI.d.ts +1058 -60
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +22 -22
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +12 -12
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +2 -2
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +7915 -1028
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +79 -7
- package/cjs/types/CamStreamerAPI/churchSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/churchSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/daCastSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/dailymotionSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +46 -0
- package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/gameChangerSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/hlsPullSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/hlsPushSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/{hlsSchema.d.ts → ibmSchema.d.ts} +50 -4
- package/cjs/types/CamStreamerAPI/{hlsSchema.js → ibmSchema.js} +3 -3
- package/cjs/types/CamStreamerAPI/index.d.ts +0 -1
- package/cjs/types/CamStreamerAPI/index.js +0 -1
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +46 -0
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +46 -0
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +46 -0
- package/{types/types/CamStreamerAPI/hlsSchema.d.ts → cjs/types/CamStreamerAPI/srtSchema.d.ts} +50 -4
- package/cjs/types/CamStreamerAPI/srtSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +75 -1
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +27 -2
- package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/twitchSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/vimeoSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +46 -0
- package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/wowzaSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +46 -45
- package/cjs/types/CamStreamerAPI/youtubeSchema.js +0 -15
- package/esm/types/CamStreamerAPI/CamStreamerAPI.js +65 -5
- package/esm/types/CamStreamerAPI/churchSchema.js +5 -0
- package/esm/types/CamStreamerAPI/daCastSchema.js +5 -0
- package/esm/types/CamStreamerAPI/dailymotionSchema.js +5 -0
- package/esm/types/CamStreamerAPI/gameChangerSchema.js +5 -0
- package/esm/types/CamStreamerAPI/hlsPullSchema.js +5 -0
- package/esm/types/CamStreamerAPI/hlsPushSchema.js +5 -0
- package/esm/types/CamStreamerAPI/{hlsSchema.js → ibmSchema.js} +2 -2
- package/esm/types/CamStreamerAPI/index.js +0 -1
- package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +5 -0
- package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +5 -0
- package/esm/types/CamStreamerAPI/srtSchema.js +5 -0
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +26 -1
- package/esm/types/CamStreamerAPI/twitchSchema.js +5 -0
- package/esm/types/CamStreamerAPI/vimeoSchema.js +5 -0
- package/esm/types/CamStreamerAPI/wowzaSchema.js +5 -0
- package/esm/types/CamStreamerAPI/youtubeSchema.js +0 -15
- package/package.json +1 -1
- package/types/CamOverlayAPI.d.ts +4 -4
- package/types/CamStreamerAPI.d.ts +1058 -60
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +22 -22
- package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +12 -12
- package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +2 -2
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +7915 -1028
- package/types/types/CamStreamerAPI/churchSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/daCastSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/ibmSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/index.d.ts +0 -1
- package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/srtSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +75 -1
- package/types/types/CamStreamerAPI/twitchSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/vimeoSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/windySchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/wowzaSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +46 -45
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const wowzaSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
enabled: z.ZodBoolean;
|
|
5
|
+
active: z.ZodBoolean;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<"manual">;
|
|
9
|
+
ioPort: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
type: "manual";
|
|
12
|
+
ioPort: string | null;
|
|
13
|
+
}, {
|
|
14
|
+
type: "manual";
|
|
15
|
+
ioPort: string | null;
|
|
16
|
+
}>, z.ZodObject<{
|
|
17
|
+
type: z.ZodLiteral<"onetime">;
|
|
18
|
+
startTime: z.ZodNumber;
|
|
19
|
+
stopTime: z.ZodNumber;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
type: "onetime";
|
|
22
|
+
startTime: number;
|
|
23
|
+
stopTime: number;
|
|
24
|
+
}, {
|
|
25
|
+
type: "onetime";
|
|
26
|
+
startTime: number;
|
|
27
|
+
stopTime: number;
|
|
28
|
+
}>, z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<"recurrent">;
|
|
30
|
+
schedule: z.ZodArray<z.ZodObject<{
|
|
31
|
+
start: z.ZodObject<{
|
|
32
|
+
day: z.ZodNumber;
|
|
33
|
+
timeS: z.ZodNumber;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
day: number;
|
|
36
|
+
timeS: number;
|
|
37
|
+
}, {
|
|
38
|
+
day: number;
|
|
39
|
+
timeS: number;
|
|
40
|
+
}>;
|
|
41
|
+
stop: z.ZodObject<{
|
|
42
|
+
day: z.ZodNumber;
|
|
43
|
+
timeS: z.ZodNumber;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
day: number;
|
|
46
|
+
timeS: number;
|
|
47
|
+
}, {
|
|
48
|
+
day: number;
|
|
49
|
+
timeS: number;
|
|
50
|
+
}>;
|
|
51
|
+
isActive: z.ZodBoolean;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
start: {
|
|
54
|
+
day: number;
|
|
55
|
+
timeS: number;
|
|
56
|
+
};
|
|
57
|
+
stop: {
|
|
58
|
+
day: number;
|
|
59
|
+
timeS: number;
|
|
60
|
+
};
|
|
61
|
+
isActive: boolean;
|
|
62
|
+
}, {
|
|
63
|
+
start: {
|
|
64
|
+
day: number;
|
|
65
|
+
timeS: number;
|
|
66
|
+
};
|
|
67
|
+
stop: {
|
|
68
|
+
day: number;
|
|
69
|
+
timeS: number;
|
|
70
|
+
};
|
|
71
|
+
isActive: boolean;
|
|
72
|
+
}>, "many">;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
type: "recurrent";
|
|
75
|
+
schedule: {
|
|
76
|
+
start: {
|
|
77
|
+
day: number;
|
|
78
|
+
timeS: number;
|
|
79
|
+
};
|
|
80
|
+
stop: {
|
|
81
|
+
day: number;
|
|
82
|
+
timeS: number;
|
|
83
|
+
};
|
|
84
|
+
isActive: boolean;
|
|
85
|
+
}[];
|
|
86
|
+
}, {
|
|
87
|
+
type: "recurrent";
|
|
88
|
+
schedule: {
|
|
89
|
+
start: {
|
|
90
|
+
day: number;
|
|
91
|
+
timeS: number;
|
|
92
|
+
};
|
|
93
|
+
stop: {
|
|
94
|
+
day: number;
|
|
95
|
+
timeS: number;
|
|
96
|
+
};
|
|
97
|
+
isActive: boolean;
|
|
98
|
+
}[];
|
|
99
|
+
}>]>;
|
|
100
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
101
|
+
internalVapixParameters: z.ZodObject<{
|
|
102
|
+
camera: z.ZodString;
|
|
103
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
104
|
+
compression: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
videobitrate: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
videomaxbitrate: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
camera: string;
|
|
111
|
+
resolution?: string | undefined;
|
|
112
|
+
compression?: number | undefined;
|
|
113
|
+
audio?: 0 | 1 | undefined;
|
|
114
|
+
fps?: number | undefined;
|
|
115
|
+
videobitrate?: number | undefined;
|
|
116
|
+
videomaxbitrate?: number | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
camera: string;
|
|
119
|
+
resolution?: string | undefined;
|
|
120
|
+
compression?: number | undefined;
|
|
121
|
+
audio?: 0 | 1 | undefined;
|
|
122
|
+
fps?: number | undefined;
|
|
123
|
+
videobitrate?: number | undefined;
|
|
124
|
+
videomaxbitrate?: number | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
} & {
|
|
127
|
+
type: z.ZodLiteral<"wowza">;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
type: "wowza";
|
|
130
|
+
enabled: boolean;
|
|
131
|
+
id: number;
|
|
132
|
+
active: boolean;
|
|
133
|
+
title: string;
|
|
134
|
+
trigger: {
|
|
135
|
+
type: "manual";
|
|
136
|
+
ioPort: string | null;
|
|
137
|
+
} | {
|
|
138
|
+
type: "onetime";
|
|
139
|
+
startTime: number;
|
|
140
|
+
stopTime: number;
|
|
141
|
+
} | {
|
|
142
|
+
type: "recurrent";
|
|
143
|
+
schedule: {
|
|
144
|
+
start: {
|
|
145
|
+
day: number;
|
|
146
|
+
timeS: number;
|
|
147
|
+
};
|
|
148
|
+
stop: {
|
|
149
|
+
day: number;
|
|
150
|
+
timeS: number;
|
|
151
|
+
};
|
|
152
|
+
isActive: boolean;
|
|
153
|
+
}[];
|
|
154
|
+
};
|
|
155
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
156
|
+
internalVapixParameters: {
|
|
157
|
+
camera: string;
|
|
158
|
+
resolution?: string | undefined;
|
|
159
|
+
compression?: number | undefined;
|
|
160
|
+
audio?: 0 | 1 | undefined;
|
|
161
|
+
fps?: number | undefined;
|
|
162
|
+
videobitrate?: number | undefined;
|
|
163
|
+
videomaxbitrate?: number | undefined;
|
|
164
|
+
};
|
|
165
|
+
}, {
|
|
166
|
+
type: "wowza";
|
|
167
|
+
enabled: boolean;
|
|
168
|
+
id: number;
|
|
169
|
+
active: boolean;
|
|
170
|
+
title: string;
|
|
171
|
+
trigger: {
|
|
172
|
+
type: "manual";
|
|
173
|
+
ioPort: string | null;
|
|
174
|
+
} | {
|
|
175
|
+
type: "onetime";
|
|
176
|
+
startTime: number;
|
|
177
|
+
stopTime: number;
|
|
178
|
+
} | {
|
|
179
|
+
type: "recurrent";
|
|
180
|
+
schedule: {
|
|
181
|
+
start: {
|
|
182
|
+
day: number;
|
|
183
|
+
timeS: number;
|
|
184
|
+
};
|
|
185
|
+
stop: {
|
|
186
|
+
day: number;
|
|
187
|
+
timeS: number;
|
|
188
|
+
};
|
|
189
|
+
isActive: boolean;
|
|
190
|
+
}[];
|
|
191
|
+
};
|
|
192
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
193
|
+
internalVapixParameters: {
|
|
194
|
+
camera: string;
|
|
195
|
+
resolution?: string | undefined;
|
|
196
|
+
compression?: number | undefined;
|
|
197
|
+
audio?: 0 | 1 | undefined;
|
|
198
|
+
fps?: number | undefined;
|
|
199
|
+
videobitrate?: number | undefined;
|
|
200
|
+
videomaxbitrate?: number | undefined;
|
|
201
|
+
};
|
|
202
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.wowzaSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const streamCommonTypes_1 = require("./streamCommonTypes");
|
|
9
|
+
exports.wowzaSchema = streamCommonTypes_1.streamCommonSchema.extend({
|
|
10
|
+
type: zod_1.default.literal('wowza'),
|
|
11
|
+
});
|
|
@@ -97,23 +97,34 @@ export declare const youtubeSchema: z.ZodObject<{
|
|
|
97
97
|
isActive: boolean;
|
|
98
98
|
}[];
|
|
99
99
|
}>]>;
|
|
100
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
101
|
+
internalVapixParameters: z.ZodObject<{
|
|
102
|
+
camera: z.ZodString;
|
|
103
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
104
|
+
compression: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
videobitrate: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
videomaxbitrate: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
camera: string;
|
|
111
|
+
resolution?: string | undefined;
|
|
112
|
+
compression?: number | undefined;
|
|
113
|
+
audio?: 0 | 1 | undefined;
|
|
114
|
+
fps?: number | undefined;
|
|
115
|
+
videobitrate?: number | undefined;
|
|
116
|
+
videomaxbitrate?: number | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
camera: string;
|
|
119
|
+
resolution?: string | undefined;
|
|
120
|
+
compression?: number | undefined;
|
|
121
|
+
audio?: 0 | 1 | undefined;
|
|
122
|
+
fps?: number | undefined;
|
|
123
|
+
videobitrate?: number | undefined;
|
|
124
|
+
videomaxbitrate?: number | undefined;
|
|
125
|
+
}>;
|
|
100
126
|
} & {
|
|
101
127
|
type: z.ZodLiteral<"youtube">;
|
|
102
|
-
description: z.ZodOptional<z.ZodString>;
|
|
103
|
-
playlist: z.ZodOptional<z.ZodString>;
|
|
104
|
-
tags: z.ZodArray<z.ZodString, "many">;
|
|
105
|
-
notificationEmail: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
106
|
-
streamPrivacy: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"unlisted">, z.ZodLiteral<"private">]>;
|
|
107
|
-
latency: z.ZodUnion<[z.ZodLiteral<"normal">, z.ZodLiteral<"low">, z.ZodLiteral<"ultra_low">]>;
|
|
108
|
-
afterEndStatus: z.ZodUnion<[z.ZodLiteral<"no_change">, z.ZodLiteral<"public">, z.ZodLiteral<"unlisted">, z.ZodLiteral<"private">]>;
|
|
109
|
-
cameraLedStatus: z.ZodBoolean;
|
|
110
|
-
dvr: z.ZodBoolean;
|
|
111
|
-
saveToSdCard: z.ZodBoolean;
|
|
112
|
-
statusCameraLed: z.ZodBoolean;
|
|
113
|
-
statusCameraOutput: z.ZodString;
|
|
114
|
-
hasWatchdogs: z.ZodBoolean;
|
|
115
|
-
countdown: z.ZodBoolean;
|
|
116
|
-
enableManualControl: z.ZodBoolean;
|
|
117
128
|
}, "strip", z.ZodTypeAny, {
|
|
118
129
|
type: "youtube";
|
|
119
130
|
enabled: boolean;
|
|
@@ -141,21 +152,16 @@ export declare const youtubeSchema: z.ZodObject<{
|
|
|
141
152
|
isActive: boolean;
|
|
142
153
|
}[];
|
|
143
154
|
};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
countdown: boolean;
|
|
155
|
-
enableManualControl: boolean;
|
|
156
|
-
playlist?: string | undefined;
|
|
157
|
-
description?: string | undefined;
|
|
158
|
-
notificationEmail?: string[] | undefined;
|
|
155
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
156
|
+
internalVapixParameters: {
|
|
157
|
+
camera: string;
|
|
158
|
+
resolution?: string | undefined;
|
|
159
|
+
compression?: number | undefined;
|
|
160
|
+
audio?: 0 | 1 | undefined;
|
|
161
|
+
fps?: number | undefined;
|
|
162
|
+
videobitrate?: number | undefined;
|
|
163
|
+
videomaxbitrate?: number | undefined;
|
|
164
|
+
};
|
|
159
165
|
}, {
|
|
160
166
|
type: "youtube";
|
|
161
167
|
enabled: boolean;
|
|
@@ -183,19 +189,14 @@ export declare const youtubeSchema: z.ZodObject<{
|
|
|
183
189
|
isActive: boolean;
|
|
184
190
|
}[];
|
|
185
191
|
};
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
countdown: boolean;
|
|
197
|
-
enableManualControl: boolean;
|
|
198
|
-
playlist?: string | undefined;
|
|
199
|
-
description?: string | undefined;
|
|
200
|
-
notificationEmail?: string[] | undefined;
|
|
192
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
193
|
+
internalVapixParameters: {
|
|
194
|
+
camera: string;
|
|
195
|
+
resolution?: string | undefined;
|
|
196
|
+
compression?: number | undefined;
|
|
197
|
+
audio?: 0 | 1 | undefined;
|
|
198
|
+
fps?: number | undefined;
|
|
199
|
+
videobitrate?: number | undefined;
|
|
200
|
+
videomaxbitrate?: number | undefined;
|
|
201
|
+
};
|
|
201
202
|
}>;
|
|
@@ -8,19 +8,4 @@ const zod_1 = __importDefault(require("zod"));
|
|
|
8
8
|
const streamCommonTypes_1 = require("./streamCommonTypes");
|
|
9
9
|
exports.youtubeSchema = streamCommonTypes_1.streamCommonSchema.extend({
|
|
10
10
|
type: zod_1.default.literal('youtube'),
|
|
11
|
-
description: zod_1.default.string().optional(),
|
|
12
|
-
playlist: zod_1.default.string().optional(),
|
|
13
|
-
tags: zod_1.default.array(zod_1.default.string()),
|
|
14
|
-
notificationEmail: zod_1.default.array(zod_1.default.string().email()).optional(),
|
|
15
|
-
streamPrivacy: zod_1.default.union([zod_1.default.literal('public'), zod_1.default.literal('unlisted'), zod_1.default.literal('private')]),
|
|
16
|
-
latency: zod_1.default.union([zod_1.default.literal('normal'), zod_1.default.literal('low'), zod_1.default.literal('ultra_low')]),
|
|
17
|
-
afterEndStatus: zod_1.default.union([zod_1.default.literal('no_change'), zod_1.default.literal('public'), zod_1.default.literal('unlisted'), zod_1.default.literal('private')]),
|
|
18
|
-
cameraLedStatus: zod_1.default.boolean(),
|
|
19
|
-
dvr: zod_1.default.boolean(),
|
|
20
|
-
saveToSdCard: zod_1.default.boolean(),
|
|
21
|
-
statusCameraLed: zod_1.default.boolean(),
|
|
22
|
-
statusCameraOutput: zod_1.default.string(),
|
|
23
|
-
hasWatchdogs: zod_1.default.boolean(),
|
|
24
|
-
countdown: zod_1.default.boolean(),
|
|
25
|
-
enableManualControl: zod_1.default.boolean(),
|
|
26
11
|
});
|
|
@@ -1,27 +1,48 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { facebookSchema } from './facebookSchema';
|
|
3
|
-
import { hlsSchema } from './hlsSchema';
|
|
4
3
|
import { mpegDvbSchema } from './mpegDvbSchema';
|
|
5
4
|
import { rtmpSchema } from './rtmpSchema';
|
|
6
5
|
import { sdCardSchema } from './sdCardSchema';
|
|
7
6
|
import { windySchema } from './windySchema';
|
|
8
7
|
import { youtubeSchema } from './youtubeSchema';
|
|
8
|
+
import { vimeoSchema } from './vimeoSchema';
|
|
9
|
+
import { twitchSchema } from './twitchSchema';
|
|
10
|
+
import { churchSchema } from './churchSchema';
|
|
11
|
+
import { srtSchema } from './srtSchema';
|
|
12
|
+
import { daCastSchema } from './daCastSchema';
|
|
13
|
+
import { hlsPullSchema } from './hlsPullSchema';
|
|
14
|
+
import { hlsPushSchema } from './hlsPushSchema';
|
|
15
|
+
import { wowzaSchema } from './wowzaSchema';
|
|
16
|
+
import { dailymotionSchema } from './dailymotionSchema';
|
|
17
|
+
import { ibmSchema } from './ibmSchema';
|
|
18
|
+
import { microsoftAzureSchema } from './microsoftAzureSchema';
|
|
19
|
+
import { microsoftStreamSchema } from './microsoftStreamSchema';
|
|
20
|
+
import { gameChangerSchema } from './gameChangerSchema';
|
|
9
21
|
export const streamSchema = z.discriminatedUnion('type', [
|
|
10
22
|
facebookSchema,
|
|
11
|
-
hlsSchema,
|
|
12
23
|
mpegDvbSchema,
|
|
13
24
|
rtmpSchema,
|
|
14
25
|
sdCardSchema,
|
|
15
26
|
windySchema,
|
|
16
27
|
youtubeSchema,
|
|
28
|
+
vimeoSchema,
|
|
29
|
+
twitchSchema,
|
|
30
|
+
churchSchema,
|
|
31
|
+
srtSchema,
|
|
32
|
+
daCastSchema,
|
|
33
|
+
hlsPullSchema,
|
|
34
|
+
hlsPushSchema,
|
|
35
|
+
wowzaSchema,
|
|
36
|
+
dailymotionSchema,
|
|
37
|
+
ibmSchema,
|
|
38
|
+
microsoftAzureSchema,
|
|
39
|
+
microsoftStreamSchema,
|
|
40
|
+
gameChangerSchema,
|
|
17
41
|
]);
|
|
18
42
|
export const streamListSchema = z.object({ streamList: z.array(streamSchema) });
|
|
19
43
|
export const isFacebookStream = (stream) => {
|
|
20
44
|
return stream.type === 'facebook';
|
|
21
45
|
};
|
|
22
|
-
export const isHlsStream = (stream) => {
|
|
23
|
-
return stream.type === 'hls';
|
|
24
|
-
};
|
|
25
46
|
export const isMpegDvbStream = (stream) => {
|
|
26
47
|
return stream.type === 'mpeg_dvb';
|
|
27
48
|
};
|
|
@@ -37,6 +58,45 @@ export const isWindyStream = (stream) => {
|
|
|
37
58
|
export const isYouTubeStream = (stream) => {
|
|
38
59
|
return stream.type === 'youtube';
|
|
39
60
|
};
|
|
61
|
+
export const isVimeoStream = (stream) => {
|
|
62
|
+
return stream.type === 'vimeo';
|
|
63
|
+
};
|
|
64
|
+
export const isTwitchStream = (stream) => {
|
|
65
|
+
return stream.type === 'twitch';
|
|
66
|
+
};
|
|
67
|
+
export const isChurchStream = (stream) => {
|
|
68
|
+
return stream.type === 'church';
|
|
69
|
+
};
|
|
70
|
+
export const isSrtStream = (stream) => {
|
|
71
|
+
return stream.type === 'srt';
|
|
72
|
+
};
|
|
73
|
+
export const isDaCastStream = (stream) => {
|
|
74
|
+
return stream.type === 'da_cast';
|
|
75
|
+
};
|
|
76
|
+
export const isHlsPullStream = (stream) => {
|
|
77
|
+
return stream.type === 'hls_pull';
|
|
78
|
+
};
|
|
79
|
+
export const isHlsPushStream = (stream) => {
|
|
80
|
+
return stream.type === 'hls_push';
|
|
81
|
+
};
|
|
82
|
+
export const isWowzaStream = (stream) => {
|
|
83
|
+
return stream.type === 'wowza';
|
|
84
|
+
};
|
|
85
|
+
export const isDailymotionStream = (stream) => {
|
|
86
|
+
return stream.type === 'dailymotion';
|
|
87
|
+
};
|
|
88
|
+
export const isIbmStream = (stream) => {
|
|
89
|
+
return stream.type === 'ibm';
|
|
90
|
+
};
|
|
91
|
+
export const isMicrosoftAzureStream = (stream) => {
|
|
92
|
+
return stream.type === 'microsoft_azure';
|
|
93
|
+
};
|
|
94
|
+
export const isMicrosoftStream = (stream) => {
|
|
95
|
+
return stream.type === 'microsoft_stream';
|
|
96
|
+
};
|
|
97
|
+
export const isGameChangerStream = (stream) => {
|
|
98
|
+
return stream.type === 'game_changer';
|
|
99
|
+
};
|
|
40
100
|
export var AudioType;
|
|
41
101
|
(function (AudioType) {
|
|
42
102
|
AudioType[AudioType["MP3"] = 0] = "MP3";
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { booleanSchema } from '../common';
|
|
2
3
|
export const streamTypeSchema = z.union([
|
|
3
4
|
z.literal('youtube'),
|
|
4
5
|
z.literal('facebook'),
|
|
5
6
|
z.literal('sd_card'),
|
|
6
7
|
z.literal('windy'),
|
|
7
8
|
z.literal('mpeg_dvb'),
|
|
8
|
-
z.literal('hls'),
|
|
9
9
|
z.literal('rtmp'),
|
|
10
|
+
z.literal('dailymotion'),
|
|
11
|
+
z.literal('ibm'),
|
|
12
|
+
z.literal('hls_pull'),
|
|
13
|
+
z.literal('hls_push'),
|
|
14
|
+
z.literal('wowza'),
|
|
15
|
+
z.literal('microsoft_stream'),
|
|
16
|
+
z.literal('microsoft_azure'),
|
|
17
|
+
z.literal('vimeo'),
|
|
18
|
+
z.literal('twitch'),
|
|
19
|
+
z.literal('church'),
|
|
20
|
+
z.literal('srt'),
|
|
21
|
+
z.literal('da_cast'),
|
|
22
|
+
z.literal('game_changer'),
|
|
10
23
|
]);
|
|
11
24
|
const scheduleSchema = z.object({
|
|
12
25
|
start: z.object({
|
|
@@ -30,10 +43,22 @@ export const streamTriggerSchema = z.discriminatedUnion('type', [
|
|
|
30
43
|
schedule: z.array(scheduleSchema),
|
|
31
44
|
}),
|
|
32
45
|
]);
|
|
46
|
+
export const streamInputTypeSchema = z.union([z.literal('CSw'), z.literal('CRS'), z.literal('RTSP_URL')]);
|
|
47
|
+
export const internalVapixParametersSchema = z.object({
|
|
48
|
+
camera: z.string(),
|
|
49
|
+
resolution: z.string().optional(),
|
|
50
|
+
compression: z.number().optional(),
|
|
51
|
+
fps: z.number().int().optional(),
|
|
52
|
+
videobitrate: z.number().int().optional(),
|
|
53
|
+
videomaxbitrate: z.number().int().optional(),
|
|
54
|
+
audio: booleanSchema.optional(),
|
|
55
|
+
});
|
|
33
56
|
export const streamCommonSchema = z.object({
|
|
34
57
|
id: z.number(),
|
|
35
58
|
enabled: z.boolean(),
|
|
36
59
|
active: z.boolean(),
|
|
37
60
|
title: z.string(),
|
|
38
61
|
trigger: streamTriggerSchema,
|
|
62
|
+
inputType: streamInputTypeSchema,
|
|
63
|
+
internalVapixParameters: internalVapixParametersSchema,
|
|
39
64
|
});
|
|
@@ -2,19 +2,4 @@ import z from 'zod';
|
|
|
2
2
|
import { streamCommonSchema } from './streamCommonTypes';
|
|
3
3
|
export const youtubeSchema = streamCommonSchema.extend({
|
|
4
4
|
type: z.literal('youtube'),
|
|
5
|
-
description: z.string().optional(),
|
|
6
|
-
playlist: z.string().optional(),
|
|
7
|
-
tags: z.array(z.string()),
|
|
8
|
-
notificationEmail: z.array(z.string().email()).optional(),
|
|
9
|
-
streamPrivacy: z.union([z.literal('public'), z.literal('unlisted'), z.literal('private')]),
|
|
10
|
-
latency: z.union([z.literal('normal'), z.literal('low'), z.literal('ultra_low')]),
|
|
11
|
-
afterEndStatus: z.union([z.literal('no_change'), z.literal('public'), z.literal('unlisted'), z.literal('private')]),
|
|
12
|
-
cameraLedStatus: z.boolean(),
|
|
13
|
-
dvr: z.boolean(),
|
|
14
|
-
saveToSdCard: z.boolean(),
|
|
15
|
-
statusCameraLed: z.boolean(),
|
|
16
|
-
statusCameraOutput: z.string(),
|
|
17
|
-
hasWatchdogs: z.boolean(),
|
|
18
|
-
countdown: z.boolean(),
|
|
19
|
-
enableManualControl: z.boolean(),
|
|
20
5
|
});
|