camstreamerlib 4.0.0-beta.104 → 4.0.0-beta.106
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/CamStreamerAPI.d.ts +442 -386
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +2911 -1971
- package/cjs/types/CamStreamerAPI/churchSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +75 -35
- package/cjs/types/CamStreamerAPI/gameChangerSchema.js +2 -2
- package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/ibmSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/index.d.ts +1 -0
- package/cjs/types/CamStreamerAPI/index.js +1 -0
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +59 -38
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +1 -1
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +24 -24
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +372 -39
- package/cjs/types/CamStreamerAPI/rtmpSchema.js +9 -4
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/srtSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +100 -44
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +11 -9
- package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +59 -38
- package/cjs/types/CamStreamerAPI/youtubeSchema.js +1 -1
- package/esm/types/CamStreamerAPI/gameChangerSchema.js +2 -2
- package/esm/types/CamStreamerAPI/index.js +1 -0
- package/esm/types/CamStreamerAPI/mpegDvbSchema.js +1 -1
- package/esm/types/CamStreamerAPI/rtmpSchema.js +8 -3
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +10 -8
- package/esm/types/CamStreamerAPI/youtubeSchema.js +1 -1
- package/package.json +1 -1
- package/types/CamStreamerAPI.d.ts +442 -386
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +2911 -1971
- package/types/types/CamStreamerAPI/churchSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/daCastSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +75 -35
- package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/ibmSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/index.d.ts +1 -0
- package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +59 -38
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +24 -24
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +372 -39
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/srtSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +100 -44
- package/types/types/CamStreamerAPI/twitchSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/vimeoSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/windySchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/wowzaSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +59 -38
|
@@ -97,23 +97,42 @@ export declare const srtSchema: z.ZodObject<{
|
|
|
97
97
|
isActive: boolean;
|
|
98
98
|
}[];
|
|
99
99
|
}>]>;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
100
|
+
video: z.ZodObject<{
|
|
101
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
102
|
+
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
103
|
+
internalVapixParameters: z.ZodString;
|
|
104
|
+
userVapixParameters: z.ZodString;
|
|
105
|
+
streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
|
|
106
|
+
streamDelay: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
value: z.ZodNumber;
|
|
108
|
+
unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
value: number;
|
|
111
|
+
unit: "seconds" | "minutes" | "hours";
|
|
112
|
+
}, {
|
|
113
|
+
value: number;
|
|
114
|
+
unit: "seconds" | "minutes" | "hours";
|
|
115
|
+
}>>;
|
|
109
116
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
117
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
118
|
+
internalVapixParameters: string;
|
|
119
|
+
userVapixParameters: string;
|
|
120
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
121
|
+
sourceUrl?: string | undefined;
|
|
122
|
+
streamDelay?: {
|
|
123
|
+
value: number;
|
|
124
|
+
unit: "seconds" | "minutes" | "hours";
|
|
125
|
+
} | undefined;
|
|
113
126
|
}, {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
127
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
128
|
+
internalVapixParameters: string;
|
|
129
|
+
userVapixParameters: string;
|
|
130
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
131
|
+
sourceUrl?: string | undefined;
|
|
132
|
+
streamDelay?: {
|
|
133
|
+
value: number;
|
|
134
|
+
unit: "seconds" | "minutes" | "hours";
|
|
135
|
+
} | undefined;
|
|
117
136
|
}>;
|
|
118
137
|
audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
119
138
|
source: z.ZodLiteral<"none">;
|
|
@@ -177,6 +196,17 @@ export declare const srtSchema: z.ZodObject<{
|
|
|
177
196
|
fileUrl: string;
|
|
178
197
|
avSyncMsec: number;
|
|
179
198
|
};
|
|
199
|
+
video: {
|
|
200
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
201
|
+
internalVapixParameters: string;
|
|
202
|
+
userVapixParameters: string;
|
|
203
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
204
|
+
sourceUrl?: string | undefined;
|
|
205
|
+
streamDelay?: {
|
|
206
|
+
value: number;
|
|
207
|
+
unit: "seconds" | "minutes" | "hours";
|
|
208
|
+
} | undefined;
|
|
209
|
+
};
|
|
180
210
|
enabled: boolean;
|
|
181
211
|
id: number;
|
|
182
212
|
active: boolean;
|
|
@@ -202,16 +232,6 @@ export declare const srtSchema: z.ZodObject<{
|
|
|
202
232
|
isActive: boolean;
|
|
203
233
|
}[];
|
|
204
234
|
};
|
|
205
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
206
|
-
inputUrl: string;
|
|
207
|
-
internalVapixParameters: string;
|
|
208
|
-
userVapixParameters: string;
|
|
209
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
210
|
-
streamDelay: {
|
|
211
|
-
enabled: boolean;
|
|
212
|
-
timeS: number;
|
|
213
|
-
unit: "seconds" | "minutes" | "hours";
|
|
214
|
-
};
|
|
215
235
|
}, {
|
|
216
236
|
type: "srt";
|
|
217
237
|
audio: {
|
|
@@ -229,6 +249,17 @@ export declare const srtSchema: z.ZodObject<{
|
|
|
229
249
|
fileUrl: string;
|
|
230
250
|
avSyncMsec: number;
|
|
231
251
|
};
|
|
252
|
+
video: {
|
|
253
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
254
|
+
internalVapixParameters: string;
|
|
255
|
+
userVapixParameters: string;
|
|
256
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
257
|
+
sourceUrl?: string | undefined;
|
|
258
|
+
streamDelay?: {
|
|
259
|
+
value: number;
|
|
260
|
+
unit: "seconds" | "minutes" | "hours";
|
|
261
|
+
} | undefined;
|
|
262
|
+
};
|
|
232
263
|
enabled: boolean;
|
|
233
264
|
id: number;
|
|
234
265
|
active: boolean;
|
|
@@ -254,14 +285,4 @@ export declare const srtSchema: z.ZodObject<{
|
|
|
254
285
|
isActive: boolean;
|
|
255
286
|
}[];
|
|
256
287
|
};
|
|
257
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
258
|
-
inputUrl: string;
|
|
259
|
-
internalVapixParameters: string;
|
|
260
|
-
userVapixParameters: string;
|
|
261
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
262
|
-
streamDelay: {
|
|
263
|
-
enabled: boolean;
|
|
264
|
-
timeS: number;
|
|
265
|
-
unit: "seconds" | "minutes" | "hours";
|
|
266
|
-
};
|
|
267
288
|
}>;
|
|
@@ -149,16 +149,13 @@ export type TVideoCodec = z.infer<typeof videoCodecSchema>;
|
|
|
149
149
|
export declare const overlaysSchema: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"application">, z.ZodLiteral<"">, z.ZodLiteral<"off">]>;
|
|
150
150
|
export type TOverlays = z.infer<typeof overlaysSchema>;
|
|
151
151
|
export declare const streamDelaySchema: z.ZodObject<{
|
|
152
|
-
|
|
153
|
-
timeS: z.ZodNumber;
|
|
152
|
+
value: z.ZodNumber;
|
|
154
153
|
unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
|
|
155
154
|
}, "strip", z.ZodTypeAny, {
|
|
156
|
-
|
|
157
|
-
timeS: number;
|
|
155
|
+
value: number;
|
|
158
156
|
unit: "seconds" | "minutes" | "hours";
|
|
159
157
|
}, {
|
|
160
|
-
|
|
161
|
-
timeS: number;
|
|
158
|
+
value: number;
|
|
162
159
|
unit: "seconds" | "minutes" | "hours";
|
|
163
160
|
}>;
|
|
164
161
|
export type TStreamDelay = z.infer<typeof streamDelaySchema>;
|
|
@@ -211,6 +208,44 @@ export declare const internalVapixParametersSchema: z.ZodObject<{
|
|
|
211
208
|
nbrOfChannels?: 1 | 2 | undefined;
|
|
212
209
|
}>;
|
|
213
210
|
export type TInternalVapixParameters = z.infer<typeof internalVapixParametersSchema>;
|
|
211
|
+
export declare const streamVideoSchema: z.ZodObject<{
|
|
212
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
213
|
+
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
214
|
+
internalVapixParameters: z.ZodString;
|
|
215
|
+
userVapixParameters: z.ZodString;
|
|
216
|
+
streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
|
|
217
|
+
streamDelay: z.ZodOptional<z.ZodObject<{
|
|
218
|
+
value: z.ZodNumber;
|
|
219
|
+
unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
value: number;
|
|
222
|
+
unit: "seconds" | "minutes" | "hours";
|
|
223
|
+
}, {
|
|
224
|
+
value: number;
|
|
225
|
+
unit: "seconds" | "minutes" | "hours";
|
|
226
|
+
}>>;
|
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
|
228
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
229
|
+
internalVapixParameters: string;
|
|
230
|
+
userVapixParameters: string;
|
|
231
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
232
|
+
sourceUrl?: string | undefined;
|
|
233
|
+
streamDelay?: {
|
|
234
|
+
value: number;
|
|
235
|
+
unit: "seconds" | "minutes" | "hours";
|
|
236
|
+
} | undefined;
|
|
237
|
+
}, {
|
|
238
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
239
|
+
internalVapixParameters: string;
|
|
240
|
+
userVapixParameters: string;
|
|
241
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
242
|
+
sourceUrl?: string | undefined;
|
|
243
|
+
streamDelay?: {
|
|
244
|
+
value: number;
|
|
245
|
+
unit: "seconds" | "minutes" | "hours";
|
|
246
|
+
} | undefined;
|
|
247
|
+
}>;
|
|
248
|
+
export type TStreamVideo = z.infer<typeof streamVideoSchema>;
|
|
214
249
|
export declare const streamAudioSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
215
250
|
source: z.ZodLiteral<"none">;
|
|
216
251
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -254,10 +289,10 @@ export declare const streamAudioSchema: z.ZodDiscriminatedUnion<"source", [z.Zod
|
|
|
254
289
|
fileUrl: string;
|
|
255
290
|
avSyncMsec: number;
|
|
256
291
|
}>]>;
|
|
257
|
-
export type
|
|
258
|
-
export type TStreamAudioSource =
|
|
292
|
+
export type TStreamAudio = z.infer<typeof streamAudioSchema>;
|
|
293
|
+
export type TStreamAudioSource = TStreamAudio['source'];
|
|
259
294
|
export type TAudioOfSource<T extends TStreamAudioSource> = {
|
|
260
|
-
audio: Extract<
|
|
295
|
+
audio: Extract<TStreamAudio, {
|
|
261
296
|
source: T;
|
|
262
297
|
}>;
|
|
263
298
|
};
|
|
@@ -359,23 +394,42 @@ export declare const streamCommonSchema: z.ZodObject<{
|
|
|
359
394
|
isActive: boolean;
|
|
360
395
|
}[];
|
|
361
396
|
}>]>;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
397
|
+
video: z.ZodObject<{
|
|
398
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
399
|
+
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
400
|
+
internalVapixParameters: z.ZodString;
|
|
401
|
+
userVapixParameters: z.ZodString;
|
|
402
|
+
streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
|
|
403
|
+
streamDelay: z.ZodOptional<z.ZodObject<{
|
|
404
|
+
value: z.ZodNumber;
|
|
405
|
+
unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
|
|
406
|
+
}, "strip", z.ZodTypeAny, {
|
|
407
|
+
value: number;
|
|
408
|
+
unit: "seconds" | "minutes" | "hours";
|
|
409
|
+
}, {
|
|
410
|
+
value: number;
|
|
411
|
+
unit: "seconds" | "minutes" | "hours";
|
|
412
|
+
}>>;
|
|
371
413
|
}, "strip", z.ZodTypeAny, {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
414
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
415
|
+
internalVapixParameters: string;
|
|
416
|
+
userVapixParameters: string;
|
|
417
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
418
|
+
sourceUrl?: string | undefined;
|
|
419
|
+
streamDelay?: {
|
|
420
|
+
value: number;
|
|
421
|
+
unit: "seconds" | "minutes" | "hours";
|
|
422
|
+
} | undefined;
|
|
375
423
|
}, {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
424
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
425
|
+
internalVapixParameters: string;
|
|
426
|
+
userVapixParameters: string;
|
|
427
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
428
|
+
sourceUrl?: string | undefined;
|
|
429
|
+
streamDelay?: {
|
|
430
|
+
value: number;
|
|
431
|
+
unit: "seconds" | "minutes" | "hours";
|
|
432
|
+
} | undefined;
|
|
379
433
|
}>;
|
|
380
434
|
audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
381
435
|
source: z.ZodLiteral<"none">;
|
|
@@ -436,6 +490,17 @@ export declare const streamCommonSchema: z.ZodObject<{
|
|
|
436
490
|
fileUrl: string;
|
|
437
491
|
avSyncMsec: number;
|
|
438
492
|
};
|
|
493
|
+
video: {
|
|
494
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
495
|
+
internalVapixParameters: string;
|
|
496
|
+
userVapixParameters: string;
|
|
497
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
498
|
+
sourceUrl?: string | undefined;
|
|
499
|
+
streamDelay?: {
|
|
500
|
+
value: number;
|
|
501
|
+
unit: "seconds" | "minutes" | "hours";
|
|
502
|
+
} | undefined;
|
|
503
|
+
};
|
|
439
504
|
enabled: boolean;
|
|
440
505
|
id: number;
|
|
441
506
|
active: boolean;
|
|
@@ -461,16 +526,6 @@ export declare const streamCommonSchema: z.ZodObject<{
|
|
|
461
526
|
isActive: boolean;
|
|
462
527
|
}[];
|
|
463
528
|
};
|
|
464
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
465
|
-
inputUrl: string;
|
|
466
|
-
internalVapixParameters: string;
|
|
467
|
-
userVapixParameters: string;
|
|
468
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
469
|
-
streamDelay: {
|
|
470
|
-
enabled: boolean;
|
|
471
|
-
timeS: number;
|
|
472
|
-
unit: "seconds" | "minutes" | "hours";
|
|
473
|
-
};
|
|
474
529
|
}, {
|
|
475
530
|
audio: {
|
|
476
531
|
source: "none";
|
|
@@ -487,6 +542,17 @@ export declare const streamCommonSchema: z.ZodObject<{
|
|
|
487
542
|
fileUrl: string;
|
|
488
543
|
avSyncMsec: number;
|
|
489
544
|
};
|
|
545
|
+
video: {
|
|
546
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
547
|
+
internalVapixParameters: string;
|
|
548
|
+
userVapixParameters: string;
|
|
549
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
550
|
+
sourceUrl?: string | undefined;
|
|
551
|
+
streamDelay?: {
|
|
552
|
+
value: number;
|
|
553
|
+
unit: "seconds" | "minutes" | "hours";
|
|
554
|
+
} | undefined;
|
|
555
|
+
};
|
|
490
556
|
enabled: boolean;
|
|
491
557
|
id: number;
|
|
492
558
|
active: boolean;
|
|
@@ -512,16 +578,6 @@ export declare const streamCommonSchema: z.ZodObject<{
|
|
|
512
578
|
isActive: boolean;
|
|
513
579
|
}[];
|
|
514
580
|
};
|
|
515
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
516
|
-
inputUrl: string;
|
|
517
|
-
internalVapixParameters: string;
|
|
518
|
-
userVapixParameters: string;
|
|
519
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
520
|
-
streamDelay: {
|
|
521
|
-
enabled: boolean;
|
|
522
|
-
timeS: number;
|
|
523
|
-
unit: "seconds" | "minutes" | "hours";
|
|
524
|
-
};
|
|
525
581
|
}>;
|
|
526
582
|
export type TCommonStream = z.infer<typeof streamCommonSchema>;
|
|
527
583
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.streamCommonSchema = exports.streamAudioSchema = exports.internalVapixParametersSchema = exports.streamDelaySchema = exports.overlaysSchema = exports.videoCodecSchema = exports.streamingProtocolTypeSchema = exports.streamInputTypeSchema = exports.streamTriggerSchema = exports.streamTypeSchema = void 0;
|
|
3
|
+
exports.streamCommonSchema = exports.streamAudioSchema = exports.streamVideoSchema = exports.internalVapixParametersSchema = exports.streamDelaySchema = exports.overlaysSchema = exports.videoCodecSchema = exports.streamingProtocolTypeSchema = exports.streamInputTypeSchema = exports.streamTriggerSchema = exports.streamTypeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const common_1 = require("../common");
|
|
6
6
|
exports.streamTypeSchema = zod_1.z.union([
|
|
@@ -58,8 +58,7 @@ exports.overlaysSchema = zod_1.z.union([
|
|
|
58
58
|
zod_1.z.literal('off'),
|
|
59
59
|
]);
|
|
60
60
|
exports.streamDelaySchema = zod_1.z.object({
|
|
61
|
-
|
|
62
|
-
timeS: zod_1.z.number().int(),
|
|
61
|
+
value: zod_1.z.number().int(),
|
|
63
62
|
unit: zod_1.z.union([zod_1.z.literal('seconds'), zod_1.z.literal('minutes'), zod_1.z.literal('hours')]),
|
|
64
63
|
});
|
|
65
64
|
exports.internalVapixParametersSchema = common_1.bitrateVapixParamsSchema.extend({
|
|
@@ -83,6 +82,14 @@ exports.internalVapixParametersSchema = common_1.bitrateVapixParamsSchema.extend
|
|
|
83
82
|
])
|
|
84
83
|
.optional(),
|
|
85
84
|
});
|
|
85
|
+
exports.streamVideoSchema = zod_1.z.object({
|
|
86
|
+
inputType: exports.streamInputTypeSchema,
|
|
87
|
+
sourceUrl: zod_1.z.string().optional(),
|
|
88
|
+
internalVapixParameters: zod_1.z.string(),
|
|
89
|
+
userVapixParameters: zod_1.z.string(),
|
|
90
|
+
streamingProtocol: exports.streamingProtocolTypeSchema,
|
|
91
|
+
streamDelay: exports.streamDelaySchema.optional(),
|
|
92
|
+
});
|
|
86
93
|
exports.streamAudioSchema = zod_1.z.discriminatedUnion('source', [
|
|
87
94
|
zod_1.z.object({
|
|
88
95
|
source: zod_1.z.literal('none'),
|
|
@@ -106,11 +113,6 @@ exports.streamCommonSchema = zod_1.z.object({
|
|
|
106
113
|
active: zod_1.z.boolean(),
|
|
107
114
|
title: zod_1.z.string(),
|
|
108
115
|
trigger: exports.streamTriggerSchema,
|
|
109
|
-
|
|
110
|
-
inputUrl: zod_1.z.string(),
|
|
111
|
-
internalVapixParameters: zod_1.z.string(),
|
|
112
|
-
userVapixParameters: zod_1.z.string(),
|
|
113
|
-
streamingProtocol: exports.streamingProtocolTypeSchema,
|
|
114
|
-
streamDelay: exports.streamDelaySchema,
|
|
116
|
+
video: exports.streamVideoSchema,
|
|
115
117
|
audio: exports.streamAudioSchema,
|
|
116
118
|
});
|
|
@@ -97,23 +97,42 @@ export declare const twitchSchema: z.ZodObject<{
|
|
|
97
97
|
isActive: boolean;
|
|
98
98
|
}[];
|
|
99
99
|
}>]>;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
100
|
+
video: z.ZodObject<{
|
|
101
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
102
|
+
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
103
|
+
internalVapixParameters: z.ZodString;
|
|
104
|
+
userVapixParameters: z.ZodString;
|
|
105
|
+
streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
|
|
106
|
+
streamDelay: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
value: z.ZodNumber;
|
|
108
|
+
unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
value: number;
|
|
111
|
+
unit: "seconds" | "minutes" | "hours";
|
|
112
|
+
}, {
|
|
113
|
+
value: number;
|
|
114
|
+
unit: "seconds" | "minutes" | "hours";
|
|
115
|
+
}>>;
|
|
109
116
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
117
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
118
|
+
internalVapixParameters: string;
|
|
119
|
+
userVapixParameters: string;
|
|
120
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
121
|
+
sourceUrl?: string | undefined;
|
|
122
|
+
streamDelay?: {
|
|
123
|
+
value: number;
|
|
124
|
+
unit: "seconds" | "minutes" | "hours";
|
|
125
|
+
} | undefined;
|
|
113
126
|
}, {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
127
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
128
|
+
internalVapixParameters: string;
|
|
129
|
+
userVapixParameters: string;
|
|
130
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
131
|
+
sourceUrl?: string | undefined;
|
|
132
|
+
streamDelay?: {
|
|
133
|
+
value: number;
|
|
134
|
+
unit: "seconds" | "minutes" | "hours";
|
|
135
|
+
} | undefined;
|
|
117
136
|
}>;
|
|
118
137
|
audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
119
138
|
source: z.ZodLiteral<"none">;
|
|
@@ -177,6 +196,17 @@ export declare const twitchSchema: z.ZodObject<{
|
|
|
177
196
|
fileUrl: string;
|
|
178
197
|
avSyncMsec: number;
|
|
179
198
|
};
|
|
199
|
+
video: {
|
|
200
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
201
|
+
internalVapixParameters: string;
|
|
202
|
+
userVapixParameters: string;
|
|
203
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
204
|
+
sourceUrl?: string | undefined;
|
|
205
|
+
streamDelay?: {
|
|
206
|
+
value: number;
|
|
207
|
+
unit: "seconds" | "minutes" | "hours";
|
|
208
|
+
} | undefined;
|
|
209
|
+
};
|
|
180
210
|
enabled: boolean;
|
|
181
211
|
id: number;
|
|
182
212
|
active: boolean;
|
|
@@ -202,16 +232,6 @@ export declare const twitchSchema: z.ZodObject<{
|
|
|
202
232
|
isActive: boolean;
|
|
203
233
|
}[];
|
|
204
234
|
};
|
|
205
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
206
|
-
inputUrl: string;
|
|
207
|
-
internalVapixParameters: string;
|
|
208
|
-
userVapixParameters: string;
|
|
209
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
210
|
-
streamDelay: {
|
|
211
|
-
enabled: boolean;
|
|
212
|
-
timeS: number;
|
|
213
|
-
unit: "seconds" | "minutes" | "hours";
|
|
214
|
-
};
|
|
215
235
|
}, {
|
|
216
236
|
type: "twitch";
|
|
217
237
|
audio: {
|
|
@@ -229,6 +249,17 @@ export declare const twitchSchema: z.ZodObject<{
|
|
|
229
249
|
fileUrl: string;
|
|
230
250
|
avSyncMsec: number;
|
|
231
251
|
};
|
|
252
|
+
video: {
|
|
253
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
254
|
+
internalVapixParameters: string;
|
|
255
|
+
userVapixParameters: string;
|
|
256
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
257
|
+
sourceUrl?: string | undefined;
|
|
258
|
+
streamDelay?: {
|
|
259
|
+
value: number;
|
|
260
|
+
unit: "seconds" | "minutes" | "hours";
|
|
261
|
+
} | undefined;
|
|
262
|
+
};
|
|
232
263
|
enabled: boolean;
|
|
233
264
|
id: number;
|
|
234
265
|
active: boolean;
|
|
@@ -254,14 +285,4 @@ export declare const twitchSchema: z.ZodObject<{
|
|
|
254
285
|
isActive: boolean;
|
|
255
286
|
}[];
|
|
256
287
|
};
|
|
257
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
258
|
-
inputUrl: string;
|
|
259
|
-
internalVapixParameters: string;
|
|
260
|
-
userVapixParameters: string;
|
|
261
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
262
|
-
streamDelay: {
|
|
263
|
-
enabled: boolean;
|
|
264
|
-
timeS: number;
|
|
265
|
-
unit: "seconds" | "minutes" | "hours";
|
|
266
|
-
};
|
|
267
288
|
}>;
|
|
@@ -97,23 +97,42 @@ export declare const vimeoSchema: z.ZodObject<{
|
|
|
97
97
|
isActive: boolean;
|
|
98
98
|
}[];
|
|
99
99
|
}>]>;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
100
|
+
video: z.ZodObject<{
|
|
101
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
102
|
+
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
103
|
+
internalVapixParameters: z.ZodString;
|
|
104
|
+
userVapixParameters: z.ZodString;
|
|
105
|
+
streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
|
|
106
|
+
streamDelay: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
value: z.ZodNumber;
|
|
108
|
+
unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
value: number;
|
|
111
|
+
unit: "seconds" | "minutes" | "hours";
|
|
112
|
+
}, {
|
|
113
|
+
value: number;
|
|
114
|
+
unit: "seconds" | "minutes" | "hours";
|
|
115
|
+
}>>;
|
|
109
116
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
117
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
118
|
+
internalVapixParameters: string;
|
|
119
|
+
userVapixParameters: string;
|
|
120
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
121
|
+
sourceUrl?: string | undefined;
|
|
122
|
+
streamDelay?: {
|
|
123
|
+
value: number;
|
|
124
|
+
unit: "seconds" | "minutes" | "hours";
|
|
125
|
+
} | undefined;
|
|
113
126
|
}, {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
127
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
128
|
+
internalVapixParameters: string;
|
|
129
|
+
userVapixParameters: string;
|
|
130
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
131
|
+
sourceUrl?: string | undefined;
|
|
132
|
+
streamDelay?: {
|
|
133
|
+
value: number;
|
|
134
|
+
unit: "seconds" | "minutes" | "hours";
|
|
135
|
+
} | undefined;
|
|
117
136
|
}>;
|
|
118
137
|
audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
119
138
|
source: z.ZodLiteral<"none">;
|
|
@@ -177,6 +196,17 @@ export declare const vimeoSchema: z.ZodObject<{
|
|
|
177
196
|
fileUrl: string;
|
|
178
197
|
avSyncMsec: number;
|
|
179
198
|
};
|
|
199
|
+
video: {
|
|
200
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
201
|
+
internalVapixParameters: string;
|
|
202
|
+
userVapixParameters: string;
|
|
203
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
204
|
+
sourceUrl?: string | undefined;
|
|
205
|
+
streamDelay?: {
|
|
206
|
+
value: number;
|
|
207
|
+
unit: "seconds" | "minutes" | "hours";
|
|
208
|
+
} | undefined;
|
|
209
|
+
};
|
|
180
210
|
enabled: boolean;
|
|
181
211
|
id: number;
|
|
182
212
|
active: boolean;
|
|
@@ -202,16 +232,6 @@ export declare const vimeoSchema: z.ZodObject<{
|
|
|
202
232
|
isActive: boolean;
|
|
203
233
|
}[];
|
|
204
234
|
};
|
|
205
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
206
|
-
inputUrl: string;
|
|
207
|
-
internalVapixParameters: string;
|
|
208
|
-
userVapixParameters: string;
|
|
209
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
210
|
-
streamDelay: {
|
|
211
|
-
enabled: boolean;
|
|
212
|
-
timeS: number;
|
|
213
|
-
unit: "seconds" | "minutes" | "hours";
|
|
214
|
-
};
|
|
215
235
|
}, {
|
|
216
236
|
type: "vimeo";
|
|
217
237
|
audio: {
|
|
@@ -229,6 +249,17 @@ export declare const vimeoSchema: z.ZodObject<{
|
|
|
229
249
|
fileUrl: string;
|
|
230
250
|
avSyncMsec: number;
|
|
231
251
|
};
|
|
252
|
+
video: {
|
|
253
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
254
|
+
internalVapixParameters: string;
|
|
255
|
+
userVapixParameters: string;
|
|
256
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
257
|
+
sourceUrl?: string | undefined;
|
|
258
|
+
streamDelay?: {
|
|
259
|
+
value: number;
|
|
260
|
+
unit: "seconds" | "minutes" | "hours";
|
|
261
|
+
} | undefined;
|
|
262
|
+
};
|
|
232
263
|
enabled: boolean;
|
|
233
264
|
id: number;
|
|
234
265
|
active: boolean;
|
|
@@ -254,14 +285,4 @@ export declare const vimeoSchema: z.ZodObject<{
|
|
|
254
285
|
isActive: boolean;
|
|
255
286
|
}[];
|
|
256
287
|
};
|
|
257
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
258
|
-
inputUrl: string;
|
|
259
|
-
internalVapixParameters: string;
|
|
260
|
-
userVapixParameters: string;
|
|
261
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
262
|
-
streamDelay: {
|
|
263
|
-
enabled: boolean;
|
|
264
|
-
timeS: number;
|
|
265
|
-
unit: "seconds" | "minutes" | "hours";
|
|
266
|
-
};
|
|
267
288
|
}>;
|