@norskvideo/norsk-studio-aws 1.27.0-2025-03-14-ed70a41a → 1.27.0-2025-03-15-26d7b0b8
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/client/info.js +189 -322
- package/lib/input.mediaconnect/info.d.ts +1 -1
- package/lib/input.mediaconnect/info.js +9 -35
- package/lib/input.mediaconnect/info.js.map +1 -1
- package/lib/input.mediaconnect/runtime.d.ts +2 -0
- package/lib/input.mediaconnect/runtime.js.map +1 -1
- package/lib/output.medialive/info.js +12 -36
- package/lib/output.medialive/info.js.map +1 -1
- package/lib/processor.aws-transcribe/info.js +4 -28
- package/lib/processor.aws-transcribe/info.js.map +1 -1
- package/package.json +3 -3
package/client/info.js
CHANGED
|
@@ -4,16 +4,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __esm = (fn, res) => function __init() {
|
|
8
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
9
|
-
};
|
|
10
7
|
var __commonJS = (cb, mod) => function __require() {
|
|
11
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
9
|
};
|
|
13
|
-
var __export = (target, all) => {
|
|
14
|
-
for (var name in all)
|
|
15
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
16
|
-
};
|
|
17
10
|
var __copyProps = (to, from, except, desc) => {
|
|
18
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -31,6 +24,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
24
|
mod
|
|
32
25
|
));
|
|
33
26
|
|
|
27
|
+
// external-global-plugin:react/jsx-runtime
|
|
28
|
+
var require_jsx_runtime = __commonJS({
|
|
29
|
+
"external-global-plugin:react/jsx-runtime"(exports, module) {
|
|
30
|
+
module.exports = window.ReactJsx;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
34
|
// external-global-plugin:react
|
|
35
35
|
var require_react = __commonJS({
|
|
36
36
|
"external-global-plugin:react"(exports, module) {
|
|
@@ -38,18 +38,16 @@ var require_react = __commonJS({
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
// external-global-plugin:
|
|
42
|
-
var
|
|
43
|
-
"external-global-plugin:
|
|
44
|
-
module.exports = window.
|
|
41
|
+
// external-global-plugin:hls.js
|
|
42
|
+
var require_hls = __commonJS({
|
|
43
|
+
"external-global-plugin:hls.js"(exports, module) {
|
|
44
|
+
module.exports = window.HlsJs;
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
// build/input.mediaconnect/flow-selection.js
|
|
49
|
-
var
|
|
50
|
-
|
|
51
|
-
default: () => flow_selection_default
|
|
52
|
-
});
|
|
49
|
+
var import_jsx_runtime = __toESM(require_jsx_runtime());
|
|
50
|
+
var import_react = __toESM(require_react());
|
|
53
51
|
function FlowSelection(props) {
|
|
54
52
|
const [loading, setLoading] = (0, import_react.useState)(true);
|
|
55
53
|
(0, import_react.useEffect)(() => {
|
|
@@ -85,21 +83,11 @@ function FlowSelection(props) {
|
|
|
85
83
|
props.onChanged(e.target.value);
|
|
86
84
|
}
|
|
87
85
|
}
|
|
88
|
-
var
|
|
89
|
-
var init_flow_selection = __esm({
|
|
90
|
-
"build/input.mediaconnect/flow-selection.js"() {
|
|
91
|
-
"use strict";
|
|
92
|
-
import_jsx_runtime = __toESM(require_jsx_runtime());
|
|
93
|
-
import_react = __toESM(require_react());
|
|
94
|
-
flow_selection_default = FlowSelection;
|
|
95
|
-
}
|
|
96
|
-
});
|
|
86
|
+
var flow_selection_default = FlowSelection;
|
|
97
87
|
|
|
98
88
|
// build/input.mediaconnect/output-selection.js
|
|
99
|
-
var
|
|
100
|
-
|
|
101
|
-
default: () => output_selection_default
|
|
102
|
-
});
|
|
89
|
+
var import_jsx_runtime2 = __toESM(require_jsx_runtime());
|
|
90
|
+
var import_react2 = __toESM(require_react());
|
|
103
91
|
function OutputSelection(props) {
|
|
104
92
|
const [loading, setLoading] = (0, import_react2.useState)(true);
|
|
105
93
|
const [flow, setFlow] = (0, import_react2.useState)(void 0);
|
|
@@ -147,21 +135,11 @@ function OutputSelection(props) {
|
|
|
147
135
|
props.onChanged(e.target.value);
|
|
148
136
|
}
|
|
149
137
|
}
|
|
150
|
-
var
|
|
151
|
-
var init_output_selection = __esm({
|
|
152
|
-
"build/input.mediaconnect/output-selection.js"() {
|
|
153
|
-
"use strict";
|
|
154
|
-
import_jsx_runtime2 = __toESM(require_jsx_runtime());
|
|
155
|
-
import_react2 = __toESM(require_react());
|
|
156
|
-
output_selection_default = OutputSelection;
|
|
157
|
-
}
|
|
158
|
-
});
|
|
138
|
+
var output_selection_default = OutputSelection;
|
|
159
139
|
|
|
160
140
|
// build/input.mediaconnect/node-view.js
|
|
161
|
-
var
|
|
162
|
-
|
|
163
|
-
default: () => node_view_default
|
|
164
|
-
});
|
|
141
|
+
var import_jsx_runtime3 = __toESM(require_jsx_runtime());
|
|
142
|
+
var import_react3 = __toESM(require_react());
|
|
165
143
|
function NodeView(props) {
|
|
166
144
|
const [loading, setLoading] = (0, import_react3.useState)(true);
|
|
167
145
|
const [flow, setFlow] = (0, import_react3.useState)(void 0);
|
|
@@ -195,24 +173,58 @@ function NodeView(props) {
|
|
|
195
173
|
}
|
|
196
174
|
return (0, import_jsx_runtime3.jsxs)("div", { children: [(0, import_jsx_runtime3.jsxs)("div", { children: ["Name: ", flow.Name] }), (0, import_jsx_runtime3.jsxs)("div", { children: ["Description: ", flow.Description] }), (0, import_jsx_runtime3.jsxs)("div", { children: ["Protocol: ", output.Transport?.Protocol] }), (0, import_jsx_runtime3.jsxs)("div", { children: ["Address: ", output.ListenerAddress] }), (0, import_jsx_runtime3.jsxs)("div", { children: ["Port: ", output.Port] })] });
|
|
197
175
|
}
|
|
198
|
-
var
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
176
|
+
var node_view_default = NodeView;
|
|
177
|
+
|
|
178
|
+
// build/input.mediaconnect/info.js
|
|
179
|
+
function info_default({ defineComponent, singleAvStreamMapping, singleAvStreamMappingForm, mappingsToStreams, validation: { Z } }) {
|
|
180
|
+
return defineComponent({
|
|
181
|
+
identifier: "input.mediaconnect",
|
|
182
|
+
category: "input",
|
|
183
|
+
name: "Media Connect Input",
|
|
184
|
+
description: "Allows for integration with AWS Elemental MediaConnect, enabling users to ingest media flows from the cloud into their processing pipeline.",
|
|
185
|
+
subscription: {
|
|
186
|
+
produces: {
|
|
187
|
+
type: "dynamic-streams",
|
|
188
|
+
streams: (cfg) => mappingsToStreams(cfg.streamMappings ?? singleAvStreamMapping(cfg))
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
designtime: {
|
|
192
|
+
node: node_view_default
|
|
193
|
+
},
|
|
194
|
+
configForm: {
|
|
195
|
+
form: {
|
|
196
|
+
flowArn: {
|
|
197
|
+
help: "The flow to connect to",
|
|
198
|
+
hint: {
|
|
199
|
+
type: "custom",
|
|
200
|
+
component: flow_selection_default,
|
|
201
|
+
validation: Z.string().min(1, "Choosing a flow is mandatory")
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
outputArn: {
|
|
205
|
+
help: "Output of the flow to be used",
|
|
206
|
+
hint: {
|
|
207
|
+
type: "custom",
|
|
208
|
+
component: output_selection_default,
|
|
209
|
+
validation: Z.string().min(1, "Choosing an output is mandatory")
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
streamMappings: singleAvStreamMappingForm,
|
|
213
|
+
notes: {
|
|
214
|
+
help: "Additional notes about this component",
|
|
215
|
+
hint: { type: "text", optional: true }
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
}
|
|
207
221
|
|
|
208
222
|
// build/output.medialive/channel-selection.js
|
|
209
|
-
var
|
|
210
|
-
|
|
211
|
-
default: () => channel_selection_default
|
|
212
|
-
});
|
|
223
|
+
var import_jsx_runtime4 = __toESM(require_jsx_runtime());
|
|
224
|
+
var import_react4 = __toESM(require_react());
|
|
213
225
|
function ChannelSelection(props) {
|
|
214
|
-
const [loading, setLoading] = (0,
|
|
215
|
-
(0,
|
|
226
|
+
const [loading, setLoading] = (0, import_react4.useState)(true);
|
|
227
|
+
(0, import_react4.useEffect)(() => {
|
|
216
228
|
const fn = async () => {
|
|
217
229
|
if (!props.urls?.staticUrl)
|
|
218
230
|
return;
|
|
@@ -230,7 +242,7 @@ function ChannelSelection(props) {
|
|
|
230
242
|
};
|
|
231
243
|
fn().catch(console.error);
|
|
232
244
|
}, [props.urls?.staticUrl]);
|
|
233
|
-
const [channels, setChannels] = (0,
|
|
245
|
+
const [channels, setChannels] = (0, import_react4.useState)([]);
|
|
234
246
|
if (loading) {
|
|
235
247
|
return (0, import_jsx_runtime4.jsx)("div", { children: "Loading.." });
|
|
236
248
|
}
|
|
@@ -245,26 +257,16 @@ function ChannelSelection(props) {
|
|
|
245
257
|
props.onChanged(e.target.value);
|
|
246
258
|
}
|
|
247
259
|
}
|
|
248
|
-
var
|
|
249
|
-
var init_channel_selection = __esm({
|
|
250
|
-
"build/output.medialive/channel-selection.js"() {
|
|
251
|
-
"use strict";
|
|
252
|
-
import_jsx_runtime4 = __toESM(require_jsx_runtime());
|
|
253
|
-
import_react5 = __toESM(require_react());
|
|
254
|
-
channel_selection_default = ChannelSelection;
|
|
255
|
-
}
|
|
256
|
-
});
|
|
260
|
+
var channel_selection_default = ChannelSelection;
|
|
257
261
|
|
|
258
262
|
// build/output.medialive/input-selection.js
|
|
259
|
-
var
|
|
260
|
-
|
|
261
|
-
default: () => input_selection_default
|
|
262
|
-
});
|
|
263
|
+
var import_jsx_runtime5 = __toESM(require_jsx_runtime());
|
|
264
|
+
var import_react5 = __toESM(require_react());
|
|
263
265
|
function inputSelection(props) {
|
|
264
|
-
const [loading, setLoading] = (0,
|
|
265
|
-
const [channels, setChannels] = (0,
|
|
266
|
-
const [channel, setChannel] = (0,
|
|
267
|
-
(0,
|
|
266
|
+
const [loading, setLoading] = (0, import_react5.useState)(true);
|
|
267
|
+
const [channels, setChannels] = (0, import_react5.useState)(void 0);
|
|
268
|
+
const [channel, setChannel] = (0, import_react5.useState)(void 0);
|
|
269
|
+
(0, import_react5.useEffect)(() => {
|
|
268
270
|
console.log("Loading channels for input", props);
|
|
269
271
|
const fn = async () => {
|
|
270
272
|
setLoading(true);
|
|
@@ -284,7 +286,7 @@ function inputSelection(props) {
|
|
|
284
286
|
};
|
|
285
287
|
fn().catch(console.error);
|
|
286
288
|
}, [props.urls?.staticUrl]);
|
|
287
|
-
(0,
|
|
289
|
+
(0, import_react5.useEffect)(() => {
|
|
288
290
|
const channel2 = channels?.find((c) => c.Id == props.latest.channelId);
|
|
289
291
|
setChannel(channel2);
|
|
290
292
|
const firstInput2 = channel2?.InputAttachments?.[0]?.InputId;
|
|
@@ -313,25 +315,15 @@ function inputSelection(props) {
|
|
|
313
315
|
props.onChanged(e.target.value);
|
|
314
316
|
}
|
|
315
317
|
}
|
|
316
|
-
var
|
|
317
|
-
var init_input_selection = __esm({
|
|
318
|
-
"build/output.medialive/input-selection.js"() {
|
|
319
|
-
"use strict";
|
|
320
|
-
import_jsx_runtime5 = __toESM(require_jsx_runtime());
|
|
321
|
-
import_react6 = __toESM(require_react());
|
|
322
|
-
input_selection_default = inputSelection;
|
|
323
|
-
}
|
|
324
|
-
});
|
|
318
|
+
var input_selection_default = inputSelection;
|
|
325
319
|
|
|
326
320
|
// build/output.medialive/url-selection.js
|
|
327
|
-
var
|
|
328
|
-
|
|
329
|
-
default: () => url_selection_default
|
|
330
|
-
});
|
|
321
|
+
var import_jsx_runtime6 = __toESM(require_jsx_runtime());
|
|
322
|
+
var import_react6 = __toESM(require_react());
|
|
331
323
|
function UrlSelection(props) {
|
|
332
|
-
const [loading, setLoading] = (0,
|
|
333
|
-
const [input, setInput] = (0,
|
|
334
|
-
(0,
|
|
324
|
+
const [loading, setLoading] = (0, import_react6.useState)(true);
|
|
325
|
+
const [input, setInput] = (0, import_react6.useState)(void 0);
|
|
326
|
+
(0, import_react6.useEffect)(() => {
|
|
335
327
|
const fn = async () => {
|
|
336
328
|
setLoading(true);
|
|
337
329
|
if (!props.urls?.staticUrl)
|
|
@@ -368,26 +360,16 @@ function UrlSelection(props) {
|
|
|
368
360
|
props.onChanged(parseInt(e.target.value, 10));
|
|
369
361
|
}
|
|
370
362
|
}
|
|
371
|
-
var
|
|
372
|
-
var init_url_selection = __esm({
|
|
373
|
-
"build/output.medialive/url-selection.js"() {
|
|
374
|
-
"use strict";
|
|
375
|
-
import_jsx_runtime6 = __toESM(require_jsx_runtime());
|
|
376
|
-
import_react7 = __toESM(require_react());
|
|
377
|
-
url_selection_default = UrlSelection;
|
|
378
|
-
}
|
|
379
|
-
});
|
|
363
|
+
var url_selection_default = UrlSelection;
|
|
380
364
|
|
|
381
365
|
// build/output.medialive/node-view.js
|
|
382
|
-
var
|
|
383
|
-
|
|
384
|
-
default: () => node_view_default2
|
|
385
|
-
});
|
|
366
|
+
var import_jsx_runtime7 = __toESM(require_jsx_runtime());
|
|
367
|
+
var import_react7 = __toESM(require_react());
|
|
386
368
|
function NodeView2(props) {
|
|
387
|
-
const [loading, setLoading] = (0,
|
|
388
|
-
const [channel, setChannel] = (0,
|
|
389
|
-
const [input, setInput] = (0,
|
|
390
|
-
(0,
|
|
369
|
+
const [loading, setLoading] = (0, import_react7.useState)(true);
|
|
370
|
+
const [channel, setChannel] = (0, import_react7.useState)(void 0);
|
|
371
|
+
const [input, setInput] = (0, import_react7.useState)(void 0);
|
|
372
|
+
(0, import_react7.useEffect)(() => {
|
|
391
373
|
if (!props.node.config.channelId)
|
|
392
374
|
return;
|
|
393
375
|
if (!props.node.config.inputId)
|
|
@@ -415,32 +397,16 @@ function NodeView2(props) {
|
|
|
415
397
|
}
|
|
416
398
|
return (0, import_jsx_runtime7.jsxs)("div", { children: [(0, import_jsx_runtime7.jsxs)("div", { children: ["Name: ", channel.Name] }), (0, import_jsx_runtime7.jsxs)("div", { children: ["Input: ", input.Name] }), (0, import_jsx_runtime7.jsxs)("div", { children: ["Url: ", input.Destinations?.[props.node.config.destinationIndex].Url] })] });
|
|
417
399
|
}
|
|
418
|
-
var
|
|
419
|
-
var init_node_view2 = __esm({
|
|
420
|
-
"build/output.medialive/node-view.js"() {
|
|
421
|
-
"use strict";
|
|
422
|
-
import_jsx_runtime7 = __toESM(require_jsx_runtime());
|
|
423
|
-
import_react8 = __toESM(require_react());
|
|
424
|
-
node_view_default2 = NodeView2;
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
|
|
428
|
-
// external-global-plugin:hls.js
|
|
429
|
-
var require_hls = __commonJS({
|
|
430
|
-
"external-global-plugin:hls.js"(exports, module) {
|
|
431
|
-
module.exports = window.HlsJs;
|
|
432
|
-
}
|
|
433
|
-
});
|
|
400
|
+
var node_view_default2 = NodeView2;
|
|
434
401
|
|
|
435
402
|
// build/output.medialive/inline.js
|
|
436
|
-
var
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
});
|
|
403
|
+
var import_jsx_runtime8 = __toESM(require_jsx_runtime());
|
|
404
|
+
var import_react8 = __toESM(require_react());
|
|
405
|
+
var import_hls = __toESM(require_hls());
|
|
440
406
|
function InlineView({ state, config }) {
|
|
441
407
|
const url = state.url;
|
|
442
408
|
const id = config.id;
|
|
443
|
-
(0,
|
|
409
|
+
(0, import_react8.useEffect)(() => {
|
|
444
410
|
if (!url)
|
|
445
411
|
return;
|
|
446
412
|
const element = document.getElementById(`${id}-video`);
|
|
@@ -456,26 +422,16 @@ function InlineView({ state, config }) {
|
|
|
456
422
|
return (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: "..." });
|
|
457
423
|
return (0, import_jsx_runtime8.jsx)("div", { className: "preview-outer-container", children: (0, import_jsx_runtime8.jsx)("video", { autoPlay: true, muted: true, id: `${id}-video` }) });
|
|
458
424
|
}
|
|
459
|
-
var
|
|
460
|
-
var init_inline = __esm({
|
|
461
|
-
"build/output.medialive/inline.js"() {
|
|
462
|
-
"use strict";
|
|
463
|
-
import_jsx_runtime8 = __toESM(require_jsx_runtime());
|
|
464
|
-
import_react9 = __toESM(require_react());
|
|
465
|
-
import_hls = __toESM(require_hls());
|
|
466
|
-
inline_default = InlineView;
|
|
467
|
-
}
|
|
468
|
-
});
|
|
425
|
+
var inline_default = InlineView;
|
|
469
426
|
|
|
470
427
|
// build/output.medialive/fullscreen.js
|
|
471
|
-
var
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
});
|
|
428
|
+
var import_jsx_runtime9 = __toESM(require_jsx_runtime());
|
|
429
|
+
var import_react9 = __toESM(require_react());
|
|
430
|
+
var import_hls2 = __toESM(require_hls());
|
|
475
431
|
function FullscreenView({ state, config }) {
|
|
476
432
|
const url = state.url;
|
|
477
433
|
const id = config.id;
|
|
478
|
-
(0,
|
|
434
|
+
(0, import_react9.useEffect)(() => {
|
|
479
435
|
if (!url)
|
|
480
436
|
return;
|
|
481
437
|
const element = document.getElementById(`${id}-video`);
|
|
@@ -493,176 +449,10 @@ function FullscreenView({ state, config }) {
|
|
|
493
449
|
}
|
|
494
450
|
return (0, import_jsx_runtime9.jsx)("div", { children: (0, import_jsx_runtime9.jsx)("video", { controls: true, autoPlay: true, muted: true, id: `${id}-video` }) });
|
|
495
451
|
}
|
|
496
|
-
var
|
|
497
|
-
var init_fullscreen = __esm({
|
|
498
|
-
"build/output.medialive/fullscreen.js"() {
|
|
499
|
-
"use strict";
|
|
500
|
-
import_jsx_runtime9 = __toESM(require_jsx_runtime());
|
|
501
|
-
import_react10 = __toESM(require_react());
|
|
502
|
-
import_hls2 = __toESM(require_hls());
|
|
503
|
-
fullscreen_default = FullscreenView;
|
|
504
|
-
}
|
|
505
|
-
});
|
|
506
|
-
|
|
507
|
-
// build/processor.aws-transcribe/transcribe-language-selection.js
|
|
508
|
-
var transcribe_language_selection_exports = {};
|
|
509
|
-
__export(transcribe_language_selection_exports, {
|
|
510
|
-
default: () => transcribe_language_selection_default
|
|
511
|
-
});
|
|
512
|
-
function TranscribeLanguageSelection(props) {
|
|
513
|
-
const [loading, setLoading] = (0, import_react12.useState)(true);
|
|
514
|
-
(0, import_react12.useEffect)(() => {
|
|
515
|
-
const fn = async () => {
|
|
516
|
-
if (!props.urls?.staticUrl)
|
|
517
|
-
return;
|
|
518
|
-
const result = await fetch(`${props.urls.staticUrl}/languages`);
|
|
519
|
-
if (result.ok && result.body) {
|
|
520
|
-
const languages2 = await result.json();
|
|
521
|
-
setLanguages(languages2.transcribe);
|
|
522
|
-
setLoading(false);
|
|
523
|
-
if (props.defaultValue)
|
|
524
|
-
props.onChanged(props.defaultValue);
|
|
525
|
-
} else {
|
|
526
|
-
const text = await result.text();
|
|
527
|
-
throw new Error(text);
|
|
528
|
-
}
|
|
529
|
-
};
|
|
530
|
-
fn().catch(console.error);
|
|
531
|
-
}, [props.urls?.staticUrl]);
|
|
532
|
-
const [languages, setLanguages] = (0, import_react12.useState)([]);
|
|
533
|
-
if (loading) {
|
|
534
|
-
return (0, import_jsx_runtime10.jsx)("div", { children: "Loading.." });
|
|
535
|
-
}
|
|
536
|
-
if (languages.length == 0) {
|
|
537
|
-
return (0, import_jsx_runtime10.jsx)("div", { children: "No flows loaded" });
|
|
538
|
-
}
|
|
539
|
-
return (0, import_jsx_runtime10.jsx)("div", { children: (0, import_jsx_runtime10.jsxs)("select", { defaultValue: props.defaultValue, className: `node-editor-select-input`, id: props.id, onChange: myOnChange, onBlur: myOnChange, children: [(0, import_jsx_runtime10.jsx)("option", { value: "", children: "---" }, "empty"), languages.map((o, i) => {
|
|
540
|
-
const val = o.code;
|
|
541
|
-
return (0, import_jsx_runtime10.jsxs)("option", { value: val, children: [o.name, " (", o.code, ")"] }, i);
|
|
542
|
-
})] }) });
|
|
543
|
-
function myOnChange(e) {
|
|
544
|
-
props.onChanged(e.target.value);
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
var import_jsx_runtime10, import_react12, transcribe_language_selection_default;
|
|
548
|
-
var init_transcribe_language_selection = __esm({
|
|
549
|
-
"build/processor.aws-transcribe/transcribe-language-selection.js"() {
|
|
550
|
-
"use strict";
|
|
551
|
-
import_jsx_runtime10 = __toESM(require_jsx_runtime());
|
|
552
|
-
import_react12 = __toESM(require_react());
|
|
553
|
-
transcribe_language_selection_default = TranscribeLanguageSelection;
|
|
554
|
-
}
|
|
555
|
-
});
|
|
556
|
-
|
|
557
|
-
// build/processor.aws-transcribe/translate-language-selection.js
|
|
558
|
-
var translate_language_selection_exports = {};
|
|
559
|
-
__export(translate_language_selection_exports, {
|
|
560
|
-
default: () => translate_language_selection_default
|
|
561
|
-
});
|
|
562
|
-
function TranslateLanguageSelection(props) {
|
|
563
|
-
const [loading, setLoading] = (0, import_react13.useState)(true);
|
|
564
|
-
(0, import_react13.useEffect)(() => {
|
|
565
|
-
const fn = async () => {
|
|
566
|
-
if (!props.urls?.staticUrl)
|
|
567
|
-
return;
|
|
568
|
-
const result = await fetch(`${props.urls.staticUrl}/languages`);
|
|
569
|
-
if (result.ok && result.body) {
|
|
570
|
-
const languages2 = await result.json();
|
|
571
|
-
setLanguages(languages2.translate);
|
|
572
|
-
setLoading(false);
|
|
573
|
-
if (props.defaultValue)
|
|
574
|
-
props.onChanged(props.defaultValue);
|
|
575
|
-
} else {
|
|
576
|
-
const text = await result.text();
|
|
577
|
-
throw new Error(text);
|
|
578
|
-
}
|
|
579
|
-
};
|
|
580
|
-
fn().catch(console.error);
|
|
581
|
-
}, [props.urls?.staticUrl]);
|
|
582
|
-
const [languages, setLanguages] = (0, import_react13.useState)([]);
|
|
583
|
-
if (loading) {
|
|
584
|
-
return (0, import_jsx_runtime11.jsx)("div", { children: "Loading.." });
|
|
585
|
-
}
|
|
586
|
-
if (languages.length == 0) {
|
|
587
|
-
return (0, import_jsx_runtime11.jsx)("div", { children: "No flows loaded" });
|
|
588
|
-
}
|
|
589
|
-
return (0, import_jsx_runtime11.jsx)("div", { children: (0, import_jsx_runtime11.jsxs)("select", { defaultValue: props.defaultValue, className: `node-editor-select-input`, id: props.id, onChange: myOnChange, onBlur: myOnChange, children: [(0, import_jsx_runtime11.jsx)("option", { value: "", children: "---" }, "empty"), languages.map((o, i) => {
|
|
590
|
-
const val = o.code;
|
|
591
|
-
return (0, import_jsx_runtime11.jsxs)("option", { value: val, children: [o.name, " (", o.code, ")"] }, i);
|
|
592
|
-
})] }) });
|
|
593
|
-
function myOnChange(e) {
|
|
594
|
-
props.onChanged(e.target.value);
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
var import_jsx_runtime11, import_react13, translate_language_selection_default;
|
|
598
|
-
var init_translate_language_selection = __esm({
|
|
599
|
-
"build/processor.aws-transcribe/translate-language-selection.js"() {
|
|
600
|
-
"use strict";
|
|
601
|
-
import_jsx_runtime11 = __toESM(require_jsx_runtime());
|
|
602
|
-
import_react13 = __toESM(require_react());
|
|
603
|
-
translate_language_selection_default = TranslateLanguageSelection;
|
|
604
|
-
}
|
|
605
|
-
});
|
|
606
|
-
|
|
607
|
-
// build/input.mediaconnect/info.js
|
|
608
|
-
var import_react4 = __toESM(require_react());
|
|
609
|
-
function info_default({ defineComponent, Av, validation: { Z } }) {
|
|
610
|
-
const FlowSelection2 = import_react4.default.lazy(async () => Promise.resolve().then(() => (init_flow_selection(), flow_selection_exports)));
|
|
611
|
-
const OutputSelection2 = import_react4.default.lazy(async () => Promise.resolve().then(() => (init_output_selection(), output_selection_exports)));
|
|
612
|
-
const NodeView3 = import_react4.default.lazy(async () => Promise.resolve().then(() => (init_node_view(), node_view_exports)));
|
|
613
|
-
return defineComponent({
|
|
614
|
-
identifier: "input.mediaconnect",
|
|
615
|
-
category: "input",
|
|
616
|
-
name: "Media Connect Input",
|
|
617
|
-
description: "Allows for integration with AWS Elemental MediaConnect, enabling users to ingest media flows from the cloud into their processing pipeline.",
|
|
618
|
-
subscription: {
|
|
619
|
-
produces: {
|
|
620
|
-
type: "dynamic-streams",
|
|
621
|
-
streams: (cfg) => Av.map((media) => ({
|
|
622
|
-
sourceName: cfg.id,
|
|
623
|
-
media
|
|
624
|
-
}))
|
|
625
|
-
}
|
|
626
|
-
},
|
|
627
|
-
designtime: {
|
|
628
|
-
node: NodeView3
|
|
629
|
-
},
|
|
630
|
-
configForm: {
|
|
631
|
-
form: {
|
|
632
|
-
flowArn: {
|
|
633
|
-
help: "The flow to connect to",
|
|
634
|
-
hint: {
|
|
635
|
-
type: "custom",
|
|
636
|
-
component: FlowSelection2,
|
|
637
|
-
validation: Z.string().min(1, "Choosing a flow is mandatory")
|
|
638
|
-
}
|
|
639
|
-
},
|
|
640
|
-
outputArn: {
|
|
641
|
-
help: "Output of the flow to be used",
|
|
642
|
-
hint: {
|
|
643
|
-
type: "custom",
|
|
644
|
-
component: OutputSelection2,
|
|
645
|
-
validation: Z.string().min(1, "Choosing an output is mandatory")
|
|
646
|
-
}
|
|
647
|
-
},
|
|
648
|
-
notes: {
|
|
649
|
-
help: "Additional notes about this component",
|
|
650
|
-
hint: { type: "text", optional: true }
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
});
|
|
655
|
-
}
|
|
452
|
+
var fullscreen_default = FullscreenView;
|
|
656
453
|
|
|
657
454
|
// build/output.medialive/info.js
|
|
658
|
-
var import_react11 = __toESM(require_react());
|
|
659
455
|
function info_default2({ defineComponent, validation: { Z }, All }) {
|
|
660
|
-
const ChannelSelection2 = import_react11.default.lazy(async () => Promise.resolve().then(() => (init_channel_selection(), channel_selection_exports)));
|
|
661
|
-
const InputSelection = import_react11.default.lazy(async () => Promise.resolve().then(() => (init_input_selection(), input_selection_exports)));
|
|
662
|
-
const UrlSelection2 = import_react11.default.lazy(async () => Promise.resolve().then(() => (init_url_selection(), url_selection_exports)));
|
|
663
|
-
const NodeView3 = import_react11.default.lazy(async () => Promise.resolve().then(() => (init_node_view2(), node_view_exports2)));
|
|
664
|
-
const InlineView2 = import_react11.default.lazy(async () => Promise.resolve().then(() => (init_inline(), inline_exports)));
|
|
665
|
-
const FullscreenView2 = import_react11.default.lazy(async () => Promise.resolve().then(() => (init_fullscreen(), fullscreen_exports)));
|
|
666
456
|
return defineComponent({
|
|
667
457
|
identifier: "output.medialive",
|
|
668
458
|
category: "output",
|
|
@@ -686,7 +476,7 @@ function info_default2({ defineComponent, validation: { Z }, All }) {
|
|
|
686
476
|
}
|
|
687
477
|
},
|
|
688
478
|
designtime: {
|
|
689
|
-
node:
|
|
479
|
+
node: node_view_default2
|
|
690
480
|
},
|
|
691
481
|
runtime: {
|
|
692
482
|
initialState: () => ({
|
|
@@ -701,8 +491,8 @@ function info_default2({ defineComponent, validation: { Z }, All }) {
|
|
|
701
491
|
assertUnreachable(evType);
|
|
702
492
|
}
|
|
703
493
|
},
|
|
704
|
-
inline:
|
|
705
|
-
fullscreen:
|
|
494
|
+
inline: inline_default,
|
|
495
|
+
fullscreen: fullscreen_default
|
|
706
496
|
},
|
|
707
497
|
configForm: {
|
|
708
498
|
form: {
|
|
@@ -710,7 +500,7 @@ function info_default2({ defineComponent, validation: { Z }, All }) {
|
|
|
710
500
|
help: "The channel to output to",
|
|
711
501
|
hint: {
|
|
712
502
|
type: "custom",
|
|
713
|
-
component:
|
|
503
|
+
component: channel_selection_default,
|
|
714
504
|
validation: Z.string().min(1, "Choosing a channel is mandatory")
|
|
715
505
|
}
|
|
716
506
|
},
|
|
@@ -718,7 +508,7 @@ function info_default2({ defineComponent, validation: { Z }, All }) {
|
|
|
718
508
|
help: "The input of the channel to output to",
|
|
719
509
|
hint: {
|
|
720
510
|
type: "custom",
|
|
721
|
-
component:
|
|
511
|
+
component: input_selection_default,
|
|
722
512
|
validation: Z.string().min(1, "Choosing an input is mandatory")
|
|
723
513
|
}
|
|
724
514
|
},
|
|
@@ -727,7 +517,7 @@ function info_default2({ defineComponent, validation: { Z }, All }) {
|
|
|
727
517
|
hint: {
|
|
728
518
|
type: "custom",
|
|
729
519
|
defaultValue: 0,
|
|
730
|
-
component:
|
|
520
|
+
component: url_selection_default,
|
|
731
521
|
validation: Z.number().min(0, "Choosing a url is mandatory")
|
|
732
522
|
}
|
|
733
523
|
},
|
|
@@ -743,11 +533,88 @@ function assertUnreachable(_) {
|
|
|
743
533
|
throw new Error("Didn't expect to get here");
|
|
744
534
|
}
|
|
745
535
|
|
|
536
|
+
// build/processor.aws-transcribe/transcribe-language-selection.js
|
|
537
|
+
var import_jsx_runtime10 = __toESM(require_jsx_runtime());
|
|
538
|
+
var import_react10 = __toESM(require_react());
|
|
539
|
+
function TranscribeLanguageSelection(props) {
|
|
540
|
+
const [loading, setLoading] = (0, import_react10.useState)(true);
|
|
541
|
+
(0, import_react10.useEffect)(() => {
|
|
542
|
+
const fn = async () => {
|
|
543
|
+
if (!props.urls?.staticUrl)
|
|
544
|
+
return;
|
|
545
|
+
const result = await fetch(`${props.urls.staticUrl}/languages`);
|
|
546
|
+
if (result.ok && result.body) {
|
|
547
|
+
const languages2 = await result.json();
|
|
548
|
+
setLanguages(languages2.transcribe);
|
|
549
|
+
setLoading(false);
|
|
550
|
+
if (props.defaultValue)
|
|
551
|
+
props.onChanged(props.defaultValue);
|
|
552
|
+
} else {
|
|
553
|
+
const text = await result.text();
|
|
554
|
+
throw new Error(text);
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
fn().catch(console.error);
|
|
558
|
+
}, [props.urls?.staticUrl]);
|
|
559
|
+
const [languages, setLanguages] = (0, import_react10.useState)([]);
|
|
560
|
+
if (loading) {
|
|
561
|
+
return (0, import_jsx_runtime10.jsx)("div", { children: "Loading.." });
|
|
562
|
+
}
|
|
563
|
+
if (languages.length == 0) {
|
|
564
|
+
return (0, import_jsx_runtime10.jsx)("div", { children: "No flows loaded" });
|
|
565
|
+
}
|
|
566
|
+
return (0, import_jsx_runtime10.jsx)("div", { children: (0, import_jsx_runtime10.jsxs)("select", { defaultValue: props.defaultValue, className: `node-editor-select-input`, id: props.id, onChange: myOnChange, onBlur: myOnChange, children: [(0, import_jsx_runtime10.jsx)("option", { value: "", children: "---" }, "empty"), languages.map((o, i) => {
|
|
567
|
+
const val = o.code;
|
|
568
|
+
return (0, import_jsx_runtime10.jsxs)("option", { value: val, children: [o.name, " (", o.code, ")"] }, i);
|
|
569
|
+
})] }) });
|
|
570
|
+
function myOnChange(e) {
|
|
571
|
+
props.onChanged(e.target.value);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
var transcribe_language_selection_default = TranscribeLanguageSelection;
|
|
575
|
+
|
|
576
|
+
// build/processor.aws-transcribe/translate-language-selection.js
|
|
577
|
+
var import_jsx_runtime11 = __toESM(require_jsx_runtime());
|
|
578
|
+
var import_react11 = __toESM(require_react());
|
|
579
|
+
function TranslateLanguageSelection(props) {
|
|
580
|
+
const [loading, setLoading] = (0, import_react11.useState)(true);
|
|
581
|
+
(0, import_react11.useEffect)(() => {
|
|
582
|
+
const fn = async () => {
|
|
583
|
+
if (!props.urls?.staticUrl)
|
|
584
|
+
return;
|
|
585
|
+
const result = await fetch(`${props.urls.staticUrl}/languages`);
|
|
586
|
+
if (result.ok && result.body) {
|
|
587
|
+
const languages2 = await result.json();
|
|
588
|
+
setLanguages(languages2.translate);
|
|
589
|
+
setLoading(false);
|
|
590
|
+
if (props.defaultValue)
|
|
591
|
+
props.onChanged(props.defaultValue);
|
|
592
|
+
} else {
|
|
593
|
+
const text = await result.text();
|
|
594
|
+
throw new Error(text);
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
fn().catch(console.error);
|
|
598
|
+
}, [props.urls?.staticUrl]);
|
|
599
|
+
const [languages, setLanguages] = (0, import_react11.useState)([]);
|
|
600
|
+
if (loading) {
|
|
601
|
+
return (0, import_jsx_runtime11.jsx)("div", { children: "Loading.." });
|
|
602
|
+
}
|
|
603
|
+
if (languages.length == 0) {
|
|
604
|
+
return (0, import_jsx_runtime11.jsx)("div", { children: "No flows loaded" });
|
|
605
|
+
}
|
|
606
|
+
return (0, import_jsx_runtime11.jsx)("div", { children: (0, import_jsx_runtime11.jsxs)("select", { defaultValue: props.defaultValue, className: `node-editor-select-input`, id: props.id, onChange: myOnChange, onBlur: myOnChange, children: [(0, import_jsx_runtime11.jsx)("option", { value: "", children: "---" }, "empty"), languages.map((o, i) => {
|
|
607
|
+
const val = o.code;
|
|
608
|
+
return (0, import_jsx_runtime11.jsxs)("option", { value: val, children: [o.name, " (", o.code, ")"] }, i);
|
|
609
|
+
})] }) });
|
|
610
|
+
function myOnChange(e) {
|
|
611
|
+
props.onChanged(e.target.value);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
var translate_language_selection_default = TranslateLanguageSelection;
|
|
615
|
+
|
|
746
616
|
// build/processor.aws-transcribe/info.js
|
|
747
|
-
var import_react14 = __toESM(require_react());
|
|
748
617
|
function info_default3({ defineComponent, validation: { LanguageTagWithCountry, LanguageTagOptionalCountry, Z } }) {
|
|
749
|
-
const TranscribeLanguageSelection2 = import_react14.default.lazy(async () => Promise.resolve().then(() => (init_transcribe_language_selection(), transcribe_language_selection_exports)));
|
|
750
|
-
const TranslateLanguageSelection2 = import_react14.default.lazy(async () => Promise.resolve().then(() => (init_translate_language_selection(), translate_language_selection_exports)));
|
|
751
618
|
return defineComponent({
|
|
752
619
|
identifier: "processor.aws-transcribe",
|
|
753
620
|
category: "processor",
|
|
@@ -787,8 +654,8 @@ function info_default3({ defineComponent, validation: { LanguageTagWithCountry,
|
|
|
787
654
|
},
|
|
788
655
|
configForm: {
|
|
789
656
|
form: {
|
|
790
|
-
language: { help: "Source language to transcribe", hint: { type: "custom", component:
|
|
791
|
-
targetLanguage: { help: "Target language to translate to (optional).", hint: { type: "custom", component:
|
|
657
|
+
language: { help: "Source language to transcribe", hint: { type: "custom", component: transcribe_language_selection_default, defaultValue: "en-US", validation: LanguageTagWithCountry } },
|
|
658
|
+
targetLanguage: { help: "Target language to translate to (optional).", hint: { type: "custom", component: translate_language_selection_default, defaultValue: "", validation: Z.union([LanguageTagOptionalCountry, Z.string().length(0)]) } },
|
|
792
659
|
notes: {
|
|
793
660
|
help: "Additional notes about this component",
|
|
794
661
|
hint: { type: "text", optional: true }
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
|
|
2
2
|
import type { MediaConnectConfig } from "./runtime";
|
|
3
|
-
export default function ({ defineComponent,
|
|
3
|
+
export default function ({ defineComponent, singleAvStreamMapping, singleAvStreamMappingForm, mappingsToStreams, validation: { Z } }: Registration): import("@norskvideo/norsk-studio/lib/extension/client-types").NodeInfo<MediaConnectConfig, object, object, object>;
|
|
@@ -1,37 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
exports.default = default_1;
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const NodeView = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./node-view'))));
|
|
7
|
+
const flow_selection_1 = __importDefault(require("./flow-selection"));
|
|
8
|
+
const output_selection_1 = __importDefault(require("./output-selection"));
|
|
9
|
+
const node_view_1 = __importDefault(require("./node-view"));
|
|
10
|
+
function default_1({ defineComponent, singleAvStreamMapping, singleAvStreamMappingForm, mappingsToStreams, validation: { Z } }) {
|
|
35
11
|
return defineComponent({
|
|
36
12
|
identifier: 'input.mediaconnect',
|
|
37
13
|
category: 'input',
|
|
@@ -40,14 +16,11 @@ function default_1({ defineComponent, Av, validation: { Z } }) {
|
|
|
40
16
|
subscription: {
|
|
41
17
|
produces: {
|
|
42
18
|
type: "dynamic-streams",
|
|
43
|
-
streams: (cfg) =>
|
|
44
|
-
sourceName: cfg.id,
|
|
45
|
-
media
|
|
46
|
-
}))
|
|
19
|
+
streams: (cfg) => mappingsToStreams(cfg.streamMappings ?? singleAvStreamMapping(cfg))
|
|
47
20
|
}
|
|
48
21
|
},
|
|
49
22
|
designtime: {
|
|
50
|
-
node:
|
|
23
|
+
node: node_view_1.default
|
|
51
24
|
},
|
|
52
25
|
configForm: {
|
|
53
26
|
form: {
|
|
@@ -55,7 +28,7 @@ function default_1({ defineComponent, Av, validation: { Z } }) {
|
|
|
55
28
|
help: "The flow to connect to",
|
|
56
29
|
hint: {
|
|
57
30
|
type: "custom",
|
|
58
|
-
component:
|
|
31
|
+
component: flow_selection_1.default,
|
|
59
32
|
validation: Z.string().min(1, "Choosing a flow is mandatory")
|
|
60
33
|
}
|
|
61
34
|
},
|
|
@@ -63,10 +36,11 @@ function default_1({ defineComponent, Av, validation: { Z } }) {
|
|
|
63
36
|
help: "Output of the flow to be used",
|
|
64
37
|
hint: {
|
|
65
38
|
type: "custom",
|
|
66
|
-
component:
|
|
39
|
+
component: output_selection_1.default,
|
|
67
40
|
validation: Z.string().min(1, "Choosing an output is mandatory")
|
|
68
41
|
}
|
|
69
42
|
},
|
|
43
|
+
streamMappings: singleAvStreamMappingForm,
|
|
70
44
|
notes: {
|
|
71
45
|
help: "Additional notes about this component",
|
|
72
46
|
hint: { type: 'text', optional: true }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/input.mediaconnect/info.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/input.mediaconnect/info.ts"],"names":[],"mappings":";;;;;AAMA,4BA8CC;AAlDD,sEAA6C;AAC7C,0EAAiD;AACjD,4DAAmC;AAEnC,mBAAwB,EAAE,eAAe,EACvC,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,UAAU,EAAE,EAAE,CAAC,EAAE,EAAgB;IAEjC,OAAO,eAAe,CAAqB;QACzC,UAAU,EAAE,oBAAoB;QAChC,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EAAE,6IAA6I;QAC1J,YAAY,EAAE;YACZ,QAAQ,EAAE;gBACR,IAAI,EAAE,iBAAiB;gBACvB,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,cAAc,IAAI,qBAAqB,CAAC,GAAG,CAAC,CAAC;aACtF;SACF;QACD,UAAU,EAAE;YACV,IAAI,EAAE,mBAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,OAAO,EAAE;oBACP,IAAI,EAAE,wBAAwB;oBAC9B,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,wBAAa;wBACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,8BAA8B,CAAC;qBAC9D;iBACF;gBACD,SAAS,EAAE;oBACT,IAAI,EAAE,+BAA+B;oBACrC,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,0BAAe;wBAC1B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,iCAAiC,CAAC;qBACjE;iBACF;gBACD,cAAc,EAAE,yBAAyB;gBACzC,KAAK,EAAE;oBACL,IAAI,EAAE,uCAAuC;oBAC7C,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;iBACvC;aACF;SACF;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Norsk } from '@norskvideo/norsk-sdk';
|
|
2
2
|
import { OnCreated, ServerComponentDefinition, StudioRuntime } from '@norskvideo/norsk-studio/lib/extension/runtime-types';
|
|
3
3
|
import { CustomSourceNode } from '@norskvideo/norsk-studio/lib/extension/base-nodes';
|
|
4
|
+
import { StreamMappingConfiguration } from '@norskvideo/norsk-studio/lib/extension/client-types';
|
|
4
5
|
export type MediaConnectConfig = {
|
|
5
6
|
id: string;
|
|
6
7
|
displayName: string;
|
|
7
8
|
flowArn: string;
|
|
8
9
|
outputArn: string;
|
|
9
10
|
notes?: string;
|
|
11
|
+
streamMappings?: StreamMappingConfiguration;
|
|
10
12
|
};
|
|
11
13
|
export default class MediaConnectSourceDefinition implements ServerComponentDefinition<MediaConnectConfig, MediaConnectSource> {
|
|
12
14
|
create(norsk: Norsk, cfg: MediaConnectConfig, cb: OnCreated<MediaConnectSource>, runtime: StudioRuntime): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/input.mediaconnect/runtime.ts"],"names":[],"mappings":";;;;;;AAGA,kFAAqF;AAErF,sDAA4C;AAC5C,sEAAiK;AACjK,yEAAuE;AACvE,mEAA6E;
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/input.mediaconnect/runtime.ts"],"names":[],"mappings":";;;;;;AAGA,kFAAqF;AAErF,sDAA4C;AAC5C,sEAAiK;AACjK,yEAAuE;AACvE,mEAA6E;AAa7E,MAAqB,4BAA4B;IAC/C,KAAK,CAAC,MAAM,CAAC,KAAY,EAAE,GAAuB,EAAE,EAAiC,EAAE,OAAsB;QAC3G,MAAM,IAAI,GAAG,MAAM,kBAAkB,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;QAClE,EAAE,CAAC,IAAI,CAAC,CAAC;IACX,CAAC;IAED,MAAM;QACJ,MAAM,MAAM,GAAG,iBAAO,CAAC,MAAM,EAAE,CAAC;QAEhC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;YAClC,KAAK,CAAC,KAAK,IAAI,EAAE;gBACf,IAAI,KAAK,GAAiB,EAAE,CAAC;gBAE7B,IAAI,CAAC;oBACH,MAAM,MAAM,GAAG,IAAI,wCAAkB,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,WAAW,EAAE,CAAC,CAAC;oBACzF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,sCAAgB,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;oBAC9E,KAAK,GAAG,QAAQ,CAAC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C;IAChC,CAAC;IAEQ,KAAK,CAAC,KAAK;QAClB,MAAM,KAAK,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CACF;AA9ED,gDA8EC"}
|
|
@@ -1,40 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
exports.default = default_1;
|
|
30
|
-
const
|
|
7
|
+
const channel_selection_1 = __importDefault(require("./channel-selection"));
|
|
8
|
+
const input_selection_1 = __importDefault(require("./input-selection"));
|
|
9
|
+
const url_selection_1 = __importDefault(require("./url-selection"));
|
|
10
|
+
const node_view_1 = __importDefault(require("./node-view"));
|
|
11
|
+
const inline_1 = __importDefault(require("./inline"));
|
|
12
|
+
const fullscreen_1 = __importDefault(require("./fullscreen"));
|
|
31
13
|
function default_1({ defineComponent, validation: { Z }, All }) {
|
|
32
|
-
const ChannelSelection = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./channel-selection'))));
|
|
33
|
-
const InputSelection = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./input-selection'))));
|
|
34
|
-
const UrlSelection = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./url-selection'))));
|
|
35
|
-
const NodeView = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./node-view'))));
|
|
36
|
-
const InlineView = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./inline'))));
|
|
37
|
-
const FullscreenView = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./fullscreen'))));
|
|
38
14
|
return defineComponent({
|
|
39
15
|
identifier: 'output.medialive',
|
|
40
16
|
category: 'output',
|
|
@@ -58,7 +34,7 @@ function default_1({ defineComponent, validation: { Z }, All }) {
|
|
|
58
34
|
}
|
|
59
35
|
},
|
|
60
36
|
designtime: {
|
|
61
|
-
node:
|
|
37
|
+
node: node_view_1.default
|
|
62
38
|
},
|
|
63
39
|
runtime: {
|
|
64
40
|
initialState: () => ({
|
|
@@ -73,8 +49,8 @@ function default_1({ defineComponent, validation: { Z }, All }) {
|
|
|
73
49
|
assertUnreachable(evType);
|
|
74
50
|
}
|
|
75
51
|
},
|
|
76
|
-
inline:
|
|
77
|
-
fullscreen:
|
|
52
|
+
inline: inline_1.default,
|
|
53
|
+
fullscreen: fullscreen_1.default,
|
|
78
54
|
},
|
|
79
55
|
configForm: {
|
|
80
56
|
form: {
|
|
@@ -82,7 +58,7 @@ function default_1({ defineComponent, validation: { Z }, All }) {
|
|
|
82
58
|
help: "The channel to output to",
|
|
83
59
|
hint: {
|
|
84
60
|
type: "custom",
|
|
85
|
-
component:
|
|
61
|
+
component: channel_selection_1.default,
|
|
86
62
|
validation: Z.string().min(1, "Choosing a channel is mandatory")
|
|
87
63
|
}
|
|
88
64
|
},
|
|
@@ -90,7 +66,7 @@ function default_1({ defineComponent, validation: { Z }, All }) {
|
|
|
90
66
|
help: "The input of the channel to output to",
|
|
91
67
|
hint: {
|
|
92
68
|
type: "custom",
|
|
93
|
-
component:
|
|
69
|
+
component: input_selection_1.default,
|
|
94
70
|
validation: Z.string().min(1, "Choosing an input is mandatory")
|
|
95
71
|
}
|
|
96
72
|
},
|
|
@@ -99,7 +75,7 @@ function default_1({ defineComponent, validation: { Z }, All }) {
|
|
|
99
75
|
hint: {
|
|
100
76
|
type: "custom",
|
|
101
77
|
defaultValue: 0,
|
|
102
|
-
component:
|
|
78
|
+
component: url_selection_1.default,
|
|
103
79
|
validation: Z.number().min(0, "Choosing a url is mandatory")
|
|
104
80
|
}
|
|
105
81
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/output.medialive/info.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/output.medialive/info.ts"],"names":[],"mappings":";;;;;AASA,4BA+EC;AAtFD,4EAAmD;AACnD,wEAA+C;AAC/C,oEAA2C;AAC3C,4DAAmC;AACnC,sDAAkC;AAClC,8DAA0C;AAE1C,mBAAwB,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,EAAE,GAAG,EAAgB;IAE/E,OAAO,eAAe,CAAoE;QACxF,UAAU,EAAE,kBAAkB;QAC9B,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,gIAAgI;QAC7I,YAAY,EAAE;YACZ,OAAO,EAAE;gBACP,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,KAAK;gBACX,OAAO,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AAC,EAAE,iCAAiC,CAAC;qBACjE;iBACF;gBACD,OAAO,EAAE;oBACP,IAAI,EAAE,uCAAuC;oBAC7C,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,yBAAc;wBACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,gCAAgC,CAAC;qBAChE;iBACF;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,8BAA8B;oBACpC,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,YAAY,EAAE,CAAC;wBACf,SAAS,EAAE,uBAAY;wBACvB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,6BAA6B,CAAC;qBAC7D;iBACF;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,uCAAuC;oBAC7C,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;iBACvC;aACF;SACF;KACF,CAAC,CAAC;AACL,CAAC;AAED,SAAS,iBAAiB,CAAC,CAAQ;IACjC,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -1,36 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
exports.default = default_1;
|
|
30
|
-
const
|
|
7
|
+
const transcribe_language_selection_1 = __importDefault(require("./transcribe-language-selection"));
|
|
8
|
+
const translate_language_selection_1 = __importDefault(require("./translate-language-selection"));
|
|
31
9
|
function default_1({ defineComponent, validation: { LanguageTagWithCountry, LanguageTagOptionalCountry, Z } }) {
|
|
32
|
-
const TranscribeLanguageSelection = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./transcribe-language-selection'))));
|
|
33
|
-
const TranslateLanguageSelection = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./translate-language-selection'))));
|
|
34
10
|
return defineComponent({
|
|
35
11
|
identifier: 'processor.aws-transcribe',
|
|
36
12
|
category: 'processor',
|
|
@@ -71,8 +47,8 @@ function default_1({ defineComponent, validation: { LanguageTagWithCountry, Lang
|
|
|
71
47
|
},
|
|
72
48
|
configForm: {
|
|
73
49
|
form: {
|
|
74
|
-
language: { help: "Source language to transcribe", hint: { type: 'custom', component:
|
|
75
|
-
targetLanguage: { help: "Target language to translate to (optional).", hint: { type: 'custom', component:
|
|
50
|
+
language: { help: "Source language to transcribe", hint: { type: 'custom', component: transcribe_language_selection_1.default, defaultValue: "en-US", validation: LanguageTagWithCountry } },
|
|
51
|
+
targetLanguage: { help: "Target language to translate to (optional).", hint: { type: 'custom', component: translate_language_selection_1.default, defaultValue: "", validation: Z.union([LanguageTagOptionalCountry, Z.string().length(0)]) } },
|
|
76
52
|
notes: {
|
|
77
53
|
help: "Additional notes about this component",
|
|
78
54
|
hint: { type: 'text', optional: true }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/processor.aws-transcribe/info.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/processor.aws-transcribe/info.ts"],"names":[],"mappings":";;;;;AAOA,4BAwDC;AA3DD,oGAA0E;AAC1E,kGAAwE;AAExE,mBAAwB,EACtB,eAAe,EACf,UAAU,EAAE,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,CAAC,EAAE,EACxD;IAEb,OAAO,eAAe,CAAsB;QAC1C,UAAU,EAAE,0BAA0B;QACtC,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,8MAA8M;QAC3N,YAAY,EAAE;YACZ,OAAO,EAAE;gBACP,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,IAAI;gBACX,KAAK,EAAE,IAAI;aACZ;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,iBAAiB;gBACvB,OAAO,EAAE,CAAC,GAAG,EAA4B,EAAE,CAAC,CAAC;wBAC3C,KAAK,EAAE,UAAmB;wBAC1B,UAAU,EAAE,GAAG,CAAC,EAAE;qBACO,CAAC,CAAC,MAAM,CACjC,GAAG,CAAC,cAAc,CAAC,CAAC;oBAClB,CAAC;4BACC,KAAK,EAAE,UAAmB;4BAC1B,UAAU,EAAE,GAAG,CAAC,EAAE;4BAClB,aAAa,EAAE,GAAG,CAAC,cAAc;yBACR,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;aAEv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2
2
|
"name": "@norskvideo/norsk-studio-aws",
|
|
3
|
-
"version": "1.27.0-2025-03-
|
|
3
|
+
"version": "1.27.0-2025-03-15-26d7b0b8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rm -rf lib",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@aws-sdk/client-mediapackage": "^3.499.0",
|
|
25
25
|
"@aws-sdk/client-s3": "^3.614.0",
|
|
26
26
|
"@aws-sdk/client-translate": "^3.535.0",
|
|
27
|
-
"@norskvideo/norsk-sdk": "^1.0.401-2025-03-
|
|
28
|
-
"@norskvideo/norsk-studio": "1.27.0-2025-03-
|
|
27
|
+
"@norskvideo/norsk-sdk": "^1.0.401-2025-03-15-041dfcda",
|
|
28
|
+
"@norskvideo/norsk-studio": "1.27.0-2025-03-15-26d7b0b8",
|
|
29
29
|
"openapi-types": "^12.1.3"
|
|
30
30
|
},
|
|
31
31
|
"main": "lib/index.js",
|