camstreamerlib 4.0.0-beta.93 → 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 -981
- 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 +1122 -7466
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +16 -76
- 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 -25
- 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 -63
- 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 -24
- 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 -981
- 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 +1122 -7466
- 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/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/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/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,50 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.audioLocalSchema = exports.audioUrlSchema = exports.audioFileListSchema = exports.audioFileSchema = exports.storageListSchema = exports.audioFileStorageTypeSchema = exports.AudioType = exports.isYouTubeStream = exports.isWindyStream = exports.isSdCardStream = exports.isRtmpStream = exports.isMpegDvbStream = exports.isHlsStream = exports.isFacebookStream = exports.streamListSchema = exports.streamSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const facebookSchema_1 = require("./facebookSchema");
|
|
6
|
+
const hlsSchema_1 = require("./hlsSchema");
|
|
6
7
|
const mpegDvbSchema_1 = require("./mpegDvbSchema");
|
|
7
8
|
const rtmpSchema_1 = require("./rtmpSchema");
|
|
8
9
|
const sdCardSchema_1 = require("./sdCardSchema");
|
|
9
10
|
const windySchema_1 = require("./windySchema");
|
|
10
11
|
const youtubeSchema_1 = require("./youtubeSchema");
|
|
11
|
-
const vimeoSchema_1 = require("./vimeoSchema");
|
|
12
|
-
const twitchSchema_1 = require("./twitchSchema");
|
|
13
|
-
const churchSchema_1 = require("./churchSchema");
|
|
14
|
-
const srtSchema_1 = require("./srtSchema");
|
|
15
|
-
const daCastSchema_1 = require("./daCastSchema");
|
|
16
|
-
const hlsPullSchema_1 = require("./hlsPullSchema");
|
|
17
|
-
const hlsPushSchema_1 = require("./hlsPushSchema");
|
|
18
|
-
const wowzaSchema_1 = require("./wowzaSchema");
|
|
19
|
-
const dailymotionSchema_1 = require("./dailymotionSchema");
|
|
20
|
-
const ibmSchema_1 = require("./ibmSchema");
|
|
21
|
-
const microsoftAzureSchema_1 = require("./microsoftAzureSchema");
|
|
22
|
-
const microsoftStreamSchema_1 = require("./microsoftStreamSchema");
|
|
23
12
|
exports.streamSchema = zod_1.z.discriminatedUnion('type', [
|
|
24
13
|
facebookSchema_1.facebookSchema,
|
|
14
|
+
hlsSchema_1.hlsSchema,
|
|
25
15
|
mpegDvbSchema_1.mpegDvbSchema,
|
|
26
16
|
rtmpSchema_1.rtmpSchema,
|
|
27
17
|
sdCardSchema_1.sdCardSchema,
|
|
28
18
|
windySchema_1.windySchema,
|
|
29
19
|
youtubeSchema_1.youtubeSchema,
|
|
30
|
-
vimeoSchema_1.vimeoSchema,
|
|
31
|
-
twitchSchema_1.twitchSchema,
|
|
32
|
-
churchSchema_1.churchSchema,
|
|
33
|
-
srtSchema_1.srtSchema,
|
|
34
|
-
daCastSchema_1.daCastSchema,
|
|
35
|
-
hlsPullSchema_1.hlsPullSchema,
|
|
36
|
-
hlsPushSchema_1.hlsPushSchema,
|
|
37
|
-
wowzaSchema_1.wowzaSchema,
|
|
38
|
-
dailymotionSchema_1.dailymotionSchema,
|
|
39
|
-
ibmSchema_1.ibmSchema,
|
|
40
|
-
microsoftAzureSchema_1.microsoftAzureSchema,
|
|
41
|
-
microsoftStreamSchema_1.microsoftStreamSchema,
|
|
42
20
|
]);
|
|
43
21
|
exports.streamListSchema = zod_1.z.object({ streamList: zod_1.z.array(exports.streamSchema) });
|
|
44
22
|
const isFacebookStream = (stream) => {
|
|
45
23
|
return stream.type === 'facebook';
|
|
46
24
|
};
|
|
47
25
|
exports.isFacebookStream = isFacebookStream;
|
|
26
|
+
const isHlsStream = (stream) => {
|
|
27
|
+
return stream.type === 'hls';
|
|
28
|
+
};
|
|
29
|
+
exports.isHlsStream = isHlsStream;
|
|
48
30
|
const isMpegDvbStream = (stream) => {
|
|
49
31
|
return stream.type === 'mpeg_dvb';
|
|
50
32
|
};
|
|
@@ -65,54 +47,6 @@ const isYouTubeStream = (stream) => {
|
|
|
65
47
|
return stream.type === 'youtube';
|
|
66
48
|
};
|
|
67
49
|
exports.isYouTubeStream = isYouTubeStream;
|
|
68
|
-
const isVimeoStream = (stream) => {
|
|
69
|
-
return stream.type === 'vimeo';
|
|
70
|
-
};
|
|
71
|
-
exports.isVimeoStream = isVimeoStream;
|
|
72
|
-
const isTwitchStream = (stream) => {
|
|
73
|
-
return stream.type === 'twitch';
|
|
74
|
-
};
|
|
75
|
-
exports.isTwitchStream = isTwitchStream;
|
|
76
|
-
const isChurchStream = (stream) => {
|
|
77
|
-
return stream.type === 'church';
|
|
78
|
-
};
|
|
79
|
-
exports.isChurchStream = isChurchStream;
|
|
80
|
-
const isSrtStream = (stream) => {
|
|
81
|
-
return stream.type === 'srt';
|
|
82
|
-
};
|
|
83
|
-
exports.isSrtStream = isSrtStream;
|
|
84
|
-
const isDaCastStream = (stream) => {
|
|
85
|
-
return stream.type === 'da_cast';
|
|
86
|
-
};
|
|
87
|
-
exports.isDaCastStream = isDaCastStream;
|
|
88
|
-
const isHlsPullStream = (stream) => {
|
|
89
|
-
return stream.type === 'hls_pull';
|
|
90
|
-
};
|
|
91
|
-
exports.isHlsPullStream = isHlsPullStream;
|
|
92
|
-
const isHlsPushStream = (stream) => {
|
|
93
|
-
return stream.type === 'hls_push';
|
|
94
|
-
};
|
|
95
|
-
exports.isHlsPushStream = isHlsPushStream;
|
|
96
|
-
const isWowzaStream = (stream) => {
|
|
97
|
-
return stream.type === 'wowza';
|
|
98
|
-
};
|
|
99
|
-
exports.isWowzaStream = isWowzaStream;
|
|
100
|
-
const isDailymotionStream = (stream) => {
|
|
101
|
-
return stream.type === 'dailymotion';
|
|
102
|
-
};
|
|
103
|
-
exports.isDailymotionStream = isDailymotionStream;
|
|
104
|
-
const isIbmStream = (stream) => {
|
|
105
|
-
return stream.type === 'ibm';
|
|
106
|
-
};
|
|
107
|
-
exports.isIbmStream = isIbmStream;
|
|
108
|
-
const isMicrosoftAzureStream = (stream) => {
|
|
109
|
-
return stream.type === 'microsoft_azure';
|
|
110
|
-
};
|
|
111
|
-
exports.isMicrosoftAzureStream = isMicrosoftAzureStream;
|
|
112
|
-
const isMicrosoftStream = (stream) => {
|
|
113
|
-
return stream.type === 'microsoft_stream';
|
|
114
|
-
};
|
|
115
|
-
exports.isMicrosoftStream = isMicrosoftStream;
|
|
116
50
|
var AudioType;
|
|
117
51
|
(function (AudioType) {
|
|
118
52
|
AudioType[AudioType["MP3"] = 0] = "MP3";
|
|
@@ -135,7 +69,13 @@ exports.audioFileSchema = zod_1.z.object({
|
|
|
135
69
|
storage: exports.audioFileStorageTypeSchema,
|
|
136
70
|
});
|
|
137
71
|
exports.audioFileListSchema = zod_1.z.array(exports.audioFileSchema);
|
|
138
|
-
exports.
|
|
139
|
-
|
|
140
|
-
|
|
72
|
+
exports.audioUrlSchema = zod_1.z.object({
|
|
73
|
+
fileUrl: zod_1.z.string(),
|
|
74
|
+
name: zod_1.z.string(),
|
|
75
|
+
storage: zod_1.z.literal('url'),
|
|
76
|
+
});
|
|
77
|
+
exports.audioLocalSchema = zod_1.z.object({
|
|
78
|
+
file: zod_1.z.instanceof(File),
|
|
79
|
+
name: zod_1.z.string(),
|
|
80
|
+
storage: zod_1.z.enum(['flash', 'SD0']),
|
|
141
81
|
});
|
|
@@ -97,32 +97,6 @@ export declare const facebookSchema: 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<"facebook">;
|
|
128
102
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -152,16 +126,6 @@ export declare const facebookSchema: 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: "facebook";
|
|
167
131
|
enabled: boolean;
|
|
@@ -189,14 +153,4 @@ export declare const facebookSchema: 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
|
}>;
|
package/{types/types/CamStreamerAPI/ibmSchema.d.ts → cjs/types/CamStreamerAPI/hlsSchema.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const hlsSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodNumber;
|
|
4
4
|
enabled: z.ZodBoolean;
|
|
5
5
|
active: z.ZodBoolean;
|
|
@@ -97,36 +97,10 @@ export declare const ibmSchema: 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
|
-
type: z.ZodLiteral<"
|
|
101
|
+
type: z.ZodLiteral<"hls">;
|
|
128
102
|
}, "strip", z.ZodTypeAny, {
|
|
129
|
-
type: "
|
|
103
|
+
type: "hls";
|
|
130
104
|
enabled: boolean;
|
|
131
105
|
id: number;
|
|
132
106
|
active: boolean;
|
|
@@ -152,18 +126,8 @@ export declare const ibmSchema: 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
|
-
type: "
|
|
130
|
+
type: "hls";
|
|
167
131
|
enabled: boolean;
|
|
168
132
|
id: number;
|
|
169
133
|
active: boolean;
|
|
@@ -189,14 +153,4 @@ export declare const ibmSchema: 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
|
}>;
|
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.hlsSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
const streamCommonTypes_1 = require("./streamCommonTypes");
|
|
9
|
-
exports.
|
|
10
|
-
type: zod_1.default.literal('
|
|
9
|
+
exports.hlsSchema = streamCommonTypes_1.streamCommonSchema.extend({
|
|
10
|
+
type: zod_1.default.literal('hls'),
|
|
11
11
|
});
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./CamStreamerAPI"), exports);
|
|
18
18
|
__exportStar(require("./streamCommonTypes"), exports);
|
|
19
19
|
__exportStar(require("./facebookSchema"), exports);
|
|
20
|
+
__exportStar(require("./hlsSchema"), exports);
|
|
20
21
|
__exportStar(require("./mpegDvbSchema"), exports);
|
|
21
22
|
__exportStar(require("./rtmpSchema"), exports);
|
|
22
23
|
__exportStar(require("./sdCardSchema"), exports);
|
|
@@ -97,32 +97,6 @@ export declare const mpegDvbSchema: 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<"mpeg_dvb">;
|
|
128
102
|
ipAddress: z.ZodString;
|
|
@@ -169,16 +143,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
169
143
|
isActive: boolean;
|
|
170
144
|
}[];
|
|
171
145
|
};
|
|
172
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
173
|
-
internalVapixParameters: {
|
|
174
|
-
camera: string;
|
|
175
|
-
resolution?: string | undefined;
|
|
176
|
-
compression?: number | undefined;
|
|
177
|
-
audio?: 0 | 1 | undefined;
|
|
178
|
-
fps?: number | undefined;
|
|
179
|
-
videobitrate?: number | undefined;
|
|
180
|
-
videomaxbitrate?: number | undefined;
|
|
181
|
-
};
|
|
182
146
|
ipAddress: string;
|
|
183
147
|
standard: "DVB" | "ATSC";
|
|
184
148
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -222,16 +186,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
222
186
|
isActive: boolean;
|
|
223
187
|
}[];
|
|
224
188
|
};
|
|
225
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
226
|
-
internalVapixParameters: {
|
|
227
|
-
camera: string;
|
|
228
|
-
resolution?: string | undefined;
|
|
229
|
-
compression?: number | undefined;
|
|
230
|
-
audio?: 0 | 1 | undefined;
|
|
231
|
-
fps?: number | undefined;
|
|
232
|
-
videobitrate?: number | undefined;
|
|
233
|
-
videomaxbitrate?: number | undefined;
|
|
234
|
-
};
|
|
235
189
|
ipAddress: string;
|
|
236
190
|
standard: "DVB" | "ATSC";
|
|
237
191
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -28,14 +28,14 @@ export declare const oldStringStreamSchema: z.ZodObject<{
|
|
|
28
28
|
schedule: string;
|
|
29
29
|
active: string;
|
|
30
30
|
trigger: string;
|
|
31
|
-
inputType: string;
|
|
32
|
-
internalVapixParameters: string;
|
|
33
31
|
audioSource: string;
|
|
34
32
|
avSyncMsec: string;
|
|
33
|
+
internalVapixParameters: string;
|
|
35
34
|
userVapixParameters: string;
|
|
36
35
|
outputParameters: string;
|
|
37
36
|
outputType: string;
|
|
38
37
|
mediaServerUrl: string;
|
|
38
|
+
inputType: string;
|
|
39
39
|
inputUrl: string;
|
|
40
40
|
forceStereo: string;
|
|
41
41
|
streamDelay: string;
|
|
@@ -50,14 +50,14 @@ export declare const oldStringStreamSchema: z.ZodObject<{
|
|
|
50
50
|
schedule: string;
|
|
51
51
|
active: string;
|
|
52
52
|
trigger: string;
|
|
53
|
-
inputType: string;
|
|
54
|
-
internalVapixParameters: string;
|
|
55
53
|
audioSource: string;
|
|
56
54
|
avSyncMsec: string;
|
|
55
|
+
internalVapixParameters: string;
|
|
57
56
|
userVapixParameters: string;
|
|
58
57
|
outputParameters: string;
|
|
59
58
|
outputType: string;
|
|
60
59
|
mediaServerUrl: string;
|
|
60
|
+
inputType: string;
|
|
61
61
|
inputUrl: string;
|
|
62
62
|
forceStereo: string;
|
|
63
63
|
streamDelay: string;
|
|
@@ -98,14 +98,14 @@ export declare const oldStringStreamSchemaWithId: z.ZodObject<{
|
|
|
98
98
|
schedule: string;
|
|
99
99
|
active: string;
|
|
100
100
|
trigger: string;
|
|
101
|
-
inputType: string;
|
|
102
|
-
internalVapixParameters: string;
|
|
103
101
|
audioSource: string;
|
|
104
102
|
avSyncMsec: string;
|
|
103
|
+
internalVapixParameters: string;
|
|
105
104
|
userVapixParameters: string;
|
|
106
105
|
outputParameters: string;
|
|
107
106
|
outputType: string;
|
|
108
107
|
mediaServerUrl: string;
|
|
108
|
+
inputType: string;
|
|
109
109
|
inputUrl: string;
|
|
110
110
|
forceStereo: string;
|
|
111
111
|
streamDelay: string;
|
|
@@ -121,14 +121,14 @@ export declare const oldStringStreamSchemaWithId: z.ZodObject<{
|
|
|
121
121
|
schedule: string;
|
|
122
122
|
active: string;
|
|
123
123
|
trigger: string;
|
|
124
|
-
inputType: string;
|
|
125
|
-
internalVapixParameters: string;
|
|
126
124
|
audioSource: string;
|
|
127
125
|
avSyncMsec: string;
|
|
126
|
+
internalVapixParameters: string;
|
|
128
127
|
userVapixParameters: string;
|
|
129
128
|
outputParameters: string;
|
|
130
129
|
outputType: string;
|
|
131
130
|
mediaServerUrl: string;
|
|
131
|
+
inputType: string;
|
|
132
132
|
inputUrl: string;
|
|
133
133
|
forceStereo: string;
|
|
134
134
|
streamDelay: string;
|
|
@@ -167,14 +167,14 @@ export declare const oldStreamSchema: z.ZodObject<{
|
|
|
167
167
|
schedule: string;
|
|
168
168
|
active: 0 | 1;
|
|
169
169
|
trigger: string;
|
|
170
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
171
|
-
internalVapixParameters: string;
|
|
172
170
|
audioSource: string;
|
|
173
171
|
avSyncMsec: number;
|
|
172
|
+
internalVapixParameters: string;
|
|
174
173
|
userVapixParameters: string;
|
|
175
174
|
outputParameters: string;
|
|
176
175
|
outputType: "video" | "none" | "images";
|
|
177
176
|
mediaServerUrl: string;
|
|
177
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
178
178
|
inputUrl: string;
|
|
179
179
|
forceStereo: 0 | 1;
|
|
180
180
|
streamDelay: number | null;
|
|
@@ -189,14 +189,14 @@ export declare const oldStreamSchema: z.ZodObject<{
|
|
|
189
189
|
schedule: string;
|
|
190
190
|
active: 0 | 1;
|
|
191
191
|
trigger: string;
|
|
192
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
193
|
-
internalVapixParameters: string;
|
|
194
192
|
audioSource: string;
|
|
195
193
|
avSyncMsec: number;
|
|
194
|
+
internalVapixParameters: string;
|
|
196
195
|
userVapixParameters: string;
|
|
197
196
|
outputParameters: string;
|
|
198
197
|
outputType: "video" | "none" | "images";
|
|
199
198
|
mediaServerUrl: string;
|
|
199
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
200
200
|
inputUrl: string;
|
|
201
201
|
forceStereo: 0 | 1;
|
|
202
202
|
streamDelay: number | null;
|
|
@@ -97,34 +97,11 @@ export declare const rtmpSchema: 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<"rtmp">;
|
|
102
|
+
rtmpUrl: z.ZodString;
|
|
103
|
+
streamKey: z.ZodString;
|
|
104
|
+
streamIdentifier: z.ZodOptional<z.ZodString>;
|
|
128
105
|
}, "strip", z.ZodTypeAny, {
|
|
129
106
|
type: "rtmp";
|
|
130
107
|
enabled: boolean;
|
|
@@ -152,16 +129,9 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
152
129
|
isActive: boolean;
|
|
153
130
|
}[];
|
|
154
131
|
};
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
};
|
|
132
|
+
rtmpUrl: string;
|
|
133
|
+
streamKey: string;
|
|
134
|
+
streamIdentifier?: string | undefined;
|
|
165
135
|
}, {
|
|
166
136
|
type: "rtmp";
|
|
167
137
|
enabled: boolean;
|
|
@@ -189,14 +159,7 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
189
159
|
isActive: boolean;
|
|
190
160
|
}[];
|
|
191
161
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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
|
-
};
|
|
162
|
+
rtmpUrl: string;
|
|
163
|
+
streamKey: string;
|
|
164
|
+
streamIdentifier?: string | undefined;
|
|
202
165
|
}>;
|
|
@@ -8,4 +8,7 @@ const zod_1 = __importDefault(require("zod"));
|
|
|
8
8
|
const streamCommonTypes_1 = require("./streamCommonTypes");
|
|
9
9
|
exports.rtmpSchema = streamCommonTypes_1.streamCommonSchema.extend({
|
|
10
10
|
type: zod_1.default.literal('rtmp'),
|
|
11
|
+
rtmpUrl: zod_1.default.string().url(),
|
|
12
|
+
streamKey: zod_1.default.string(),
|
|
13
|
+
streamIdentifier: zod_1.default.string().optional(),
|
|
11
14
|
});
|
|
@@ -97,32 +97,6 @@ export declare const sdCardSchema: 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<"sd_card">;
|
|
128
102
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -152,16 +126,6 @@ export declare const sdCardSchema: 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: "sd_card";
|
|
167
131
|
enabled: boolean;
|
|
@@ -189,14 +153,4 @@ export declare const sdCardSchema: 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
|
}>;
|