@norskvideo/norsk-studio-built-ins 1.0.0
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 +17990 -0
- package/client/output.preview/styles.css +128 -0
- package/client/processor.audioLevel/styles.css +164 -0
- package/client/processor.audioMixer/styles.css +249 -0
- package/client/processor.cascadingSwitch/extra.css +0 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +15 -0
- package/lib/index.js.map +1 -0
- package/lib/info.d.ts +3 -0
- package/lib/info.js +74 -0
- package/lib/info.js.map +1 -0
- package/lib/input.mediaconnect/flow-selection.d.ts +9 -0
- package/lib/input.mediaconnect/flow-selection.js +40 -0
- package/lib/input.mediaconnect/flow-selection.js.map +1 -0
- package/lib/input.mediaconnect/info.d.ts +3 -0
- package/lib/input.mediaconnect/info.js +70 -0
- package/lib/input.mediaconnect/info.js.map +1 -0
- package/lib/input.mediaconnect/node-view.d.ts +6 -0
- package/lib/input.mediaconnect/node-view.js +38 -0
- package/lib/input.mediaconnect/node-view.js.map +1 -0
- package/lib/input.mediaconnect/output-selection.d.ts +9 -0
- package/lib/input.mediaconnect/output-selection.js +55 -0
- package/lib/input.mediaconnect/output-selection.js.map +1 -0
- package/lib/input.mediaconnect/runtime.d.ts +23 -0
- package/lib/input.mediaconnect/runtime.js +133 -0
- package/lib/input.mediaconnect/runtime.js.map +1 -0
- package/lib/input.rtmp/info.d.ts +3 -0
- package/lib/input.rtmp/info.js +101 -0
- package/lib/input.rtmp/info.js.map +1 -0
- package/lib/input.rtmp/inline-view.d.ts +6 -0
- package/lib/input.rtmp/inline-view.js +16 -0
- package/lib/input.rtmp/inline-view.js.map +1 -0
- package/lib/input.rtmp/runtime.d.ts +19 -0
- package/lib/input.rtmp/runtime.js +75 -0
- package/lib/input.rtmp/runtime.js.map +1 -0
- package/lib/input.rtmp/summary-view.d.ts +6 -0
- package/lib/input.rtmp/summary-view.js +22 -0
- package/lib/input.rtmp/summary-view.js.map +1 -0
- package/lib/input.silence/info.d.ts +3 -0
- package/lib/input.silence/info.js +47 -0
- package/lib/input.silence/info.js.map +1 -0
- package/lib/input.silence/runtime.d.ts +22 -0
- package/lib/input.silence/runtime.js +52 -0
- package/lib/input.silence/runtime.js.map +1 -0
- package/lib/input.srt-caller/info.d.ts +3 -0
- package/lib/input.srt-caller/info.js +74 -0
- package/lib/input.srt-caller/info.js.map +1 -0
- package/lib/input.srt-caller/runtime.d.ts +12 -0
- package/lib/input.srt-caller/runtime.js +14 -0
- package/lib/input.srt-caller/runtime.js.map +1 -0
- package/lib/input.srt-listener/info.d.ts +3 -0
- package/lib/input.srt-listener/info.js +125 -0
- package/lib/input.srt-listener/info.js.map +1 -0
- package/lib/input.srt-listener/inline-view.d.ts +6 -0
- package/lib/input.srt-listener/inline-view.js +16 -0
- package/lib/input.srt-listener/inline-view.js.map +1 -0
- package/lib/input.srt-listener/runtime.d.ts +24 -0
- package/lib/input.srt-listener/runtime.js +75 -0
- package/lib/input.srt-listener/runtime.js.map +1 -0
- package/lib/input.srt-listener/summary-view.d.ts +6 -0
- package/lib/input.srt-listener/summary-view.js +22 -0
- package/lib/input.srt-listener/summary-view.js.map +1 -0
- package/lib/input.udp-ts/info.d.ts +3 -0
- package/lib/input.udp-ts/info.js +34 -0
- package/lib/input.udp-ts/info.js.map +1 -0
- package/lib/input.udp-ts/runtime.d.ts +10 -0
- package/lib/input.udp-ts/runtime.js +24 -0
- package/lib/input.udp-ts/runtime.js.map +1 -0
- package/lib/input.videoTestCard/info.d.ts +3 -0
- package/lib/input.videoTestCard/info.js +42 -0
- package/lib/input.videoTestCard/info.js.map +1 -0
- package/lib/input.videoTestCard/runtime.d.ts +10 -0
- package/lib/input.videoTestCard/runtime.js +14 -0
- package/lib/input.videoTestCard/runtime.js.map +1 -0
- package/lib/output.autoCmaf/form-views.d.ts +3 -0
- package/lib/output.autoCmaf/form-views.js +13 -0
- package/lib/output.autoCmaf/form-views.js.map +1 -0
- package/lib/output.autoCmaf/fullscreen.d.ts +6 -0
- package/lib/output.autoCmaf/fullscreen.js +31 -0
- package/lib/output.autoCmaf/fullscreen.js.map +1 -0
- package/lib/output.autoCmaf/info.d.ts +3 -0
- package/lib/output.autoCmaf/info.js +197 -0
- package/lib/output.autoCmaf/info.js.map +1 -0
- package/lib/output.autoCmaf/runtime.d.ts +66 -0
- package/lib/output.autoCmaf/runtime.js +285 -0
- package/lib/output.autoCmaf/runtime.js.map +1 -0
- package/lib/output.autoCmaf/summary.d.ts +6 -0
- package/lib/output.autoCmaf/summary.js +32 -0
- package/lib/output.autoCmaf/summary.js.map +1 -0
- package/lib/output.medialive/channel-selection.d.ts +9 -0
- package/lib/output.medialive/channel-selection.js +40 -0
- package/lib/output.medialive/channel-selection.js.map +1 -0
- package/lib/output.medialive/fullscreen.d.ts +6 -0
- package/lib/output.medialive/fullscreen.js +31 -0
- package/lib/output.medialive/fullscreen.js.map +1 -0
- package/lib/output.medialive/info.d.ts +3 -0
- package/lib/output.medialive/info.js +111 -0
- package/lib/output.medialive/info.js.map +1 -0
- package/lib/output.medialive/inline.d.ts +6 -0
- package/lib/output.medialive/inline.js +30 -0
- package/lib/output.medialive/inline.js.map +1 -0
- package/lib/output.medialive/input-selection.d.ts +9 -0
- package/lib/output.medialive/input-selection.js +58 -0
- package/lib/output.medialive/input-selection.js.map +1 -0
- package/lib/output.medialive/node-view.d.ts +6 -0
- package/lib/output.medialive/node-view.js +36 -0
- package/lib/output.medialive/node-view.js.map +1 -0
- package/lib/output.medialive/runtime.d.ts +34 -0
- package/lib/output.medialive/runtime.js +142 -0
- package/lib/output.medialive/runtime.js.map +1 -0
- package/lib/output.medialive/url-selection.d.ts +9 -0
- package/lib/output.medialive/url-selection.js +45 -0
- package/lib/output.medialive/url-selection.js.map +1 -0
- package/lib/output.preview/info.d.ts +5 -0
- package/lib/output.preview/info.js +103 -0
- package/lib/output.preview/info.js.map +1 -0
- package/lib/output.preview/inline-view.d.ts +6 -0
- package/lib/output.preview/inline-view.js +29 -0
- package/lib/output.preview/inline-view.js.map +1 -0
- package/lib/output.preview/runtime.d.ts +34 -0
- package/lib/output.preview/runtime.js +86 -0
- package/lib/output.preview/runtime.js.map +1 -0
- package/lib/output.rtmp/info.d.ts +3 -0
- package/lib/output.rtmp/info.js +76 -0
- package/lib/output.rtmp/info.js.map +1 -0
- package/lib/output.rtmp/inline-view.d.ts +6 -0
- package/lib/output.rtmp/inline-view.js +10 -0
- package/lib/output.rtmp/inline-view.js.map +1 -0
- package/lib/output.rtmp/runtime.d.ts +23 -0
- package/lib/output.rtmp/runtime.js +51 -0
- package/lib/output.rtmp/runtime.js.map +1 -0
- package/lib/output.srt/info.d.ts +3 -0
- package/lib/output.srt/info.js +102 -0
- package/lib/output.srt/info.js.map +1 -0
- package/lib/output.srt/runtime.d.ts +12 -0
- package/lib/output.srt/runtime.js +14 -0
- package/lib/output.srt/runtime.js.map +1 -0
- package/lib/output.statistics/info.d.ts +4 -0
- package/lib/output.statistics/info.js +69 -0
- package/lib/output.statistics/info.js.map +1 -0
- package/lib/output.statistics/inline-view.d.ts +6 -0
- package/lib/output.statistics/inline-view.js +32 -0
- package/lib/output.statistics/inline-view.js.map +1 -0
- package/lib/output.statistics/runtime.d.ts +18 -0
- package/lib/output.statistics/runtime.js +36 -0
- package/lib/output.statistics/runtime.js.map +1 -0
- package/lib/output.udpTs/info.d.ts +3 -0
- package/lib/output.udpTs/info.js +33 -0
- package/lib/output.udpTs/info.js.map +1 -0
- package/lib/output.udpTs/runtime.d.ts +10 -0
- package/lib/output.udpTs/runtime.js +14 -0
- package/lib/output.udpTs/runtime.js.map +1 -0
- package/lib/output.whep/info.d.ts +3 -0
- package/lib/output.whep/info.js +28 -0
- package/lib/output.whep/info.js.map +1 -0
- package/lib/output.whep/runtime.d.ts +14 -0
- package/lib/output.whep/runtime.js +21 -0
- package/lib/output.whep/runtime.js.map +1 -0
- package/lib/processor.actionReplay/info.d.ts +5 -0
- package/lib/processor.actionReplay/info.js +100 -0
- package/lib/processor.actionReplay/info.js.map +1 -0
- package/lib/processor.actionReplay/runtime.d.ts +59 -0
- package/lib/processor.actionReplay/runtime.js +224 -0
- package/lib/processor.actionReplay/runtime.js.map +1 -0
- package/lib/processor.actionReplay/summary.d.ts +7 -0
- package/lib/processor.actionReplay/summary.js +76 -0
- package/lib/processor.actionReplay/summary.js.map +1 -0
- package/lib/processor.audioLevel/info.d.ts +3 -0
- package/lib/processor.audioLevel/info.js +83 -0
- package/lib/processor.audioLevel/info.js.map +1 -0
- package/lib/processor.audioLevel/inline-view.d.ts +6 -0
- package/lib/processor.audioLevel/inline-view.js +23 -0
- package/lib/processor.audioLevel/inline-view.js.map +1 -0
- package/lib/processor.audioLevel/runtime.d.ts +49 -0
- package/lib/processor.audioLevel/runtime.js +82 -0
- package/lib/processor.audioLevel/runtime.js.map +1 -0
- package/lib/processor.audioLevel/summary-view.d.ts +7 -0
- package/lib/processor.audioLevel/summary-view.js +36 -0
- package/lib/processor.audioLevel/summary-view.js.map +1 -0
- package/lib/processor.audioMixer/fullscreen-view.d.ts +8 -0
- package/lib/processor.audioMixer/fullscreen-view.js +121 -0
- package/lib/processor.audioMixer/fullscreen-view.js.map +1 -0
- package/lib/processor.audioMixer/info.d.ts +4 -0
- package/lib/processor.audioMixer/info.js +148 -0
- package/lib/processor.audioMixer/info.js.map +1 -0
- package/lib/processor.audioMixer/inline-view.d.ts +7 -0
- package/lib/processor.audioMixer/inline-view.js +43 -0
- package/lib/processor.audioMixer/inline-view.js.map +1 -0
- package/lib/processor.audioMixer/runtime.d.ts +119 -0
- package/lib/processor.audioMixer/runtime.js +142 -0
- package/lib/processor.audioMixer/runtime.js.map +1 -0
- package/lib/processor.audioMixer/summary-view.d.ts +7 -0
- package/lib/processor.audioMixer/summary-view.js +11 -0
- package/lib/processor.audioMixer/summary-view.js.map +1 -0
- package/lib/processor.aws-transcribe/info.d.ts +3 -0
- package/lib/processor.aws-transcribe/info.js +81 -0
- package/lib/processor.aws-transcribe/info.js.map +1 -0
- package/lib/processor.aws-transcribe/runtime.d.ts +39 -0
- package/lib/processor.aws-transcribe/runtime.js +164 -0
- package/lib/processor.aws-transcribe/runtime.js.map +1 -0
- package/lib/processor.aws-transcribe/transcribe-language-selection.d.ts +9 -0
- package/lib/processor.aws-transcribe/transcribe-language-selection.js +40 -0
- package/lib/processor.aws-transcribe/transcribe-language-selection.js.map +1 -0
- package/lib/processor.aws-transcribe/translate-language-selection.d.ts +9 -0
- package/lib/processor.aws-transcribe/translate-language-selection.js +40 -0
- package/lib/processor.aws-transcribe/translate-language-selection.js.map +1 -0
- package/lib/processor.browserOverlay/info.d.ts +3 -0
- package/lib/processor.browserOverlay/info.js +38 -0
- package/lib/processor.browserOverlay/info.js.map +1 -0
- package/lib/processor.browserOverlay/runtime.d.ts +29 -0
- package/lib/processor.browserOverlay/runtime.js +121 -0
- package/lib/processor.browserOverlay/runtime.js.map +1 -0
- package/lib/processor.cascadingSwitch/info.d.ts +3 -0
- package/lib/processor.cascadingSwitch/info.js +155 -0
- package/lib/processor.cascadingSwitch/info.js.map +1 -0
- package/lib/processor.cascadingSwitch/inline-view.d.ts +6 -0
- package/lib/processor.cascadingSwitch/inline-view.js +15 -0
- package/lib/processor.cascadingSwitch/inline-view.js.map +1 -0
- package/lib/processor.cascadingSwitch/runtime.d.ts +59 -0
- package/lib/processor.cascadingSwitch/runtime.js +117 -0
- package/lib/processor.cascadingSwitch/runtime.js.map +1 -0
- package/lib/processor.cascadingSwitch/source-selection.d.ts +7 -0
- package/lib/processor.cascadingSwitch/source-selection.js +36 -0
- package/lib/processor.cascadingSwitch/source-selection.js.map +1 -0
- package/lib/processor.fixedLadder/info.d.ts +8 -0
- package/lib/processor.fixedLadder/info.js +71 -0
- package/lib/processor.fixedLadder/info.js.map +1 -0
- package/lib/processor.fixedLadder/runtime.d.ts +16 -0
- package/lib/processor.fixedLadder/runtime.js +165 -0
- package/lib/processor.fixedLadder/runtime.js.map +1 -0
- package/lib/processor.monetise/info.d.ts +3 -0
- package/lib/processor.monetise/info.js +90 -0
- package/lib/processor.monetise/info.js.map +1 -0
- package/lib/processor.monetise/runtime.d.ts +57 -0
- package/lib/processor.monetise/runtime.js +141 -0
- package/lib/processor.monetise/runtime.js.map +1 -0
- package/lib/processor.monetise/summary.d.ts +7 -0
- package/lib/processor.monetise/summary.js +39 -0
- package/lib/processor.monetise/summary.js.map +1 -0
- package/lib/processor.whisper-transcribe/info.d.ts +3 -0
- package/lib/processor.whisper-transcribe/info.js +43 -0
- package/lib/processor.whisper-transcribe/info.js.map +1 -0
- package/lib/processor.whisper-transcribe/runtime.d.ts +29 -0
- package/lib/processor.whisper-transcribe/runtime.js +83 -0
- package/lib/processor.whisper-transcribe/runtime.js.map +1 -0
- package/lib/shared/srt-form-views.d.ts +2 -0
- package/lib/shared/srt-form-views.js +10 -0
- package/lib/shared/srt-form-views.js.map +1 -0
- package/lib/shared/srt-socket-options.d.ts +4 -0
- package/lib/shared/srt-socket-options.js +36 -0
- package/lib/shared/srt-socket-options.js.map +1 -0
- package/lib/shared/srt-types.d.ts +2 -0
- package/lib/shared/srt-types.js +3 -0
- package/lib/shared/srt-types.js.map +1 -0
- package/lib/test/audio-mixer.d.ts +0 -0
- package/lib/test/audio-mixer.js +2 -0
- package/lib/test/audio-mixer.js.map +1 -0
- package/lib/test/auto-cmaf.d.ts +1 -0
- package/lib/test/auto-cmaf.js +142 -0
- package/lib/test/auto-cmaf.js.map +1 -0
- package/lib/test/browser-overlay.d.ts +1 -0
- package/lib/test/browser-overlay.js +79 -0
- package/lib/test/browser-overlay.js.map +1 -0
- package/lib/test/cascading-switch.d.ts +1 -0
- package/lib/test/cascading-switch.js +286 -0
- package/lib/test/cascading-switch.js.map +1 -0
- package/lib/test/fixed-ladder.d.ts +1 -0
- package/lib/test/fixed-ladder.js +100 -0
- package/lib/test/fixed-ladder.js.map +1 -0
- package/lib/test/rtmp-input.d.ts +1 -0
- package/lib/test/rtmp-input.js +182 -0
- package/lib/test/rtmp-input.js.map +1 -0
- package/lib/test/rtmp-output.d.ts +1 -0
- package/lib/test/rtmp-output.js +74 -0
- package/lib/test/rtmp-output.js.map +1 -0
- package/lib/test/silence-generator.d.ts +1 -0
- package/lib/test/silence-generator.js +65 -0
- package/lib/test/silence-generator.js.map +1 -0
- package/lib/test/srt-input-caller.d.ts +1 -0
- package/lib/test/srt-input-caller.js +79 -0
- package/lib/test/srt-input-caller.js.map +1 -0
- package/lib/test/srt-input-listener.d.ts +1 -0
- package/lib/test/srt-input-listener.js +382 -0
- package/lib/test/srt-input-listener.js.map +1 -0
- package/lib/test/srt-output.d.ts +1 -0
- package/lib/test/srt-output.js +78 -0
- package/lib/test/srt-output.js.map +1 -0
- package/lib/test/udp-output.d.ts +1 -0
- package/lib/test/udp-output.js +76 -0
- package/lib/test/udp-output.js.map +1 -0
- package/lib/test/udp-ts-input.d.ts +1 -0
- package/lib/test/udp-ts-input.js +78 -0
- package/lib/test/udp-ts-input.js.map +1 -0
- package/lib/test/video-card.d.ts +1 -0
- package/lib/test/video-card.js +68 -0
- package/lib/test/video-card.js.map +1 -0
- package/lib/test/whep-output.d.ts +1 -0
- package/lib/test/whep-output.js +92 -0
- package/lib/test/whep-output.js.map +1 -0
- package/lib/util.latency/info.d.ts +3 -0
- package/lib/util.latency/info.js +116 -0
- package/lib/util.latency/info.js.map +1 -0
- package/lib/util.latency/inline-view.d.ts +6 -0
- package/lib/util.latency/inline-view.js +74 -0
- package/lib/util.latency/inline-view.js.map +1 -0
- package/lib/util.latency/runtime.d.ts +19 -0
- package/lib/util.latency/runtime.js +87 -0
- package/lib/util.latency/runtime.js.map +1 -0
- package/lib/util.latency/source-node-selection.d.ts +9 -0
- package/lib/util.latency/source-node-selection.js +17 -0
- package/lib/util.latency/source-node-selection.js.map +1 -0
- package/lib/util.ma35d/info.d.ts +3 -0
- package/lib/util.ma35d/info.js +78 -0
- package/lib/util.ma35d/info.js.map +1 -0
- package/lib/util.ma35d/inline-view.d.ts +6 -0
- package/lib/util.ma35d/inline-view.js +76 -0
- package/lib/util.ma35d/inline-view.js.map +1 -0
- package/lib/util.ma35d/runtime.d.ts +21 -0
- package/lib/util.ma35d/runtime.js +49 -0
- package/lib/util.ma35d/runtime.js.map +1 -0
- package/lib/util.timestamps/info.d.ts +5 -0
- package/lib/util.timestamps/info.js +86 -0
- package/lib/util.timestamps/info.js.map +1 -0
- package/lib/util.timestamps/inline-view.d.ts +6 -0
- package/lib/util.timestamps/inline-view.js +94 -0
- package/lib/util.timestamps/inline-view.js.map +1 -0
- package/lib/util.timestamps/runtime.d.ts +29 -0
- package/lib/util.timestamps/runtime.js +40 -0
- package/lib/util.timestamps/runtime.js.map +1 -0
- package/package.json +61 -0
- package/shared/style.css +1617 -0
- package/shared/tailwind.css +31 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
4
|
+
function SummaryView({ state, config }) {
|
5
|
+
const connectedSources = [];
|
6
|
+
const disconnectedSources = [];
|
7
|
+
config.streamNames.forEach((streamName) => {
|
8
|
+
if (state.connectedSources.includes(streamName)) {
|
9
|
+
connectedSources.push(streamName);
|
10
|
+
}
|
11
|
+
else {
|
12
|
+
disconnectedSources.push(streamName);
|
13
|
+
}
|
14
|
+
});
|
15
|
+
return (0, jsx_runtime_1.jsxs)("div", { className: "dark:text-white text-black mb-3 w-60", children: [(0, jsx_runtime_1.jsxs)("div", { id: "rtmp-sources-connected", children: [(0, jsx_runtime_1.jsx)("span", { children: "Sources connected" }), (0, jsx_runtime_1.jsx)("ul", { children: connectedSources.map((streamId) => {
|
16
|
+
return (0, jsx_runtime_1.jsx)("li", { className: "text-green-300", children: streamId });
|
17
|
+
}) })] }), (0, jsx_runtime_1.jsxs)("div", { id: "rtmp-sources-disconnected", className: "mt-3", children: [(0, jsx_runtime_1.jsx)("span", { children: "Sources disconnected" }), (0, jsx_runtime_1.jsx)("ul", { children: disconnectedSources.map((streamId) => {
|
18
|
+
return (0, jsx_runtime_1.jsx)("li", { className: "text-orange-300", children: streamId });
|
19
|
+
}) })] })] });
|
20
|
+
}
|
21
|
+
exports.default = SummaryView;
|
22
|
+
//# sourceMappingURL=summary-view.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"summary-view.js","sourceRoot":"","sources":["../../src/input.rtmp/summary-view.tsx"],"names":[],"mappings":";;;AAEA,SAAS,WAAW,CAAC,EAAE,KAAK,EAAE,MAAM,EAAwD;IAC1F,MAAM,gBAAgB,GAAa,EAAE,CAAC;IACtC,MAAM,mBAAmB,GAAa,EAAE,CAAC;IACzC,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;QACxC,IAAI,KAAK,CAAC,gBAAgB,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YAChD,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QACnC,CAAC;aAAM,CAAC;YACN,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QACtC,CAAC;IACH,CAAC,CAAC,CAAA;IACF,OAAO,iCAAK,SAAS,EAAC,sCAAsC,aAC1D,iCAAK,EAAE,EAAC,wBAAwB,aAC9B,iEAA8B,EAC9B,yCACG,gBAAgB,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;4BACjC,OAAO,+BAAI,SAAS,EAAC,gBAAgB,YAAE,QAAQ,GAAM,CAAA;wBACvD,CAAC,CAAC,GACC,IACD,EACN,iCAAK,EAAE,EAAC,2BAA2B,EAAC,SAAS,EAAC,MAAM,aAClD,oEAAiC,EACjC,yCACG,mBAAmB,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;4BACpC,OAAO,+BAAI,SAAS,EAAC,iBAAiB,YAAE,QAAQ,GAAM,CAAA;wBACxD,CAAC,CAAC,GACC,IACD,IACF,CAAA;AAER,CAAC;AAED,kBAAe,WAAW,CAAC"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
|
2
|
+
import type { SilenceConfig } from "./runtime";
|
3
|
+
export default function ({ defineComponent, Audio }: Registration): import("@norskvideo/norsk-studio/lib/extension/client-types").NodeInfo<SilenceConfig, object, object, object>;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
function default_1({ defineComponent, Audio }) {
|
4
|
+
return defineComponent({
|
5
|
+
identifier: 'input.silence',
|
6
|
+
category: 'input',
|
7
|
+
name: "Silence Generator",
|
8
|
+
subscription: {
|
9
|
+
produces: {
|
10
|
+
type: "single-stream",
|
11
|
+
media: Audio
|
12
|
+
}
|
13
|
+
},
|
14
|
+
display: (desc) => {
|
15
|
+
return {
|
16
|
+
sampleRate: desc.config.sampleRate.toString() + "khz",
|
17
|
+
channelLayout: desc.config.channelLayout.toString()
|
18
|
+
};
|
19
|
+
},
|
20
|
+
configForm: {
|
21
|
+
form: {
|
22
|
+
sampleRate: {
|
23
|
+
help: "Samplerate in khz of the generated audio",
|
24
|
+
hint: {
|
25
|
+
type: 'select', options: [
|
26
|
+
{ value: 48000, display: "48000" },
|
27
|
+
{ value: 44100, display: "44100" }
|
28
|
+
],
|
29
|
+
defaultValue: 48000,
|
30
|
+
}
|
31
|
+
},
|
32
|
+
channelLayout: {
|
33
|
+
help: "Channel layout of the generated audio",
|
34
|
+
hint: {
|
35
|
+
type: 'select', options: [
|
36
|
+
{ value: "mono", display: "Mono" },
|
37
|
+
{ value: "stereo", display: "Stereo" }
|
38
|
+
],
|
39
|
+
defaultValue: "stereo"
|
40
|
+
}
|
41
|
+
},
|
42
|
+
}
|
43
|
+
}
|
44
|
+
});
|
45
|
+
}
|
46
|
+
exports.default = default_1;
|
47
|
+
//# sourceMappingURL=info.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../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norsk-sdk';
|
2
|
+
import { OnCreated, ServerComponentDefinition } from '@norskvideo/norsk-studio/lib/extension/runtime-types';
|
3
|
+
import { CustomSourceNode } from '@norskvideo/norsk-studio/lib/extension/base-nodes';
|
4
|
+
export type SilenceConfig = {
|
5
|
+
id: string;
|
6
|
+
displayName: string;
|
7
|
+
sampleRate: SampleRate;
|
8
|
+
channelLayout: ChannelLayout;
|
9
|
+
};
|
10
|
+
export default class SilenceSourceDefinition implements ServerComponentDefinition<SilenceConfig, SilenceSource> {
|
11
|
+
create(norsk: Norsk, cfg: SilenceConfig, cb: OnCreated<SilenceSource>): Promise<void>;
|
12
|
+
}
|
13
|
+
export declare class SilenceSource extends CustomSourceNode {
|
14
|
+
norsk: Norsk;
|
15
|
+
cfg: SilenceConfig;
|
16
|
+
signal?: AudioSignalGeneratorNode;
|
17
|
+
initialised: Promise<void>;
|
18
|
+
static create(norsk: Norsk, cfg: SilenceConfig): Promise<SilenceSource>;
|
19
|
+
constructor(cfg: SilenceConfig, norsk: Norsk);
|
20
|
+
initialise(): Promise<void>;
|
21
|
+
close(): Promise<void>;
|
22
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SilenceSource = void 0;
|
4
|
+
const norsk_sdk_1 = require("@norskvideo/norsk-sdk");
|
5
|
+
const base_nodes_1 = require("@norskvideo/norsk-studio/lib/extension/base-nodes");
|
6
|
+
class SilenceSourceDefinition {
|
7
|
+
async create(norsk, cfg, cb) {
|
8
|
+
const node = await SilenceSource.create(norsk, cfg);
|
9
|
+
cb(node);
|
10
|
+
}
|
11
|
+
}
|
12
|
+
exports.default = SilenceSourceDefinition;
|
13
|
+
class SilenceSource extends base_nodes_1.CustomSourceNode {
|
14
|
+
norsk;
|
15
|
+
cfg;
|
16
|
+
signal;
|
17
|
+
initialised;
|
18
|
+
static async create(norsk, cfg) {
|
19
|
+
const node = new SilenceSource(cfg, norsk);
|
20
|
+
await node.initialised;
|
21
|
+
return node;
|
22
|
+
}
|
23
|
+
constructor(cfg, norsk) {
|
24
|
+
super(cfg.id);
|
25
|
+
this.norsk = norsk;
|
26
|
+
this.cfg = cfg;
|
27
|
+
this.initialised = this.initialise();
|
28
|
+
}
|
29
|
+
async initialise() {
|
30
|
+
const signal = await this.norsk.input.audioSignal({
|
31
|
+
id: `${this.cfg.id}-signal`,
|
32
|
+
sourceName: `audio-signal-${this.cfg.id}`,
|
33
|
+
channelLayout: this.cfg.channelLayout,
|
34
|
+
sampleRate: this.cfg.sampleRate,
|
35
|
+
});
|
36
|
+
const gain = await this.norsk.processor.transform.audioGain({
|
37
|
+
id: `${this.cfg.id}-gain`,
|
38
|
+
channelGains: new Array((0, norsk_sdk_1.getAmountOfChannels)(this.cfg.channelLayout)).fill(-80.0),
|
39
|
+
});
|
40
|
+
gain.subscribe([
|
41
|
+
{ source: signal, sourceSelector: norsk_sdk_1.selectAudio }
|
42
|
+
]);
|
43
|
+
this.setup({ output: [gain] });
|
44
|
+
this.signal = signal;
|
45
|
+
}
|
46
|
+
async close() {
|
47
|
+
await super.close();
|
48
|
+
await this.signal?.close();
|
49
|
+
}
|
50
|
+
}
|
51
|
+
exports.SilenceSource = SilenceSource;
|
52
|
+
//# sourceMappingURL=runtime.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/input.silence/runtime.ts"],"names":[],"mappings":";;;AAAA,qDAAqI;AAGrI,kFAAqF;AASrF,MAAqB,uBAAuB;IAC1C,KAAK,CAAC,MAAM,CAAC,KAAY,EAAE,GAAkB,EAAE,EAA4B;QACzE,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QACpD,EAAE,CAAC,IAAI,CAAC,CAAC;IACX,CAAC;CACF;AALD,0CAKC;AAED,MAAa,aAAc,SAAQ,6BAAgB;IACjD,KAAK,CAAQ;IACb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AC,CAAA;QACF,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEQ,KAAK,CAAC,KAAK;QAClB,MAAM,KAAK,CAAC,KAAK,EAAE,CAAC;QACpB,MAAM,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC;IAC7B,CAAC;CACF;AAzCD,sCAyCC"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
|
2
|
+
import type { SrtInputSettings } from "./runtime";
|
3
|
+
export default function ({ defineComponent, Av, validation: validation }: Registration): import("@norskvideo/norsk-studio/lib/extension/client-types").NodeInfo<SrtInputSettings, object, object, object>;
|
@@ -0,0 +1,74 @@
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
const srt_socket_options_1 = __importDefault(require("../shared/srt-socket-options"));
|
30
|
+
const react_1 = __importDefault(require("react"));
|
31
|
+
function default_1({ defineComponent, Av, validation: validation }) {
|
32
|
+
const { Port, IpAddress, SourceName, SrtPassphrase, SrtStreamId } = validation;
|
33
|
+
const SocketConfiguration = react_1.default.lazy(async () => {
|
34
|
+
const views = await Promise.resolve().then(() => __importStar(require('../shared/srt-form-views')));
|
35
|
+
return { default: views.SocketConfiguration };
|
36
|
+
});
|
37
|
+
return defineComponent({
|
38
|
+
identifier: 'input.srt-caller',
|
39
|
+
category: 'input',
|
40
|
+
name: "SRT Ingest (Caller)",
|
41
|
+
subscription: {
|
42
|
+
accepts: undefined,
|
43
|
+
produces: {
|
44
|
+
type: "single-stream",
|
45
|
+
media: Av
|
46
|
+
}
|
47
|
+
},
|
48
|
+
display: (desc) => {
|
49
|
+
return {
|
50
|
+
port: desc.config.port.toString(),
|
51
|
+
ip: desc.config.ip
|
52
|
+
};
|
53
|
+
},
|
54
|
+
configForm: {
|
55
|
+
form: {
|
56
|
+
port: { help: "The port this SRT input will connect to", hint: { type: 'numeric', validation: Port, defaultValue: 5001 } },
|
57
|
+
ip: { help: "The IP address this SRT input will connect to", hint: { type: 'text', validation: IpAddress, defaultValue: "0.0.0.0" } },
|
58
|
+
sourceName: { help: "Source name to identify this by", hint: { type: 'text', validation: SourceName, defaultValue: "camera1" } },
|
59
|
+
passphrase: { help: "Optional: Authentication for this SRT input", hint: { type: 'text', validation: SrtPassphrase } },
|
60
|
+
streamId: { help: "Optional: StreamId to use when calling the remote listener", hint: { type: 'text', validation: SrtStreamId } },
|
61
|
+
socketOptions: {
|
62
|
+
help: "Socket Options",
|
63
|
+
hint: {
|
64
|
+
type: "form-item",
|
65
|
+
view: SocketConfiguration,
|
66
|
+
form: (0, srt_socket_options_1.default)(validation)
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
});
|
72
|
+
}
|
73
|
+
exports.default = default_1;
|
74
|
+
//# sourceMappingURL=info.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/input.srt-caller/info.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sFAA4D;AAE5D,kDAA0B;AAE1B,mBAAwB,EACtB,eAAe,EACf,EAAE,EACF,UAAU,EAAE,UAAU,EACT;IACb,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC;IAC/E,MAAM,mBAAmB,GAAG,eAAK,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE;QAChD,MAAM,KAAK,GAAG,wDAAa,0BAA0B,GAAC,CAAA;QACtD,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,mBAAmB,EAAE,CAAA;IAC/C,CAAC,CAAC,CAAC;IACH,OAAO,eAAe,CACpB;QACE,UAAU,EAAE,kBAAkB;QAC9B,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,qBAAqB;QAC3B,YAAY,EAAE;YACZ,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE;gBACR,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,EAAE;aACV;SACF;QACD,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;YAChB,OAAO;gBACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE;gBACjC,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;aACnB,CAAA;QACH,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,EAAE,IAAI,EAAE,yCAAyC,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE;gBAC1H,EAAE,EAAE,EAAE,IAAI,EAAE,+CAA+C,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;gBACrI,UAAU,EAAE,EAAE,IAAI,EAAE,iCAAiC,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;gBAChI,UAAU,EAAE,EAAE,IAAI,EAAE,6CAA6C,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE;gBACtH,QAAQ,EAAE,EAAE,IAAI,EAAE,4DAA4D,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE;gBACjI,aAAa,EAAE;oBACb,IAAI,EAAE,gBAAgB;oBACtB,IAAI,EAAE;wBACJ,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,mBAAmB;wBACzB,IAAI,EAAE,IAAA,4BAAgB,EAAC,UAAU,CAAC;qBACnC;iBACF;aACF;SACF;KACF,CAAC,CAAC;AACP,CAAC;AA9CD,4BA8CC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Norsk, SrtInputSettings as SdkSettings } from '@norskvideo/norsk-sdk';
|
2
|
+
import { SocketOptions } from '../shared/srt-types';
|
3
|
+
import { SimpleInputWrapper } from '@norskvideo/norsk-studio/lib/extension/base-nodes';
|
4
|
+
import { OnCreated, ServerComponentDefinition } from '@norskvideo/norsk-studio/lib/extension/runtime-types';
|
5
|
+
export type SrtInputSettings = Pick<SdkSettings, 'port' | 'ip' | 'sourceName' | 'passphrase' | 'streamId'> & {
|
6
|
+
id: string;
|
7
|
+
displayName: string;
|
8
|
+
socketOptions: SocketOptions;
|
9
|
+
};
|
10
|
+
export default class SrtInputDefinition implements ServerComponentDefinition<SrtInputSettings, SimpleInputWrapper> {
|
11
|
+
create(norsk: Norsk, cfg: SrtInputSettings, cb: OnCreated<SimpleInputWrapper>): Promise<void>;
|
12
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const base_nodes_1 = require("@norskvideo/norsk-studio/lib/extension/base-nodes");
|
4
|
+
class SrtInputDefinition {
|
5
|
+
async create(norsk, cfg, cb) {
|
6
|
+
const wrapper = new base_nodes_1.SimpleInputWrapper(cfg.id, async () => {
|
7
|
+
return await norsk.input.srt({ mode: 'caller', ...cfg });
|
8
|
+
});
|
9
|
+
await wrapper.initialised;
|
10
|
+
cb(wrapper);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
exports.default = SrtInputDefinition;
|
14
|
+
//# sourceMappingURL=runtime.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/input.srt-caller/runtime.ts"],"names":[],"mappings":";;AAEA,kFAAuF;AASvF,MAAqB,kBAAkB;IACrC,KAAK,CAAC,MAAM,CAAC,KAAY,EAAE,GAAqB,EAAE,EAAiC;QACjF,MAAM,OAAO,GAAG,IAAI,+BAAkB,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,IAAI,EAAE;YACxD,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,GAAG,EAAE,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAA;QACF,MAAM,OAAO,CAAC,WAAW,CAAC;QAC1B,EAAE,CAAC,OAAO,CAAC,CAAC;IACd,CAAC;CACF;AARD,qCAQC"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
|
2
|
+
import type { SrtInputEvent, SrtInputSettings, SrtInputState } from "./runtime";
|
3
|
+
export default function ({ defineComponent, Av, validation }: Registration): import("@norskvideo/norsk-studio/lib/extension/client-types").NodeInfo<SrtInputSettings, SrtInputState, object, SrtInputEvent>;
|
@@ -0,0 +1,125 @@
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
const react_1 = __importDefault(require("react"));
|
30
|
+
const InlineView = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./inline-view'))));
|
31
|
+
const SummaryView = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./summary-view'))));
|
32
|
+
const srt_socket_options_1 = __importDefault(require("../shared/srt-socket-options"));
|
33
|
+
function default_1({ defineComponent, Av, validation }) {
|
34
|
+
const { Z, Port, IpAddress, SourceName, SrtPassphrase, unique } = validation;
|
35
|
+
const SocketConfiguration = react_1.default.lazy(async () => {
|
36
|
+
const views = await Promise.resolve().then(() => __importStar(require('../shared/srt-form-views')));
|
37
|
+
return { default: views.SocketConfiguration };
|
38
|
+
});
|
39
|
+
return defineComponent({
|
40
|
+
identifier: 'input.srt-listener',
|
41
|
+
category: 'input',
|
42
|
+
name: "SRT Ingest (Listener)",
|
43
|
+
subscription: {
|
44
|
+
accepts: undefined,
|
45
|
+
produces: {
|
46
|
+
type: "fixed-list",
|
47
|
+
possibleMedia: Av,
|
48
|
+
keys: (cfg) => cfg.streamIds.map((s) => ({
|
49
|
+
key: s,
|
50
|
+
display: s,
|
51
|
+
media: Av
|
52
|
+
})),
|
53
|
+
selector: (selection, metadata) => {
|
54
|
+
return metadata.filter((m) => {
|
55
|
+
return selection.includes(m.streamKey.sourceName);
|
56
|
+
}).map((s) => s.streamKey);
|
57
|
+
},
|
58
|
+
}
|
59
|
+
},
|
60
|
+
display: (desc) => {
|
61
|
+
return {
|
62
|
+
port: desc.config.port.toString(),
|
63
|
+
ip: desc.config.ip
|
64
|
+
};
|
65
|
+
},
|
66
|
+
runtime: {
|
67
|
+
initialState: () => ({ connectedStreams: [] }),
|
68
|
+
handleEvent(ev, state) {
|
69
|
+
const evType = ev.type;
|
70
|
+
switch (evType) {
|
71
|
+
case "source-connected":
|
72
|
+
state.connectedStreams.push(ev.streamId);
|
73
|
+
break;
|
74
|
+
case "source-disconnected":
|
75
|
+
state.connectedStreams = state.connectedStreams.filter((streamId) => streamId !== ev.streamId);
|
76
|
+
break;
|
77
|
+
default:
|
78
|
+
assertUnreachable(evType);
|
79
|
+
}
|
80
|
+
return { ...state };
|
81
|
+
},
|
82
|
+
inline: InlineView,
|
83
|
+
summary: SummaryView,
|
84
|
+
},
|
85
|
+
configForm: {
|
86
|
+
form: {
|
87
|
+
port: { help: "The port this SRT input will listen on", hint: { type: 'numeric', validation: Port, defaultValue: 5001, global: unique('port') } },
|
88
|
+
ip: { help: "The IP address this SRT input will listen on", hint: { type: 'text', validation: IpAddress, defaultValue: "0.0.0.0" } },
|
89
|
+
passphrase: { help: "Optional: Authentication for this SRT input", hint: { type: 'text', validation: SrtPassphrase } },
|
90
|
+
socketOptions: {
|
91
|
+
help: "Socket Options",
|
92
|
+
hint: {
|
93
|
+
type: "form-item",
|
94
|
+
view: SocketConfiguration,
|
95
|
+
form: (0, srt_socket_options_1.default)(validation)
|
96
|
+
}
|
97
|
+
},
|
98
|
+
sourceNames: {
|
99
|
+
help: 'Either auto assign streams in the order they come in, or restrict connections to those with known stream ids', hint: {
|
100
|
+
type: "select",
|
101
|
+
options: [
|
102
|
+
{ value: 'permissive', display: 'Auto Assign' },
|
103
|
+
{ value: 'strict', display: 'Restrict' },
|
104
|
+
],
|
105
|
+
defaultValue: 'permissive',
|
106
|
+
}
|
107
|
+
},
|
108
|
+
streamIds: {
|
109
|
+
help: 'List of stream ids to assign to the accepted streams',
|
110
|
+
hint: {
|
111
|
+
type: "list",
|
112
|
+
defaultValue: ['camera1'],
|
113
|
+
validation: Z.array(SourceName),
|
114
|
+
global: unique('sourceName')
|
115
|
+
}
|
116
|
+
},
|
117
|
+
}
|
118
|
+
}
|
119
|
+
});
|
120
|
+
}
|
121
|
+
exports.default = default_1;
|
122
|
+
function assertUnreachable(_) {
|
123
|
+
throw new Error("Didn't expect to get here");
|
124
|
+
}
|
125
|
+
//# sourceMappingURL=info.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/input.srt-listener/info.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kDAA0B;AAC1B,MAAM,UAAU,GAAG,eAAK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,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;gBACpI,UAAU,EAAE,EAAE,IAAI,EAAE,6CAA6C,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE;gBACtH,aAAa,EAAE;oBACb,IAAI,EAAE,gBAAgB;oBACtB,IAAI,EAAE;wBACJ,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,mBAAmB;wBACzB,IAAI,EAAE,IAAA,4BAAgB,EAAC,UAAU,CAAC;qBACnC;iBACF;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,8GAA8G,EAAE,IAAI,EAAE;wBAC1H,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE;4BACP,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE;4BAC/C,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE;yBACzC;wBACD,YAAY,EAAE,YAAY;qBAC3B;iBACF;gBACD,SAAS,EAAE;oBACT,IAAI,EAAE,sDAAsD;oBAC5D,IAAI,EAAE;wBACJ,IAAI,EAAE,MAAM;wBACZ,YAAY,EAAE,CAAC,SAAS,CAAC;wBACzB,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC;wBAC/B,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC;qBAC7B;iBACF;aACF;SACF;KACF,CAAC,CAAC;AACP,CAAC;AA5FD,4BA4FC;AAED,SAAS,iBAAiB,CAAC,CAAQ;IACjC,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAC/C,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
4
|
+
function InlineView({ state, config }) {
|
5
|
+
const maxSourceNum = 4;
|
6
|
+
const sourcesToRender = state.connectedStreams.slice(0, maxSourceNum);
|
7
|
+
if (state.connectedStreams.length > maxSourceNum) {
|
8
|
+
sourcesToRender.push("...");
|
9
|
+
}
|
10
|
+
const connectedSources = (0, jsx_runtime_1.jsxs)("div", { className: "mt-2", children: [" ", state.connectedStreams.length > 0 ? (0, jsx_runtime_1.jsx)("span", { children: "Connected sources" }) : (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}), (0, jsx_runtime_1.jsx)("ul", { className: "srt-input-connected-sources", children: sourcesToRender.map((sourceName) => {
|
11
|
+
return (0, jsx_runtime_1.jsx)("li", { className: "text-green-300", children: sourceName }, sourceName);
|
12
|
+
}) })] });
|
13
|
+
return (0, jsx_runtime_1.jsx)("div", { className: "srt-input", id: `srt-input-${config.id}`, children: connectedSources });
|
14
|
+
}
|
15
|
+
exports.default = InlineView;
|
16
|
+
//# sourceMappingURL=inline-view.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"inline-view.js","sourceRoot":"","sources":["../../src/input.srt-listener/inline-view.tsx"],"names":[],"mappings":";;;AAEA,SAAS,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAsD;IACvF,MAAM,YAAY,GAAG,CAAC,CAAC;IACvB,MAAM,eAAe,GAAG,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,EAAE,YAAY,CAAC,CAAA;IACrE,IAAI,KAAK,CAAC,gBAAgB,CAAC,MAAM,GAAG,YAAY,EAAE,CAAC;QACjD,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAC7B,CAAC;IACD,MAAM,gBAAgB,GACpB,iCAAK,SAAS,EAAC,MAAM,kBAAG,KAAK,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,iEAA8B,CAAC,CAAC,CAAC,kDAAK,EAChG,+BAAI,SAAS,EAAC,6BAA6B,YACxC,eAAe,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;oBAClC,OAAO,+BAAqB,SAAS,EAAC,gBAAgB,YAAE,UAAU,IAAlD,UAAU,CAA8C,CAAA;gBAC1E,CAAC,CAAC,GACC,IACD,CAAA;IACR,OAAO,gCAAK,SAAS,EAAC,WAAW,EAAC,EAAE,EAAE,aAAa,MAAM,CAAC,EAAE,EAAE,YAC3D,gBAAgB,GACb,CAAA;AACR,CAAC;AAED,kBAAe,UAAU,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { Norsk, SrtInputSettings as SdkSettings } from '@norskvideo/norsk-sdk';
|
2
|
+
import { SocketOptions } from '../shared/srt-types';
|
3
|
+
import { SimpleInputWrapper } from '@norskvideo/norsk-studio/lib/extension/base-nodes';
|
4
|
+
import { OnCreated, ServerComponentDefinition, StudioRuntime } from '@norskvideo/norsk-studio/lib/extension/runtime-types';
|
5
|
+
export type SrtInputSettings = Pick<SdkSettings, 'port' | 'ip' | 'passphrase'> & {
|
6
|
+
id: string;
|
7
|
+
displayName: string;
|
8
|
+
sourceNames: 'permissive' | 'strict';
|
9
|
+
streamIds: string[];
|
10
|
+
socketOptions: SocketOptions;
|
11
|
+
};
|
12
|
+
export type SrtInputState = {
|
13
|
+
connectedStreams: string[];
|
14
|
+
};
|
15
|
+
export type SrtInputEvent = {
|
16
|
+
type: "source-connected";
|
17
|
+
streamId: string;
|
18
|
+
} | {
|
19
|
+
type: "source-disconnected";
|
20
|
+
streamId: string;
|
21
|
+
};
|
22
|
+
export default class SrtInputDefinition implements ServerComponentDefinition<SrtInputSettings, SimpleInputWrapper, SrtInputState> {
|
23
|
+
create(norsk: Norsk, cfg: SrtInputSettings, cb: OnCreated<SimpleInputWrapper>, { updates }: StudioRuntime<SrtInputState, SrtInputEvent>): Promise<void>;
|
24
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const base_nodes_1 = require("@norskvideo/norsk-studio/lib/extension/base-nodes");
|
4
|
+
const logging_1 = require("@norskvideo/norsk-studio/lib/server/logging");
|
5
|
+
const util_1 = require("@norskvideo/norsk-studio/lib/shared/util");
|
6
|
+
class SrtInputDefinition {
|
7
|
+
async create(norsk, cfg, cb, { updates }) {
|
8
|
+
const wrapper = new base_nodes_1.SimpleInputWrapper(cfg.id, async () => {
|
9
|
+
const activeStreams = new Map();
|
10
|
+
return await norsk.input.srt({
|
11
|
+
mode: 'listener',
|
12
|
+
sourceName: 'unused',
|
13
|
+
onConnectionStatusChange(status, sourceName) {
|
14
|
+
switch (status) {
|
15
|
+
case 'disconnected':
|
16
|
+
if (sourceName) {
|
17
|
+
(0, logging_1.debuglog)("Stream with source name has disconnected, clearing it ", { sourceName });
|
18
|
+
activeStreams.delete(sourceName);
|
19
|
+
updates.raiseEvent({ type: "source-disconnected", streamId: sourceName });
|
20
|
+
}
|
21
|
+
break;
|
22
|
+
default:
|
23
|
+
(0, util_1.assertUnreachable)(status);
|
24
|
+
}
|
25
|
+
},
|
26
|
+
onConnection: (streamId, index, remoteHost) => {
|
27
|
+
if (cfg.sourceNames == 'permissive') {
|
28
|
+
if (cfg.streamIds.includes(streamId) && !activeStreams.has(streamId)) {
|
29
|
+
(0, logging_1.debuglog)("Accepting SRT connection", { streamId, remoteHost });
|
30
|
+
activeStreams.set(streamId, index);
|
31
|
+
updates.raiseEvent({ type: "source-connected", streamId });
|
32
|
+
return {
|
33
|
+
accept: true,
|
34
|
+
sourceName: streamId
|
35
|
+
};
|
36
|
+
}
|
37
|
+
const streamName = cfg.streamIds.find((s) => !activeStreams.has(s));
|
38
|
+
if (!streamName) {
|
39
|
+
(0, logging_1.debuglog)("Rejecting connection as no stream ids left to assign", { count: index, remoteHost });
|
40
|
+
return {
|
41
|
+
accept: false
|
42
|
+
};
|
43
|
+
}
|
44
|
+
(0, logging_1.debuglog)("Accepting SRT connection", { streamName, remoteHost });
|
45
|
+
updates.raiseEvent({ type: "source-connected", streamId: streamName });
|
46
|
+
activeStreams.set(streamName, index);
|
47
|
+
return {
|
48
|
+
accept: true,
|
49
|
+
sourceName: streamName
|
50
|
+
};
|
51
|
+
}
|
52
|
+
else {
|
53
|
+
if (cfg.streamIds.includes(streamId)) {
|
54
|
+
(0, logging_1.debuglog)("Accepting SRT connection", { streamId, remoteHost });
|
55
|
+
activeStreams.set(streamId, index);
|
56
|
+
return {
|
57
|
+
accept: true,
|
58
|
+
sourceName: streamId
|
59
|
+
};
|
60
|
+
}
|
61
|
+
(0, logging_1.debuglog)("Rejecting connection with unknown streamId", { streamId, remoteHost });
|
62
|
+
return {
|
63
|
+
accept: false
|
64
|
+
};
|
65
|
+
}
|
66
|
+
},
|
67
|
+
...cfg
|
68
|
+
});
|
69
|
+
});
|
70
|
+
await wrapper.initialised;
|
71
|
+
cb(wrapper);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
exports.default = SrtInputDefinition;
|
75
|
+
//# sourceMappingURL=runtime.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/input.srt-listener/runtime.ts"],"names":[],"mappings":";;AAEA,kFAAuF;AAEvF,yEAAuE;AACvE,mEAA6E;AA0B7E,MAAqB,kBAAkB;IACrC,KAAK,CAAC,MAAM,CAAC,KAAY,EAAE,GAAqB,EAAE,EAAiC,EAAE,EAAE,OAAO,EAA+C;QAC3I,MAAM,OAAO,GAAG,IAAI,+BAAkB,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,IAAI,EAAE;YAIxD,MAAM,aAAa,GAAG,IAAI,GAAG,EAAkB,CAAC;YAChD,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;gBAC3B,IAAI,EAAE,UAAU;gBAChB,UAAU,EAAE,QAAQ;gBACpB,wBAAwB,CAAC,MAAM,EAAE,UAAU;oBACzC,QAAQ,MAAM,EAAE,CAAC;wBACf,KAAK,cAAc;4BACjB,IAAI,UAAU,EAAE,CAAC;gCACf,IAAA,kBAA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IAAA,kBAAQ,EAAC,0BAA0B,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAA;wBAChE,OAAO,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAA;wBACtE,aAAa,CAAC,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;wBACrC,OAAO;4BACL,MAAM,EAAE,IAAI;4BACZ,UAAU,EAAE,UAAU;yBACvB,CAAA;oBACH,CAAC;yBAAM,CAAC;wBACN,IAAI,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;4BACrC,IAAA,kBAAQ,EAAC,0BAA0B,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAA;4BAC9D,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;4BACnC,OAAO;gCACL,MAAM,EAAE,IAAI;gCACZ,UAAU,EAAE,QAAQ;6BACrB,CAAA;wBACH,CAAC;wBACD,IAAA,kBAAQ,EAAC,4CAA4C,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAC;wBACjF,OAAO;4BACL,MAAM,EAAE,KAAK;yBACd,CAAA;oBAEH,CAAC;gBACH,CAAC;gBACD,GAAG,GAAG;aACP,CAAC,CAAC;QACL,CAAC,CAAC,CAAA;QACF,MAAM,OAAO,CAAC,WAAW,CAAC;QAC1B,EAAE,CAAC,OAAO,CAAC,CAAC;IACd,CAAC;CACF;AAtED,qCAsEC"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
4
|
+
function SummaryView({ state, config }) {
|
5
|
+
const connectedSources = [];
|
6
|
+
const disconnectedSources = [];
|
7
|
+
config.streamIds.forEach((streamId) => {
|
8
|
+
if (state.connectedStreams.includes(streamId)) {
|
9
|
+
connectedSources.push(streamId);
|
10
|
+
}
|
11
|
+
else {
|
12
|
+
disconnectedSources.push(streamId);
|
13
|
+
}
|
14
|
+
});
|
15
|
+
return (0, jsx_runtime_1.jsxs)("div", { className: "dark:text-white text-black mb-3 w-60", children: [(0, jsx_runtime_1.jsxs)("div", { id: "srt-sources-connected", children: [(0, jsx_runtime_1.jsx)("span", { children: "Sources connected" }), (0, jsx_runtime_1.jsx)("ul", { children: connectedSources.map((streamId) => {
|
16
|
+
return (0, jsx_runtime_1.jsx)("li", { className: "text-green-300", children: streamId }, streamId);
|
17
|
+
}) })] }), (0, jsx_runtime_1.jsxs)("div", { id: "srt-sources-disconnected", className: "mt-3", children: [(0, jsx_runtime_1.jsx)("span", { children: "Sources disconnected" }), (0, jsx_runtime_1.jsx)("ul", { children: disconnectedSources.map((streamId) => {
|
18
|
+
return (0, jsx_runtime_1.jsx)("li", { className: "text-orange-300", children: streamId }, streamId);
|
19
|
+
}) })] })] });
|
20
|
+
}
|
21
|
+
exports.default = SummaryView;
|
22
|
+
//# sourceMappingURL=summary-view.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"summary-view.js","sourceRoot":"","sources":["../../src/input.srt-listener/summary-view.tsx"],"names":[],"mappings":";;;AAEA,SAAS,WAAW,CAAC,EAAE,KAAK,EAAE,MAAM,EAAsD;IACxF,MAAM,gBAAgB,GAAa,EAAE,CAAC;IACtC,MAAM,mBAAmB,GAAa,EAAE,CAAC;IACzC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;QACpC,IAAI,KAAK,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC9C,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACjC,CAAC;aAAM,CAAC;YACN,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACpC,CAAC;IACH,CAAC,CAAC,CAAA;IACF,OAAO,iCAAK,SAAS,EAAC,sCAAsC,aAC1D,iCAAK,EAAE,EAAC,uBAAuB,aAC7B,iEAA8B,EAC9B,yCACG,gBAAgB,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;4BACjC,OAAO,+BAAmB,SAAS,EAAC,gBAAgB,YAAE,QAAQ,IAA9C,QAAQ,CAA4C,CAAA;wBACtE,CAAC,CAAC,GACC,IACD,EACN,iCAAK,EAAE,EAAC,0BAA0B,EAAC,SAAS,EAAC,MAAM,aACjD,oEAAiC,EACjC,yCACG,mBAAmB,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;4BACpC,OAAO,+BAAmB,SAAS,EAAC,iBAAiB,YAAE,QAAQ,IAA/C,QAAQ,CAA6C,CAAA;wBACvE,CAAC,CAAC,GACC,IACD,IACF,CAAA;AACR,CAAC;AAED,kBAAe,WAAW,CAAC"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
|
2
|
+
import type { UdpTsInputSettings } from "./runtime";
|
3
|
+
export default function ({ defineComponent, Av, validation: { Z, Port, IpAddress, SourceName, unique } }: Registration): import("@norskvideo/norsk-studio/lib/extension/client-types").NodeInfo<UdpTsInputSettings, object, object, object>;
|