camstreamerlib 4.0.0-beta.94 → 4.0.0-beta.95
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 +63 -1055
- 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 +1113 -7971
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +16 -82
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +0 -46
- package/{types/types/CamStreamerAPI/ibmSchema.d.ts → cjs/types/CamStreamerAPI/hlsSchema.d.ts} +4 -50
- package/cjs/types/CamStreamerAPI/{ibmSchema.js → hlsSchema.js} +3 -3
- package/cjs/types/CamStreamerAPI/index.d.ts +1 -0
- package/cjs/types/CamStreamerAPI/index.js +1 -0
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -46
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +9 -46
- package/cjs/types/CamStreamerAPI/rtmpSchema.js +3 -0
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +0 -46
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +1 -75
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +2 -26
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +0 -46
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +45 -46
- package/cjs/types/CamStreamerAPI/youtubeSchema.js +15 -0
- package/esm/types/CamStreamerAPI/CamStreamerAPI.js +14 -68
- package/esm/types/CamStreamerAPI/{ibmSchema.js → hlsSchema.js} +2 -2
- package/esm/types/CamStreamerAPI/index.js +1 -0
- package/esm/types/CamStreamerAPI/rtmpSchema.js +3 -0
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +1 -25
- package/esm/types/CamStreamerAPI/youtubeSchema.js +15 -0
- package/package.json +1 -1
- package/types/CamOverlayAPI.d.ts +4 -4
- package/types/CamStreamerAPI.d.ts +63 -1055
- 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 +1113 -7971
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +0 -46
- package/{cjs/types/CamStreamerAPI/ibmSchema.d.ts → types/types/CamStreamerAPI/hlsSchema.d.ts} +4 -50
- package/types/types/CamStreamerAPI/index.d.ts +1 -0
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -46
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +9 -46
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +0 -46
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +1 -75
- package/types/types/CamStreamerAPI/windySchema.d.ts +0 -46
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +45 -46
- package/cjs/types/CamStreamerAPI/churchSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/churchSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/daCastSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/dailymotionSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/gameChangerSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/hlsPullSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/hlsPushSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/srtSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/srtSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/twitchSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/vimeoSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/wowzaSchema.js +0 -11
- package/esm/types/CamStreamerAPI/churchSchema.js +0 -5
- package/esm/types/CamStreamerAPI/daCastSchema.js +0 -5
- package/esm/types/CamStreamerAPI/dailymotionSchema.js +0 -5
- package/esm/types/CamStreamerAPI/gameChangerSchema.js +0 -5
- package/esm/types/CamStreamerAPI/hlsPullSchema.js +0 -5
- package/esm/types/CamStreamerAPI/hlsPushSchema.js +0 -5
- package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +0 -5
- package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +0 -5
- package/esm/types/CamStreamerAPI/srtSchema.js +0 -5
- package/esm/types/CamStreamerAPI/twitchSchema.js +0 -5
- package/esm/types/CamStreamerAPI/vimeoSchema.js +0 -5
- package/esm/types/CamStreamerAPI/wowzaSchema.js +0 -5
- package/types/types/CamStreamerAPI/churchSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/daCastSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/srtSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/twitchSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/vimeoSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/wowzaSchema.d.ts +0 -202
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const streamTypeSchema: z.ZodUnion<[z.ZodLiteral<"youtube">, z.ZodLiteral<"facebook">, z.ZodLiteral<"sd_card">, z.ZodLiteral<"windy">, z.ZodLiteral<"mpeg_dvb">, z.ZodLiteral<"
|
|
2
|
+
export declare const streamTypeSchema: z.ZodUnion<[z.ZodLiteral<"youtube">, z.ZodLiteral<"facebook">, z.ZodLiteral<"sd_card">, z.ZodLiteral<"windy">, z.ZodLiteral<"mpeg_dvb">, z.ZodLiteral<"hls">, z.ZodLiteral<"rtmp">]>;
|
|
3
3
|
export type TStreamType = z.infer<typeof streamTypeSchema>;
|
|
4
4
|
declare const scheduleSchema: z.ZodObject<{
|
|
5
5
|
start: z.ZodObject<{
|
|
@@ -140,34 +140,6 @@ export declare const streamTriggerSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
140
140
|
export type TStreamTrigger = z.infer<typeof streamTriggerSchema>;
|
|
141
141
|
export type TStreamTriggerType = TStreamTrigger['type'];
|
|
142
142
|
export type TTriggerSchedule = z.infer<typeof scheduleSchema>;
|
|
143
|
-
export declare const streamInputTypeSchema: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
144
|
-
export type TStreamInputType = z.infer<typeof streamInputTypeSchema>;
|
|
145
|
-
export declare const internalVapixParametersSchema: z.ZodObject<{
|
|
146
|
-
camera: z.ZodString;
|
|
147
|
-
resolution: z.ZodOptional<z.ZodString>;
|
|
148
|
-
compression: z.ZodOptional<z.ZodNumber>;
|
|
149
|
-
fps: z.ZodOptional<z.ZodNumber>;
|
|
150
|
-
videobitrate: z.ZodOptional<z.ZodNumber>;
|
|
151
|
-
videomaxbitrate: z.ZodOptional<z.ZodNumber>;
|
|
152
|
-
audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
153
|
-
}, "strip", z.ZodTypeAny, {
|
|
154
|
-
camera: string;
|
|
155
|
-
resolution?: string | undefined;
|
|
156
|
-
compression?: number | undefined;
|
|
157
|
-
audio?: 0 | 1 | undefined;
|
|
158
|
-
fps?: number | undefined;
|
|
159
|
-
videobitrate?: number | undefined;
|
|
160
|
-
videomaxbitrate?: number | undefined;
|
|
161
|
-
}, {
|
|
162
|
-
camera: string;
|
|
163
|
-
resolution?: string | undefined;
|
|
164
|
-
compression?: number | undefined;
|
|
165
|
-
audio?: 0 | 1 | undefined;
|
|
166
|
-
fps?: number | undefined;
|
|
167
|
-
videobitrate?: number | undefined;
|
|
168
|
-
videomaxbitrate?: number | undefined;
|
|
169
|
-
}>;
|
|
170
|
-
export type TInternalVapixParameters = z.infer<typeof internalVapixParametersSchema>;
|
|
171
143
|
export declare const streamCommonSchema: z.ZodObject<{
|
|
172
144
|
id: z.ZodNumber;
|
|
173
145
|
enabled: z.ZodBoolean;
|
|
@@ -266,32 +238,6 @@ export declare const streamCommonSchema: z.ZodObject<{
|
|
|
266
238
|
isActive: boolean;
|
|
267
239
|
}[];
|
|
268
240
|
}>]>;
|
|
269
|
-
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
270
|
-
internalVapixParameters: z.ZodObject<{
|
|
271
|
-
camera: z.ZodString;
|
|
272
|
-
resolution: z.ZodOptional<z.ZodString>;
|
|
273
|
-
compression: z.ZodOptional<z.ZodNumber>;
|
|
274
|
-
fps: z.ZodOptional<z.ZodNumber>;
|
|
275
|
-
videobitrate: z.ZodOptional<z.ZodNumber>;
|
|
276
|
-
videomaxbitrate: z.ZodOptional<z.ZodNumber>;
|
|
277
|
-
audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
278
|
-
}, "strip", z.ZodTypeAny, {
|
|
279
|
-
camera: string;
|
|
280
|
-
resolution?: string | undefined;
|
|
281
|
-
compression?: number | undefined;
|
|
282
|
-
audio?: 0 | 1 | undefined;
|
|
283
|
-
fps?: number | undefined;
|
|
284
|
-
videobitrate?: number | undefined;
|
|
285
|
-
videomaxbitrate?: number | undefined;
|
|
286
|
-
}, {
|
|
287
|
-
camera: string;
|
|
288
|
-
resolution?: string | undefined;
|
|
289
|
-
compression?: number | undefined;
|
|
290
|
-
audio?: 0 | 1 | undefined;
|
|
291
|
-
fps?: number | undefined;
|
|
292
|
-
videobitrate?: number | undefined;
|
|
293
|
-
videomaxbitrate?: number | undefined;
|
|
294
|
-
}>;
|
|
295
241
|
}, "strip", z.ZodTypeAny, {
|
|
296
242
|
enabled: boolean;
|
|
297
243
|
id: number;
|
|
@@ -318,16 +264,6 @@ export declare const streamCommonSchema: z.ZodObject<{
|
|
|
318
264
|
isActive: boolean;
|
|
319
265
|
}[];
|
|
320
266
|
};
|
|
321
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
322
|
-
internalVapixParameters: {
|
|
323
|
-
camera: string;
|
|
324
|
-
resolution?: string | undefined;
|
|
325
|
-
compression?: number | undefined;
|
|
326
|
-
audio?: 0 | 1 | undefined;
|
|
327
|
-
fps?: number | undefined;
|
|
328
|
-
videobitrate?: number | undefined;
|
|
329
|
-
videomaxbitrate?: number | undefined;
|
|
330
|
-
};
|
|
331
267
|
}, {
|
|
332
268
|
enabled: boolean;
|
|
333
269
|
id: number;
|
|
@@ -354,16 +290,6 @@ export declare const streamCommonSchema: z.ZodObject<{
|
|
|
354
290
|
isActive: boolean;
|
|
355
291
|
}[];
|
|
356
292
|
};
|
|
357
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
358
|
-
internalVapixParameters: {
|
|
359
|
-
camera: string;
|
|
360
|
-
resolution?: string | undefined;
|
|
361
|
-
compression?: number | undefined;
|
|
362
|
-
audio?: 0 | 1 | undefined;
|
|
363
|
-
fps?: number | undefined;
|
|
364
|
-
videobitrate?: number | undefined;
|
|
365
|
-
videomaxbitrate?: number | undefined;
|
|
366
|
-
};
|
|
367
293
|
}>;
|
|
368
294
|
export type TCommonStream = z.infer<typeof streamCommonSchema>;
|
|
369
295
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.streamCommonSchema = exports.
|
|
3
|
+
exports.streamCommonSchema = exports.streamTriggerSchema = exports.streamTypeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.streamTypeSchema = zod_1.z.union([
|
|
6
6
|
zod_1.z.literal('youtube'),
|
|
@@ -8,20 +8,8 @@ exports.streamTypeSchema = zod_1.z.union([
|
|
|
8
8
|
zod_1.z.literal('sd_card'),
|
|
9
9
|
zod_1.z.literal('windy'),
|
|
10
10
|
zod_1.z.literal('mpeg_dvb'),
|
|
11
|
+
zod_1.z.literal('hls'),
|
|
11
12
|
zod_1.z.literal('rtmp'),
|
|
12
|
-
zod_1.z.literal('dailymotion'),
|
|
13
|
-
zod_1.z.literal('ibm'),
|
|
14
|
-
zod_1.z.literal('hls_pull'),
|
|
15
|
-
zod_1.z.literal('hls_push'),
|
|
16
|
-
zod_1.z.literal('wowza'),
|
|
17
|
-
zod_1.z.literal('microsoft_stream'),
|
|
18
|
-
zod_1.z.literal('microsoft_azure'),
|
|
19
|
-
zod_1.z.literal('vimeo'),
|
|
20
|
-
zod_1.z.literal('twitch'),
|
|
21
|
-
zod_1.z.literal('church'),
|
|
22
|
-
zod_1.z.literal('srt'),
|
|
23
|
-
zod_1.z.literal('da_cast'),
|
|
24
|
-
zod_1.z.literal('game_changer'),
|
|
25
13
|
]);
|
|
26
14
|
const scheduleSchema = zod_1.z.object({
|
|
27
15
|
start: zod_1.z.object({
|
|
@@ -45,22 +33,10 @@ exports.streamTriggerSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
45
33
|
schedule: zod_1.z.array(scheduleSchema),
|
|
46
34
|
}),
|
|
47
35
|
]);
|
|
48
|
-
exports.streamInputTypeSchema = zod_1.z.union([zod_1.z.literal('CSw'), zod_1.z.literal('CRS'), zod_1.z.literal('RTSP_URL')]);
|
|
49
|
-
exports.internalVapixParametersSchema = zod_1.z.object({
|
|
50
|
-
camera: zod_1.z.string(),
|
|
51
|
-
resolution: zod_1.z.string().optional(),
|
|
52
|
-
compression: zod_1.z.number().optional(),
|
|
53
|
-
fps: zod_1.z.number().int().optional(),
|
|
54
|
-
videobitrate: zod_1.z.number().int().optional(),
|
|
55
|
-
videomaxbitrate: zod_1.z.number().int().optional(),
|
|
56
|
-
audio: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]).optional(),
|
|
57
|
-
});
|
|
58
36
|
exports.streamCommonSchema = zod_1.z.object({
|
|
59
37
|
id: zod_1.z.number(),
|
|
60
38
|
enabled: zod_1.z.boolean(),
|
|
61
39
|
active: zod_1.z.boolean(),
|
|
62
40
|
title: zod_1.z.string(),
|
|
63
41
|
trigger: exports.streamTriggerSchema,
|
|
64
|
-
inputType: exports.streamInputTypeSchema,
|
|
65
|
-
internalVapixParameters: exports.internalVapixParametersSchema,
|
|
66
42
|
});
|
|
@@ -97,32 +97,6 @@ export declare const windySchema: 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
|
-
}>;
|
|
126
100
|
} & {
|
|
127
101
|
type: z.ZodLiteral<"windy">;
|
|
128
102
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -152,16 +126,6 @@ export declare const windySchema: z.ZodObject<{
|
|
|
152
126
|
isActive: boolean;
|
|
153
127
|
}[];
|
|
154
128
|
};
|
|
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
129
|
}, {
|
|
166
130
|
type: "windy";
|
|
167
131
|
enabled: boolean;
|
|
@@ -189,14 +153,4 @@ export declare const windySchema: z.ZodObject<{
|
|
|
189
153
|
isActive: boolean;
|
|
190
154
|
}[];
|
|
191
155
|
};
|
|
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
156
|
}>;
|
|
@@ -97,34 +97,23 @@ 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
|
-
}>;
|
|
126
100
|
} & {
|
|
127
101
|
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;
|
|
128
117
|
}, "strip", z.ZodTypeAny, {
|
|
129
118
|
type: "youtube";
|
|
130
119
|
enabled: boolean;
|
|
@@ -152,16 +141,21 @@ export declare const youtubeSchema: z.ZodObject<{
|
|
|
152
141
|
isActive: boolean;
|
|
153
142
|
}[];
|
|
154
143
|
};
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
144
|
+
statusCameraLed: boolean;
|
|
145
|
+
statusCameraOutput: string;
|
|
146
|
+
saveToSdCard: boolean;
|
|
147
|
+
tags: string[];
|
|
148
|
+
streamPrivacy: "public" | "unlisted" | "private";
|
|
149
|
+
latency: "normal" | "low" | "ultra_low";
|
|
150
|
+
afterEndStatus: "public" | "unlisted" | "private" | "no_change";
|
|
151
|
+
cameraLedStatus: boolean;
|
|
152
|
+
dvr: boolean;
|
|
153
|
+
hasWatchdogs: boolean;
|
|
154
|
+
countdown: boolean;
|
|
155
|
+
enableManualControl: boolean;
|
|
156
|
+
playlist?: string | undefined;
|
|
157
|
+
description?: string | undefined;
|
|
158
|
+
notificationEmail?: string[] | undefined;
|
|
165
159
|
}, {
|
|
166
160
|
type: "youtube";
|
|
167
161
|
enabled: boolean;
|
|
@@ -189,14 +183,19 @@ export declare const youtubeSchema: z.ZodObject<{
|
|
|
189
183
|
isActive: boolean;
|
|
190
184
|
}[];
|
|
191
185
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
186
|
+
statusCameraLed: boolean;
|
|
187
|
+
statusCameraOutput: string;
|
|
188
|
+
saveToSdCard: boolean;
|
|
189
|
+
tags: string[];
|
|
190
|
+
streamPrivacy: "public" | "unlisted" | "private";
|
|
191
|
+
latency: "normal" | "low" | "ultra_low";
|
|
192
|
+
afterEndStatus: "public" | "unlisted" | "private" | "no_change";
|
|
193
|
+
cameraLedStatus: boolean;
|
|
194
|
+
dvr: boolean;
|
|
195
|
+
hasWatchdogs: boolean;
|
|
196
|
+
countdown: boolean;
|
|
197
|
+
enableManualControl: boolean;
|
|
198
|
+
playlist?: string | undefined;
|
|
199
|
+
description?: string | undefined;
|
|
200
|
+
notificationEmail?: string[] | undefined;
|
|
202
201
|
}>;
|
|
@@ -8,4 +8,19 @@ 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(),
|
|
11
26
|
});
|
|
@@ -1,48 +1,27 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { facebookSchema } from './facebookSchema';
|
|
3
|
+
import { hlsSchema } from './hlsSchema';
|
|
3
4
|
import { mpegDvbSchema } from './mpegDvbSchema';
|
|
4
5
|
import { rtmpSchema } from './rtmpSchema';
|
|
5
6
|
import { sdCardSchema } from './sdCardSchema';
|
|
6
7
|
import { windySchema } from './windySchema';
|
|
7
8
|
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';
|
|
21
9
|
export const streamSchema = z.discriminatedUnion('type', [
|
|
22
10
|
facebookSchema,
|
|
11
|
+
hlsSchema,
|
|
23
12
|
mpegDvbSchema,
|
|
24
13
|
rtmpSchema,
|
|
25
14
|
sdCardSchema,
|
|
26
15
|
windySchema,
|
|
27
16
|
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,
|
|
41
17
|
]);
|
|
42
18
|
export const streamListSchema = z.object({ streamList: z.array(streamSchema) });
|
|
43
19
|
export const isFacebookStream = (stream) => {
|
|
44
20
|
return stream.type === 'facebook';
|
|
45
21
|
};
|
|
22
|
+
export const isHlsStream = (stream) => {
|
|
23
|
+
return stream.type === 'hls';
|
|
24
|
+
};
|
|
46
25
|
export const isMpegDvbStream = (stream) => {
|
|
47
26
|
return stream.type === 'mpeg_dvb';
|
|
48
27
|
};
|
|
@@ -58,45 +37,6 @@ export const isWindyStream = (stream) => {
|
|
|
58
37
|
export const isYouTubeStream = (stream) => {
|
|
59
38
|
return stream.type === 'youtube';
|
|
60
39
|
};
|
|
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
|
-
};
|
|
100
40
|
export var AudioType;
|
|
101
41
|
(function (AudioType) {
|
|
102
42
|
AudioType[AudioType["MP3"] = 0] = "MP3";
|
|
@@ -119,7 +59,13 @@ export const audioFileSchema = z.object({
|
|
|
119
59
|
storage: audioFileStorageTypeSchema,
|
|
120
60
|
});
|
|
121
61
|
export const audioFileListSchema = z.array(audioFileSchema);
|
|
122
|
-
export const
|
|
123
|
-
|
|
124
|
-
|
|
62
|
+
export const audioUrlSchema = z.object({
|
|
63
|
+
fileUrl: z.string(),
|
|
64
|
+
name: z.string(),
|
|
65
|
+
storage: z.literal('url'),
|
|
66
|
+
});
|
|
67
|
+
export const audioLocalSchema = z.object({
|
|
68
|
+
file: z.instanceof(File),
|
|
69
|
+
name: z.string(),
|
|
70
|
+
storage: z.enum(['flash', 'SD0']),
|
|
125
71
|
});
|
|
@@ -5,20 +5,8 @@ export const streamTypeSchema = z.union([
|
|
|
5
5
|
z.literal('sd_card'),
|
|
6
6
|
z.literal('windy'),
|
|
7
7
|
z.literal('mpeg_dvb'),
|
|
8
|
+
z.literal('hls'),
|
|
8
9
|
z.literal('rtmp'),
|
|
9
|
-
z.literal('dailymotion'),
|
|
10
|
-
z.literal('ibm'),
|
|
11
|
-
z.literal('hls_pull'),
|
|
12
|
-
z.literal('hls_push'),
|
|
13
|
-
z.literal('wowza'),
|
|
14
|
-
z.literal('microsoft_stream'),
|
|
15
|
-
z.literal('microsoft_azure'),
|
|
16
|
-
z.literal('vimeo'),
|
|
17
|
-
z.literal('twitch'),
|
|
18
|
-
z.literal('church'),
|
|
19
|
-
z.literal('srt'),
|
|
20
|
-
z.literal('da_cast'),
|
|
21
|
-
z.literal('game_changer'),
|
|
22
10
|
]);
|
|
23
11
|
const scheduleSchema = z.object({
|
|
24
12
|
start: z.object({
|
|
@@ -42,22 +30,10 @@ export const streamTriggerSchema = z.discriminatedUnion('type', [
|
|
|
42
30
|
schedule: z.array(scheduleSchema),
|
|
43
31
|
}),
|
|
44
32
|
]);
|
|
45
|
-
export const streamInputTypeSchema = z.union([z.literal('CSw'), z.literal('CRS'), z.literal('RTSP_URL')]);
|
|
46
|
-
export const internalVapixParametersSchema = z.object({
|
|
47
|
-
camera: z.string(),
|
|
48
|
-
resolution: z.string().optional(),
|
|
49
|
-
compression: z.number().optional(),
|
|
50
|
-
fps: z.number().int().optional(),
|
|
51
|
-
videobitrate: z.number().int().optional(),
|
|
52
|
-
videomaxbitrate: z.number().int().optional(),
|
|
53
|
-
audio: z.union([z.literal(0), z.literal(1)]).optional(),
|
|
54
|
-
});
|
|
55
33
|
export const streamCommonSchema = z.object({
|
|
56
34
|
id: z.number(),
|
|
57
35
|
enabled: z.boolean(),
|
|
58
36
|
active: z.boolean(),
|
|
59
37
|
title: z.string(),
|
|
60
38
|
trigger: streamTriggerSchema,
|
|
61
|
-
inputType: streamInputTypeSchema,
|
|
62
|
-
internalVapixParameters: internalVapixParametersSchema,
|
|
63
39
|
});
|
|
@@ -2,4 +2,19 @@ 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(),
|
|
5
20
|
});
|
package/package.json
CHANGED
package/types/CamOverlayAPI.d.ts
CHANGED
|
@@ -259,10 +259,10 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
|
|
|
259
259
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
260
260
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
261
261
|
settings: {
|
|
262
|
+
countdown: boolean;
|
|
262
263
|
loop: boolean;
|
|
263
264
|
startDate: number;
|
|
264
265
|
targetDate: number;
|
|
265
|
-
countdown: boolean;
|
|
266
266
|
countup: boolean;
|
|
267
267
|
displayDay: boolean;
|
|
268
268
|
displayHour: boolean;
|
|
@@ -420,6 +420,7 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
|
|
|
420
420
|
id: number;
|
|
421
421
|
width: number;
|
|
422
422
|
height: number;
|
|
423
|
+
description: string;
|
|
423
424
|
cameraList: number[];
|
|
424
425
|
zIndex: number;
|
|
425
426
|
pos_x: number;
|
|
@@ -437,7 +438,6 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
|
|
|
437
438
|
teamHomeName: string;
|
|
438
439
|
teamGuestName: string;
|
|
439
440
|
scoreVisible: boolean;
|
|
440
|
-
description: string;
|
|
441
441
|
textFont: string;
|
|
442
442
|
scoreFont: "classic";
|
|
443
443
|
}>;
|
|
@@ -669,10 +669,10 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
|
|
|
669
669
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
670
670
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
671
671
|
settings: {
|
|
672
|
+
countdown: boolean;
|
|
672
673
|
loop: boolean;
|
|
673
674
|
startDate: number;
|
|
674
675
|
targetDate: number;
|
|
675
|
-
countdown: boolean;
|
|
676
676
|
countup: boolean;
|
|
677
677
|
displayDay: boolean;
|
|
678
678
|
displayHour: boolean;
|
|
@@ -830,6 +830,7 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
|
|
|
830
830
|
id: number;
|
|
831
831
|
width: number;
|
|
832
832
|
height: number;
|
|
833
|
+
description: string;
|
|
833
834
|
cameraList: number[];
|
|
834
835
|
zIndex: number;
|
|
835
836
|
pos_x: number;
|
|
@@ -847,7 +848,6 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
|
|
|
847
848
|
teamHomeName: string;
|
|
848
849
|
teamGuestName: string;
|
|
849
850
|
scoreVisible: boolean;
|
|
850
|
-
description: string;
|
|
851
851
|
textFont: string;
|
|
852
852
|
scoreFont: "classic";
|
|
853
853
|
})[]>;
|