camstreamerlib 4.0.0-beta.97 → 4.0.1
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/README.md +44 -15
- package/cjs/CamOverlayAPI.d.ts +147 -109
- package/cjs/CamOverlayAPI.js +14 -63
- package/cjs/CamScripterAPI.d.ts +5 -8
- package/cjs/CamScripterAPI.js +11 -29
- package/cjs/CamStreamerAPI.d.ts +2745 -589
- package/cjs/CamStreamerAPI.js +68 -76
- package/cjs/CamSwitcherAPI.d.ts +23 -22
- package/cjs/CamSwitcherAPI.js +30 -88
- package/cjs/PlaneTrackerAPI.d.ts +28 -30
- package/cjs/PlaneTrackerAPI.js +20 -75
- package/cjs/VapixAPI.d.ts +36 -23
- package/cjs/VapixAPI.js +227 -106
- package/cjs/errors/errors.d.ts +11 -5
- package/cjs/errors/errors.js +5 -1
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +1 -0
- package/cjs/internal/BasicAPI.d.ts +15 -0
- package/cjs/internal/BasicAPI.js +93 -0
- package/cjs/internal/WsEvents.d.ts +1 -0
- package/cjs/internal/WsEvents.js +5 -0
- package/cjs/internal/constants.d.ts +1 -0
- package/cjs/internal/constants.js +2 -1
- package/cjs/internal/convertors.d.ts +6 -0
- package/cjs/internal/convertors.js +115 -0
- package/cjs/internal/transformers.js +8 -8
- package/cjs/internal/types.d.ts +3 -0
- package/cjs/internal/versionCompare.d.ts +2 -2
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +894 -374
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +54 -11
- package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +10 -10
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -40
- package/cjs/types/CamOverlayAPI/htmlOverlaySchema.d.ts +81 -0
- package/cjs/types/CamOverlayAPI/htmlOverlaySchema.js +21 -0
- package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +10 -10
- package/cjs/types/CamOverlayAPI/index.d.ts +1 -0
- package/cjs/types/CamOverlayAPI/index.js +1 -0
- package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +8 -8
- package/cjs/types/CamOverlayAPI/pipSchema.d.ts +8 -8
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +10 -10
- package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +13 -13
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +18 -18
- package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +8 -8
- package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +17 -16
- package/cjs/types/CamOverlayAPI/serviceCommonTypes.js +6 -3
- package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +8 -8
- package/cjs/types/CamScripterAPI.d.ts +0 -11
- package/cjs/types/CamScripterAPI.js +1 -5
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +19642 -3073
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +126 -57
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +434 -52
- package/cjs/types/CamStreamerAPI/facebookSchema.js +13 -1
- package/cjs/types/CamStreamerAPI/index.d.ts +1 -3
- package/cjs/types/CamStreamerAPI/index.js +1 -3
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +47 -47
- package/cjs/types/CamStreamerAPI/oldStreamSchema.js +1 -1
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +430 -219
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +116 -58
- package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +8812 -0
- package/cjs/types/CamStreamerAPI/streamsSchema.js +81 -0
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +394 -52
- package/cjs/types/CamStreamerAPI/windySchema.js +9 -1
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +402 -52
- package/cjs/types/CamStreamerAPI/youtubeSchema.js +12 -1
- package/cjs/types/CamSwitcherAPI.d.ts +96 -91
- package/cjs/types/CamSwitcherAPI.js +9 -9
- package/cjs/types/GenetecAgent.d.ts +2 -2
- package/cjs/types/PlaneTrackerAPI.d.ts +60 -47
- package/cjs/types/PlaneTrackerAPI.js +5 -2
- package/cjs/types/VapixAPI.d.ts +51 -32
- package/cjs/types/VapixAPI.js +10 -3
- package/cjs/types/common.d.ts +27 -0
- package/cjs/types/common.js +13 -1
- package/cjs/types/ws/CamStreamerEvents.d.ts +110 -77
- package/cjs/types/ws/CamStreamerEvents.js +11 -7
- package/cjs/types/ws/CamSwitcherEvents.d.ts +8 -8
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +3 -3
- package/esm/CamOverlayAPI.js +16 -65
- package/esm/CamScripterAPI.js +9 -30
- package/esm/CamStreamerAPI.js +70 -78
- package/esm/CamSwitcherAPI.js +31 -89
- package/esm/PlaneTrackerAPI.js +21 -76
- package/esm/VapixAPI.js +228 -107
- package/esm/errors/errors.js +5 -1
- package/esm/index.js +1 -0
- package/esm/internal/BasicAPI.js +89 -0
- package/esm/internal/WsEvents.js +5 -0
- package/esm/internal/constants.js +1 -0
- package/esm/internal/convertors.js +108 -0
- package/esm/internal/transformers.js +1 -1
- package/esm/types/CamOverlayAPI/CamOverlayAPI.js +47 -10
- package/esm/types/CamOverlayAPI/htmlOverlaySchema.js +18 -0
- package/esm/types/CamOverlayAPI/index.js +1 -0
- package/esm/types/CamOverlayAPI/serviceCommonTypes.js +6 -3
- package/esm/types/CamScripterAPI.js +0 -4
- package/esm/types/CamStreamerAPI/CamStreamerAPI.js +109 -41
- package/esm/types/CamStreamerAPI/facebookSchema.js +13 -1
- package/esm/types/CamStreamerAPI/index.js +1 -3
- package/esm/types/CamStreamerAPI/oldStreamSchema.js +1 -1
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +116 -58
- package/esm/types/CamStreamerAPI/streamsSchema.js +75 -0
- package/esm/types/CamStreamerAPI/windySchema.js +9 -1
- package/esm/types/CamStreamerAPI/youtubeSchema.js +12 -1
- package/esm/types/CamSwitcherAPI.js +8 -8
- package/esm/types/PlaneTrackerAPI.js +5 -2
- package/esm/types/VapixAPI.js +9 -2
- package/esm/types/common.js +12 -0
- package/esm/types/ws/CamStreamerEvents.js +11 -7
- package/package.json +4 -4
- package/types/CamOverlayAPI.d.ts +147 -109
- package/types/CamScripterAPI.d.ts +5 -8
- package/types/CamStreamerAPI.d.ts +2745 -589
- package/types/CamSwitcherAPI.d.ts +23 -22
- package/types/PlaneTrackerAPI.d.ts +28 -30
- package/types/VapixAPI.d.ts +36 -23
- package/types/errors/errors.d.ts +11 -5
- package/types/index.d.ts +1 -0
- package/types/internal/BasicAPI.d.ts +15 -0
- package/types/internal/WsEvents.d.ts +1 -0
- package/types/internal/constants.d.ts +1 -0
- package/types/internal/convertors.d.ts +6 -0
- package/types/internal/types.d.ts +3 -0
- package/types/internal/versionCompare.d.ts +2 -2
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +894 -374
- package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +10 -10
- package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -40
- package/types/types/CamOverlayAPI/htmlOverlaySchema.d.ts +81 -0
- package/types/types/CamOverlayAPI/imagesSchema.d.ts +10 -10
- package/types/types/CamOverlayAPI/index.d.ts +1 -0
- package/types/types/CamOverlayAPI/infotickerSchema.d.ts +8 -8
- package/types/types/CamOverlayAPI/pipSchema.d.ts +8 -8
- package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +10 -10
- package/types/types/CamOverlayAPI/ptzSchema.d.ts +13 -13
- package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +18 -18
- package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +8 -8
- package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +17 -16
- package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +8 -8
- package/types/types/CamScripterAPI.d.ts +0 -11
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +19642 -3073
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +434 -52
- package/types/types/CamStreamerAPI/index.d.ts +1 -3
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +47 -47
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +430 -219
- package/types/types/CamStreamerAPI/streamsSchema.d.ts +8812 -0
- package/types/types/CamStreamerAPI/windySchema.d.ts +394 -52
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +402 -52
- package/types/types/CamSwitcherAPI.d.ts +96 -91
- package/types/types/GenetecAgent.d.ts +2 -2
- package/types/types/PlaneTrackerAPI.d.ts +60 -47
- package/types/types/VapixAPI.d.ts +51 -32
- package/types/types/common.d.ts +27 -0
- package/types/types/ws/CamStreamerEvents.d.ts +110 -77
- package/types/types/ws/CamSwitcherEvents.d.ts +8 -8
- package/types/types/ws/PlaneTrackerEvents.d.ts +3 -3
- 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/ibmSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/ibmSchema.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/mpegDvbSchema.d.ts +0 -250
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +0 -27
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +0 -211
- package/cjs/types/CamStreamerAPI/rtmpSchema.js +0 -14
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/sdCardSchema.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/ibmSchema.js +0 -5
- package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +0 -5
- package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +0 -5
- package/esm/types/CamStreamerAPI/mpegDvbSchema.js +0 -21
- package/esm/types/CamStreamerAPI/rtmpSchema.js +0 -8
- package/esm/types/CamStreamerAPI/sdCardSchema.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/ibmSchema.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/mpegDvbSchema.d.ts +0 -250
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +0 -211
- package/types/types/CamStreamerAPI/sdCardSchema.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,67 +1,125 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.internalVapixParametersSchema = exports.streamCommonSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const common_1 = require("../common");
|
|
6
|
-
exports.streamTypeSchema = zod_1.z.union([
|
|
7
|
-
zod_1.z.literal('youtube'),
|
|
8
|
-
zod_1.z.literal('facebook'),
|
|
9
|
-
zod_1.z.literal('sd_card'),
|
|
10
|
-
zod_1.z.literal('windy'),
|
|
11
|
-
zod_1.z.literal('mpeg_dvb'),
|
|
12
|
-
zod_1.z.literal('rtmp'),
|
|
13
|
-
zod_1.z.literal('dailymotion'),
|
|
14
|
-
zod_1.z.literal('ibm'),
|
|
15
|
-
zod_1.z.literal('hls_pull'),
|
|
16
|
-
zod_1.z.literal('hls_push'),
|
|
17
|
-
zod_1.z.literal('wowza'),
|
|
18
|
-
zod_1.z.literal('microsoft_stream'),
|
|
19
|
-
zod_1.z.literal('microsoft_azure'),
|
|
20
|
-
zod_1.z.literal('vimeo'),
|
|
21
|
-
zod_1.z.literal('twitch'),
|
|
22
|
-
zod_1.z.literal('church'),
|
|
23
|
-
zod_1.z.literal('srt'),
|
|
24
|
-
zod_1.z.literal('da_cast'),
|
|
25
|
-
zod_1.z.literal('game_changer'),
|
|
26
|
-
]);
|
|
27
|
-
const scheduleSchema = zod_1.z.object({
|
|
28
|
-
start: zod_1.z.object({
|
|
29
|
-
day: zod_1.z.number().int().min(0).max(6),
|
|
30
|
-
timeS: zod_1.z.number().int().min(0).max(86400),
|
|
31
|
-
}),
|
|
32
|
-
stop: zod_1.z.object({
|
|
33
|
-
day: zod_1.z.number().int().min(0).max(6),
|
|
34
|
-
timeS: zod_1.z.number().int().min(0).max(86400),
|
|
35
|
-
}),
|
|
36
|
-
isActive: zod_1.z.boolean(),
|
|
37
|
-
});
|
|
38
|
-
exports.streamTriggerSchema = zod_1.z.discriminatedUnion('type', [
|
|
39
|
-
zod_1.z.object({
|
|
40
|
-
type: zod_1.z.literal('manual'),
|
|
41
|
-
ioPort: zod_1.z.string().nullable(),
|
|
42
|
-
}),
|
|
43
|
-
zod_1.z.object({ type: zod_1.z.literal('onetime'), startTime: zod_1.z.number(), stopTime: zod_1.z.number() }),
|
|
44
|
-
zod_1.z.object({
|
|
45
|
-
type: zod_1.z.literal('recurrent'),
|
|
46
|
-
schedule: zod_1.z.array(scheduleSchema),
|
|
47
|
-
}),
|
|
48
|
-
]);
|
|
49
|
-
exports.streamInputTypeSchema = zod_1.z.union([zod_1.z.literal('CSw'), zod_1.z.literal('CRS'), zod_1.z.literal('RTSP_URL')]);
|
|
50
|
-
exports.internalVapixParametersSchema = zod_1.z.object({
|
|
51
|
-
camera: zod_1.z.string(),
|
|
52
|
-
resolution: zod_1.z.string().optional(),
|
|
53
|
-
compression: zod_1.z.number().optional(),
|
|
54
|
-
fps: zod_1.z.number().int().optional(),
|
|
55
|
-
videobitrate: zod_1.z.number().int().optional(),
|
|
56
|
-
videomaxbitrate: zod_1.z.number().int().optional(),
|
|
57
|
-
audio: common_1.booleanSchema.optional(),
|
|
58
|
-
});
|
|
59
6
|
exports.streamCommonSchema = zod_1.z.object({
|
|
60
|
-
|
|
7
|
+
streamId: zod_1.z.string(),
|
|
61
8
|
enabled: zod_1.z.boolean(),
|
|
62
9
|
active: zod_1.z.boolean(),
|
|
63
10
|
title: zod_1.z.string(),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
11
|
+
callApi: zod_1.z.boolean(),
|
|
12
|
+
trigger: zod_1.z.discriminatedUnion('type', [
|
|
13
|
+
zod_1.z.object({
|
|
14
|
+
type: zod_1.z.literal('manual'),
|
|
15
|
+
port: zod_1.z.number().optional(),
|
|
16
|
+
}),
|
|
17
|
+
zod_1.z.object({
|
|
18
|
+
type: zod_1.z.literal('onetime'),
|
|
19
|
+
startTime: zod_1.z.number(),
|
|
20
|
+
stopTime: zod_1.z.number(),
|
|
21
|
+
everActivated: zod_1.z.boolean(),
|
|
22
|
+
prepareAheadS: zod_1.z.number().int().optional(),
|
|
23
|
+
}),
|
|
24
|
+
zod_1.z.object({
|
|
25
|
+
type: zod_1.z.literal('recurrent'),
|
|
26
|
+
schedule: zod_1.z.array(zod_1.z.object({
|
|
27
|
+
start: zod_1.z.object({
|
|
28
|
+
day: zod_1.z.number().int().min(0).max(6),
|
|
29
|
+
timeS: zod_1.z.number().int().min(0).max(86400),
|
|
30
|
+
}),
|
|
31
|
+
stop: zod_1.z.object({
|
|
32
|
+
day: zod_1.z.number().int().min(0).max(6),
|
|
33
|
+
timeS: zod_1.z.number().int().min(0).max(86400),
|
|
34
|
+
}),
|
|
35
|
+
isActive: zod_1.z.boolean(),
|
|
36
|
+
})),
|
|
37
|
+
prepareAheadS: zod_1.z.number().int().optional(),
|
|
38
|
+
}),
|
|
39
|
+
]),
|
|
40
|
+
video: zod_1.z.object({
|
|
41
|
+
output: zod_1.z.discriminatedUnion('type', [
|
|
42
|
+
zod_1.z.object({
|
|
43
|
+
type: zod_1.z.literal('video'),
|
|
44
|
+
url: zod_1.z.string().nullable(),
|
|
45
|
+
parameters: zod_1.z.string(),
|
|
46
|
+
saveToSdCard: zod_1.z
|
|
47
|
+
.object({
|
|
48
|
+
ruleId: zod_1.z.string(),
|
|
49
|
+
configurationId: zod_1.z.string(),
|
|
50
|
+
})
|
|
51
|
+
.optional(),
|
|
52
|
+
}),
|
|
53
|
+
zod_1.z.object({
|
|
54
|
+
type: zod_1.z.literal('images'),
|
|
55
|
+
url: zod_1.z.string().nullable(),
|
|
56
|
+
imageIntervalS: zod_1.z.number(),
|
|
57
|
+
}),
|
|
58
|
+
zod_1.z.object({
|
|
59
|
+
type: zod_1.z.literal('none'),
|
|
60
|
+
saveToSdCard: zod_1.z.object({
|
|
61
|
+
ruleId: zod_1.z.string(),
|
|
62
|
+
configurationId: zod_1.z.string(),
|
|
63
|
+
}),
|
|
64
|
+
}),
|
|
65
|
+
]),
|
|
66
|
+
input: zod_1.z.discriminatedUnion('type', [
|
|
67
|
+
zod_1.z.object({
|
|
68
|
+
type: zod_1.z.literal('RTSP_URL'),
|
|
69
|
+
url: zod_1.z.string(),
|
|
70
|
+
internalVapixParameters: zod_1.z.string(),
|
|
71
|
+
}),
|
|
72
|
+
zod_1.z.object({
|
|
73
|
+
type: zod_1.z.literal('CSw'),
|
|
74
|
+
internalVapixParameters: zod_1.z.string(),
|
|
75
|
+
}),
|
|
76
|
+
zod_1.z.object({
|
|
77
|
+
type: zod_1.z.literal('CRS'),
|
|
78
|
+
internalVapixParameters: zod_1.z.string(),
|
|
79
|
+
userVapixParameters: zod_1.z.string(),
|
|
80
|
+
}),
|
|
81
|
+
]),
|
|
82
|
+
delayS: zod_1.z.number().int().nonnegative().optional(),
|
|
83
|
+
}),
|
|
84
|
+
audio: zod_1.z.discriminatedUnion('source', [
|
|
85
|
+
zod_1.z.object({
|
|
86
|
+
source: zod_1.z.literal('none'),
|
|
87
|
+
}),
|
|
88
|
+
zod_1.z.object({
|
|
89
|
+
source: zod_1.z.literal('microphone'),
|
|
90
|
+
audioChannelNbr: zod_1.z.number().int(),
|
|
91
|
+
forceStereo: zod_1.z.boolean(),
|
|
92
|
+
}),
|
|
93
|
+
zod_1.z.object({
|
|
94
|
+
source: zod_1.z.literal('file'),
|
|
95
|
+
name: zod_1.z.string(),
|
|
96
|
+
path: zod_1.z.string(),
|
|
97
|
+
forceStereo: zod_1.z.boolean(),
|
|
98
|
+
}),
|
|
99
|
+
zod_1.z.object({
|
|
100
|
+
source: zod_1.z.literal('url'),
|
|
101
|
+
name: zod_1.z.string(),
|
|
102
|
+
url: zod_1.z.string(),
|
|
103
|
+
avSyncMsec: zod_1.z.number().int().nonnegative(),
|
|
104
|
+
forceStereo: zod_1.z.boolean(),
|
|
105
|
+
}),
|
|
106
|
+
]),
|
|
107
|
+
status: zod_1.z.object({
|
|
108
|
+
led: zod_1.z.boolean(),
|
|
109
|
+
port: zod_1.z.number().optional(),
|
|
110
|
+
}),
|
|
111
|
+
});
|
|
112
|
+
exports.internalVapixParametersSchema = common_1.bitrateVapixParamsSchema.extend({
|
|
113
|
+
camera: zod_1.z.string(),
|
|
114
|
+
resolution: zod_1.z.string(),
|
|
115
|
+
fps: zod_1.z.number().int(),
|
|
116
|
+
compression: zod_1.z.number().int(),
|
|
117
|
+
govLength: zod_1.z.number().int(),
|
|
118
|
+
videoCodec: zod_1.z.union([zod_1.z.literal('h264'), zod_1.z.literal('h265'), zod_1.z.literal('av1')]),
|
|
119
|
+
h264Profile: common_1.h264ProfileSchema.optional(),
|
|
120
|
+
audio: common_1.booleanSchema,
|
|
121
|
+
nbrOfChannels: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]).optional(),
|
|
122
|
+
overlays: zod_1.z
|
|
123
|
+
.union([zod_1.z.literal('all'), zod_1.z.literal('text'), zod_1.z.literal('image'), zod_1.z.literal('application'), zod_1.z.literal('off')])
|
|
124
|
+
.optional(),
|
|
67
125
|
});
|