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 windySchema: 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 windySchema: 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 windySchema: 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: "windy";
|
|
217
237
|
audio: {
|
|
@@ -229,6 +249,17 @@ export declare const windySchema: 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 windySchema: 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 wowzaSchema: 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 wowzaSchema: 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 wowzaSchema: 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: "wowza";
|
|
217
237
|
audio: {
|
|
@@ -229,6 +249,17 @@ export declare const wowzaSchema: 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 wowzaSchema: 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 youtubeSchema: 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">;
|
|
@@ -170,7 +189,7 @@ export declare const youtubeSchema: z.ZodObject<{
|
|
|
170
189
|
dvr: z.ZodBoolean;
|
|
171
190
|
saveToSdCard: z.ZodBoolean;
|
|
172
191
|
statusCameraLed: z.ZodBoolean;
|
|
173
|
-
statusCameraOutput: z.ZodString
|
|
192
|
+
statusCameraOutput: z.ZodNullable<z.ZodString>;
|
|
174
193
|
hasWatchdogs: z.ZodBoolean;
|
|
175
194
|
countdown: z.ZodBoolean;
|
|
176
195
|
enableManualControl: z.ZodBoolean;
|
|
@@ -191,6 +210,17 @@ export declare const youtubeSchema: z.ZodObject<{
|
|
|
191
210
|
fileUrl: string;
|
|
192
211
|
avSyncMsec: number;
|
|
193
212
|
};
|
|
213
|
+
video: {
|
|
214
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
215
|
+
internalVapixParameters: string;
|
|
216
|
+
userVapixParameters: string;
|
|
217
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
218
|
+
sourceUrl?: string | undefined;
|
|
219
|
+
streamDelay?: {
|
|
220
|
+
value: number;
|
|
221
|
+
unit: "seconds" | "minutes" | "hours";
|
|
222
|
+
} | undefined;
|
|
223
|
+
};
|
|
194
224
|
enabled: boolean;
|
|
195
225
|
id: number;
|
|
196
226
|
active: boolean;
|
|
@@ -216,18 +246,8 @@ export declare const youtubeSchema: z.ZodObject<{
|
|
|
216
246
|
isActive: boolean;
|
|
217
247
|
}[];
|
|
218
248
|
};
|
|
219
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
220
|
-
inputUrl: string;
|
|
221
|
-
internalVapixParameters: string;
|
|
222
|
-
userVapixParameters: string;
|
|
223
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
224
|
-
streamDelay: {
|
|
225
|
-
enabled: boolean;
|
|
226
|
-
timeS: number;
|
|
227
|
-
unit: "seconds" | "minutes" | "hours";
|
|
228
|
-
};
|
|
229
249
|
statusCameraLed: boolean;
|
|
230
|
-
statusCameraOutput: string;
|
|
250
|
+
statusCameraOutput: string | null;
|
|
231
251
|
saveToSdCard: boolean;
|
|
232
252
|
tags: string[];
|
|
233
253
|
streamPrivacy: "public" | "unlisted" | "private";
|
|
@@ -257,6 +277,17 @@ export declare const youtubeSchema: z.ZodObject<{
|
|
|
257
277
|
fileUrl: string;
|
|
258
278
|
avSyncMsec: number;
|
|
259
279
|
};
|
|
280
|
+
video: {
|
|
281
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
282
|
+
internalVapixParameters: string;
|
|
283
|
+
userVapixParameters: string;
|
|
284
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
285
|
+
sourceUrl?: string | undefined;
|
|
286
|
+
streamDelay?: {
|
|
287
|
+
value: number;
|
|
288
|
+
unit: "seconds" | "minutes" | "hours";
|
|
289
|
+
} | undefined;
|
|
290
|
+
};
|
|
260
291
|
enabled: boolean;
|
|
261
292
|
id: number;
|
|
262
293
|
active: boolean;
|
|
@@ -282,18 +313,8 @@ export declare const youtubeSchema: z.ZodObject<{
|
|
|
282
313
|
isActive: boolean;
|
|
283
314
|
}[];
|
|
284
315
|
};
|
|
285
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
286
|
-
inputUrl: string;
|
|
287
|
-
internalVapixParameters: string;
|
|
288
|
-
userVapixParameters: string;
|
|
289
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
290
|
-
streamDelay: {
|
|
291
|
-
enabled: boolean;
|
|
292
|
-
timeS: number;
|
|
293
|
-
unit: "seconds" | "minutes" | "hours";
|
|
294
|
-
};
|
|
295
316
|
statusCameraLed: boolean;
|
|
296
|
-
statusCameraOutput: string;
|
|
317
|
+
statusCameraOutput: string | null;
|
|
297
318
|
saveToSdCard: boolean;
|
|
298
319
|
tags: string[];
|
|
299
320
|
streamPrivacy: "public" | "unlisted" | "private";
|
|
@@ -18,7 +18,7 @@ exports.youtubeSchema = streamCommonTypes_1.streamCommonSchema.extend({
|
|
|
18
18
|
dvr: zod_1.default.boolean(),
|
|
19
19
|
saveToSdCard: zod_1.default.boolean(),
|
|
20
20
|
statusCameraLed: zod_1.default.boolean(),
|
|
21
|
-
statusCameraOutput: zod_1.default.string(),
|
|
21
|
+
statusCameraOutput: zod_1.default.string().nullable(),
|
|
22
22
|
hasWatchdogs: zod_1.default.boolean(),
|
|
23
23
|
countdown: zod_1.default.boolean(),
|
|
24
24
|
enableManualControl: zod_1.default.boolean(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
export const gameChangerSchema =
|
|
2
|
+
import { commonRtmpSchema } from './rtmpSchema';
|
|
3
|
+
export const gameChangerSchema = commonRtmpSchema.extend({
|
|
4
4
|
type: z.literal('game_changer'),
|
|
5
5
|
});
|
|
@@ -3,6 +3,7 @@ export * from './streamCommonTypes';
|
|
|
3
3
|
export * from './facebookSchema';
|
|
4
4
|
export * from './mpegDvbSchema';
|
|
5
5
|
export * from './rtmpSchema';
|
|
6
|
+
export * from './gameChangerSchema';
|
|
6
7
|
export * from './sdCardSchema';
|
|
7
8
|
export * from './windySchema';
|
|
8
9
|
export * from './youtubeSchema';
|
|
@@ -16,6 +16,6 @@ export const mpegDvbSchema = streamCommonSchema.extend({
|
|
|
16
16
|
providerName: z.string(),
|
|
17
17
|
serviceName: z.string(),
|
|
18
18
|
statusCameraLed: z.boolean(),
|
|
19
|
-
statusCameraOutput: z.string(),
|
|
19
|
+
statusCameraOutput: z.string().nullable(),
|
|
20
20
|
saveToSdCard: z.boolean(),
|
|
21
21
|
});
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
import { streamCommonSchema } from './streamCommonTypes';
|
|
3
|
-
export const
|
|
4
|
-
|
|
5
|
-
rtmpUrl: z.string(),
|
|
3
|
+
export const commonRtmpSchema = streamCommonSchema.extend({
|
|
4
|
+
outputUrl: z.string(),
|
|
6
5
|
streamKey: z.string(),
|
|
7
6
|
streamIdentifier: z.string().optional(),
|
|
7
|
+
saveToSdCard: z.boolean(),
|
|
8
|
+
statusCameraLed: z.boolean(),
|
|
9
|
+
statusCameraOutput: z.string().nullable(),
|
|
10
|
+
});
|
|
11
|
+
export const rtmpSchema = commonRtmpSchema.extend({
|
|
12
|
+
type: z.literal('rtmp'),
|
|
8
13
|
});
|
|
@@ -55,8 +55,7 @@ export const overlaysSchema = z.union([
|
|
|
55
55
|
z.literal('off'),
|
|
56
56
|
]);
|
|
57
57
|
export const streamDelaySchema = z.object({
|
|
58
|
-
|
|
59
|
-
timeS: z.number().int(),
|
|
58
|
+
value: z.number().int(),
|
|
60
59
|
unit: z.union([z.literal('seconds'), z.literal('minutes'), z.literal('hours')]),
|
|
61
60
|
});
|
|
62
61
|
export const internalVapixParametersSchema = bitrateVapixParamsSchema.extend({
|
|
@@ -80,6 +79,14 @@ export const internalVapixParametersSchema = bitrateVapixParamsSchema.extend({
|
|
|
80
79
|
])
|
|
81
80
|
.optional(),
|
|
82
81
|
});
|
|
82
|
+
export const streamVideoSchema = z.object({
|
|
83
|
+
inputType: streamInputTypeSchema,
|
|
84
|
+
sourceUrl: z.string().optional(),
|
|
85
|
+
internalVapixParameters: z.string(),
|
|
86
|
+
userVapixParameters: z.string(),
|
|
87
|
+
streamingProtocol: streamingProtocolTypeSchema,
|
|
88
|
+
streamDelay: streamDelaySchema.optional(),
|
|
89
|
+
});
|
|
83
90
|
export const streamAudioSchema = z.discriminatedUnion('source', [
|
|
84
91
|
z.object({
|
|
85
92
|
source: z.literal('none'),
|
|
@@ -103,11 +110,6 @@ export const streamCommonSchema = z.object({
|
|
|
103
110
|
active: z.boolean(),
|
|
104
111
|
title: z.string(),
|
|
105
112
|
trigger: streamTriggerSchema,
|
|
106
|
-
|
|
107
|
-
inputUrl: z.string(),
|
|
108
|
-
internalVapixParameters: z.string(),
|
|
109
|
-
userVapixParameters: z.string(),
|
|
110
|
-
streamingProtocol: streamingProtocolTypeSchema,
|
|
111
|
-
streamDelay: streamDelaySchema,
|
|
113
|
+
video: streamVideoSchema,
|
|
112
114
|
audio: streamAudioSchema,
|
|
113
115
|
});
|
|
@@ -12,7 +12,7 @@ export const youtubeSchema = streamCommonSchema.extend({
|
|
|
12
12
|
dvr: z.boolean(),
|
|
13
13
|
saveToSdCard: z.boolean(),
|
|
14
14
|
statusCameraLed: z.boolean(),
|
|
15
|
-
statusCameraOutput: z.string(),
|
|
15
|
+
statusCameraOutput: z.string().nullable(),
|
|
16
16
|
hasWatchdogs: z.boolean(),
|
|
17
17
|
countdown: z.boolean(),
|
|
18
18
|
enableManualControl: z.boolean(),
|