@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,34 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
function default_1({ defineComponent, Av, validation: { Z, Port, IpAddress, SourceName, unique } }) {
|
4
|
+
return defineComponent({
|
5
|
+
identifier: 'input.udp-ts',
|
6
|
+
category: 'input',
|
7
|
+
name: "UDP TS ingest",
|
8
|
+
subscription: {
|
9
|
+
accepts: undefined,
|
10
|
+
produces: {
|
11
|
+
type: "single-stream",
|
12
|
+
media: Av
|
13
|
+
}
|
14
|
+
},
|
15
|
+
display: (desc) => {
|
16
|
+
return {
|
17
|
+
port: desc.config.port.toString(),
|
18
|
+
ip: desc.config.ip
|
19
|
+
};
|
20
|
+
},
|
21
|
+
configForm: {
|
22
|
+
form: {
|
23
|
+
port: { help: "The receiving port", hint: { type: 'numeric', validation: Port, defaultValue: 5001, global: unique('port') } },
|
24
|
+
ip: { help: "The receiving IP address", hint: { type: 'text', validation: IpAddress, defaultValue: "127.0.0.1" } },
|
25
|
+
sourceName: { help: "Source name to identify this by", hint: { type: 'text', validation: SourceName, defaultValue: "udp-ts", global: unique('sourceName') } },
|
26
|
+
interface: { help: "Optional interface to bind to", hint: { type: 'text', validation: Z.union([Z.string().min(2).max(32), Z.string().length(0)]).optional() } },
|
27
|
+
timeout: { help: "Timeout in milliseconds before determining the input is closed", hint: { type: 'numeric', validation: Z.number().refine((value) => value > 0 && value < 600_000, "Timeout must be less than 10 minutes"), defaultValue: 1000.0 } },
|
28
|
+
rtpDecapsulate: { help: "Whether to expect the input TS to be encapsulated in RTP via RFC 2250 (default: false)", hint: { type: "boolean" } }
|
29
|
+
}
|
30
|
+
}
|
31
|
+
});
|
32
|
+
}
|
33
|
+
exports.default = default_1;
|
34
|
+
//# sourceMappingURL=info.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/input.udp-ts/info.ts"],"names":[],"mappings":";;AAGA,mBAAwB,EACtB,eAAe,EACf,EAAE,EACF,UAAU,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,EAAgB;IACtE,OAAO,eAAe,CACpB;QACE,UAAU,EAAE,cAAc;QAC1B,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,eAAe;QACrB,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,oBAAoB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE;gBAC7H,EAAE,EAAE,EAA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
import { OnCreated, ServerComponentDefinition } from '@norskvideo/norsk-studio/lib/extension/runtime-types';
|
4
|
+
export type UdpTsInputSettings = Pick<SdkSettings, 'interface' | 'timeout' | 'rtpDecapsulate' | 'sourceName' | 'ip' | 'port'> & {
|
5
|
+
id: string;
|
6
|
+
displayName: string;
|
7
|
+
};
|
8
|
+
export default class UdpTsInputDefinition implements ServerComponentDefinition<UdpTsInputSettings, SimpleInputWrapper> {
|
9
|
+
create(norsk: Norsk, cfg: UdpTsInputSettings, cb: OnCreated<SimpleInputWrapper>): Promise<void>;
|
10
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const norsk_sdk_1 = require("@norskvideo/norsk-sdk");
|
4
|
+
const base_nodes_1 = require("@norskvideo/norsk-studio/lib/extension/base-nodes");
|
5
|
+
class UdpTsInputDefinition {
|
6
|
+
async create(norsk, cfg, cb) {
|
7
|
+
const wrapper = new base_nodes_1.SimpleInputWrapper(cfg.id, async () => {
|
8
|
+
const udp = await norsk.input.udpTs({ ...cfg });
|
9
|
+
const align = await norsk.processor.transform.streamAlign({
|
10
|
+
frameRate: { frames: 25, seconds: 1 },
|
11
|
+
sampleRate: 96000,
|
12
|
+
syncAv: true
|
13
|
+
});
|
14
|
+
align.subscribe([{
|
15
|
+
source: udp, sourceSelector: norsk_sdk_1.selectAll
|
16
|
+
}], norsk_sdk_1.requireAV);
|
17
|
+
return align;
|
18
|
+
});
|
19
|
+
await wrapper.initialised;
|
20
|
+
cb(wrapper);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
exports.default = UdpTsInputDefinition;
|
24
|
+
//# sourceMappingURL=runtime.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/input.udp-ts/runtime.ts"],"names":[],"mappings":";;AAAA,qDAAuG;AACvG,kFAAuF;AAOvF,MAAqB,oBAAoB;IACvC,KAAK,CAAC,MAAM,CAAC,KAAY,EAAE,GAAuB,EAAE,EAAiC;QACnF,MAAM,OAAO,GAAG,IAAI,+BAAkB,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,IAAI,EAAE;YAExD,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,EAAE,CAAC,CAAC;YAGhD,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC;gBACxD,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;gBACrC,UAAU,EAAE,KAAK;gBACjB,MAAM,EAAE,IAAI;aACb,CAAC,CAAA;YACF,KAAK,CAAC,SAAS,CAAC,CAAC;oBACf,MAAM,EAAE,GAAG,EAAE,cAAc,EAAE,qBAAS;iBACvC,CAAC,EAAE,qBAAS,CAAC,CAAC;YAEf,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAA;QACF,MAAM,OAAO,CAAC,WAAW,CAAC;QAC1B,EAAE,CAAC,OAAO,CAAC,CAAC;IACd,CAAC;CACF;AArBD,uCAqBC"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import type { VideoTestcardGeneratorSettings } from "./runtime";
|
2
|
+
import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
|
3
|
+
export default function ({ defineComponent, Video, validation: { SourceName }, common: { Resolutions, FrameRates } }: Registration): import("@norskvideo/norsk-studio/lib/extension/client-types").NodeInfo<VideoTestcardGeneratorSettings, object, object, object>;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
function default_1({ defineComponent, Video, validation: { SourceName }, common: { Resolutions, FrameRates } }) {
|
4
|
+
return defineComponent({
|
5
|
+
identifier: 'input.videoTestCard',
|
6
|
+
category: 'input',
|
7
|
+
name: "Video Test Card",
|
8
|
+
subscription: {
|
9
|
+
accepts: undefined,
|
10
|
+
produces: {
|
11
|
+
type: "single-stream",
|
12
|
+
media: Video
|
13
|
+
}
|
14
|
+
},
|
15
|
+
display: (desc) => {
|
16
|
+
return {
|
17
|
+
resolution: desc.config.resolution.width.toString() + "x" + desc.config.resolution.height.toString(),
|
18
|
+
frameRate: desc.config.frameRate.frames.toString() + "/" + desc.config.frameRate.seconds.toString(),
|
19
|
+
pattern: desc.config.pattern
|
20
|
+
};
|
21
|
+
},
|
22
|
+
configForm: {
|
23
|
+
form: {
|
24
|
+
resolution: { help: "The resolution of the test card stream", hint: { type: 'select', options: Resolutions, defaultValue: { width: 1280, height: 720 } } },
|
25
|
+
frameRate: { help: "The frame rate of the test card stream", hint: { type: 'select', options: FrameRates, defaultValue: { frames: 25, seconds: 1 } } },
|
26
|
+
sourceName: { help: "Source name to use for this test card stream", hint: { type: 'text', validation: SourceName, defaultValue: "video" } },
|
27
|
+
pattern: {
|
28
|
+
help: "The pattern on the test card stream", hint: {
|
29
|
+
defaultValue: 'black',
|
30
|
+
type: 'select', options: [
|
31
|
+
{ value: "black", display: "Black" },
|
32
|
+
{ value: "smpte75", display: "SMPTE75" },
|
33
|
+
{ value: "smpte100", display: "SMPTE100" }
|
34
|
+
]
|
35
|
+
}
|
36
|
+
},
|
37
|
+
}
|
38
|
+
}
|
39
|
+
});
|
40
|
+
}
|
41
|
+
exports.default = default_1;
|
42
|
+
//# sourceMappingURL=info.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/input.videoTestCard/info.ts"],"names":[],"mappings":";;AAKA,mBAAwB,EACtB,eAAe,EACf,KAAK,EACL,UAAU,EAAE,EAAE,UAAU,EAAE,EAC1B,MAAM,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,EAAgB;IACnD,OAAO,eAAe,CAAiC;QACrD,UAAU,EAAE,qBAAqB;QACjC,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,iBAAiB;QACvB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ACrB,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE;4BACvB,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE;4BACpC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE;4BACxC,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE;yBAC3C;qBACF;iBACF;aACF;SACF;KACF,CAAC,CAAC;AACL,CAAC;AAzCD,4BAyCC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Norsk, VideoTestcardGeneratorSettings as SdkSettings } from '@norskvideo/norsk-sdk';
|
2
|
+
import { SimpleInputWrapper } from '@norskvideo/norsk-studio/lib/extension/base-nodes';
|
3
|
+
import { OnCreated, ServerComponentDefinition } from '@norskvideo/norsk-studio/lib/extension/runtime-types';
|
4
|
+
export type VideoTestcardGeneratorSettings = Pick<SdkSettings, 'resolution' | 'frameRate' | 'sourceName' | 'pattern'> & {
|
5
|
+
id: string;
|
6
|
+
displayName: string;
|
7
|
+
};
|
8
|
+
export default class VideoTestCardDefinition implements ServerComponentDefinition<VideoTestcardGeneratorSettings, SimpleInputWrapper> {
|
9
|
+
create(norsk: Norsk, cfg: VideoTestcardGeneratorSettings, cb: OnCreated<SimpleInputWrapper>): Promise<void>;
|
10
|
+
}
|
@@ -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 VideoTestCardDefinition {
|
5
|
+
async create(norsk, cfg, cb) {
|
6
|
+
const wrapper = new base_nodes_1.SimpleInputWrapper(cfg.id, async () => {
|
7
|
+
return await norsk.input.videoTestCard({ ...cfg });
|
8
|
+
});
|
9
|
+
await wrapper.initialised;
|
10
|
+
cb(wrapper);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
exports.default = VideoTestCardDefinition;
|
14
|
+
//# sourceMappingURL=runtime.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/input.videoTestCard/runtime.ts"],"names":[],"mappings":";;AACA,kFAAuF;AAUvF,MAAqB,uBAAuB;IAC1C,KAAK,CAAC,MAAM,CAAC,KAAY,EAAE,GAAmC,EAAE,EAAiC;QAC/F,MAAM,OAAO,GAAuB,IAAI,+BAAkB,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,IAAI,EAAE;YAC5E,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,EAAE,CAAC,CAAC;QACrD,CAAC,CAAC,CAAA;QACF,MAAM,OAAO,CAAC,WAAW,CAAC;QAC1B,EAAE,CAAC,OAAO,CAAC,CAAC;IACd,CAAC;CACF;AARD,0CAQC"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import type { AutoCmafS3Destination, AutoCmafSegment } from "./runtime";
|
2
|
+
export declare function S3Destination(destination: AutoCmafS3Destination): import("react/jsx-runtime").JSX.Element;
|
3
|
+
export declare function SegmentConfiguration(cfg: AutoCmafSegment): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SegmentConfiguration = exports.S3Destination = void 0;
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
+
function S3Destination(destination) {
|
6
|
+
return (0, jsx_runtime_1.jsxs)("div", { className: "grid grid-flow-row-dense grid-cols-3 text-sm", children: [(0, jsx_runtime_1.jsx)("div", { className: "col-span-1", children: "Host" }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-2", children: destination.host }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-1", children: "Path" }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-2", children: destination.prefix }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-1", children: "Include Ads" }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-2", children: destination.includeAdInsertions ? 'yes' : 'no' })] });
|
7
|
+
}
|
8
|
+
exports.S3Destination = S3Destination;
|
9
|
+
function SegmentConfiguration(cfg) {
|
10
|
+
return (0, jsx_runtime_1.jsxs)("div", { className: "grid grid-flow-row-dense grid-cols-3 text-sm", children: [(0, jsx_runtime_1.jsx)("div", { className: "col-span-1", children: "Segments" }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-2", children: cfg.defaultSegmentCount == 0 ? "all" : cfg.defaultSegmentCount }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-1", children: "Segment Target" }), (0, jsx_runtime_1.jsxs)("div", { className: "col-span-2", children: [cfg.targetSegmentDuration, "s"] }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-1", children: "Part Target" }), (0, jsx_runtime_1.jsxs)("div", { className: "col-span-2", children: [cfg.targetPartDuration, "s"] }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-1", children: "Retention" }), (0, jsx_runtime_1.jsxs)("div", { className: "col-span-2", children: [cfg.retentionPeriod, "s"] })] });
|
11
|
+
}
|
12
|
+
exports.SegmentConfiguration = SegmentConfiguration;
|
13
|
+
//# sourceMappingURL=form-views.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"form-views.js","sourceRoot":"","sources":["../../src/output.autoCmaf/form-views.tsx"],"names":[],"mappings":";;;;AAEA,SAAgB,aAAa,CAAC,WAAkC;IAC9D,OAAO,iCAAK,SAAS,EAAC,8CAA8C,aAClE,gCAAK,SAAS,EAAC,YAAY,qBAAW,EACtC,gCAAK,SAAS,EAAC,YAAY,YAAE,WAAW,CAAC,IAAI,GAAO,EAEpD,gCAAK,SAAS,EAAC,YAAY,qBAAW,EACtC,gCAAK,SAAS,EAAC,YAAY,YAAE,WAAW,CAAC,MAAM,GAAO,EAEtD,gCAAK,SAAS,EAAC,YAAY,4BAAkB,EAC7C,gCAAK,SAAS,EAAC,YAAY,YAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,GAAO,IAC7E,CAAA;AACT,CAAC;AAXD,sCAWC;AAED,SAAgB,oBAAoB,CAAC,GAAoB;IACvD,OAAO,iCAAK,SAAS,EAAC,8CAA8C,aAClE,gCAAK,SAAS,EAAC,YAAY,yBAAe,EAC1C,gCAAK,SAAS,EAAC,YAAY,YAAE,GAAG,CAAC,mBAAmB,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,mBAAmB,GAAO,EAElG,gCAAK,SAAS,EAAC,YAAY,+BAAqB,EAChD,iCAAK,SAAS,EAAC,YAAY,aAAE,GAAG,CAAC,qBAAqB,SAAQ,EAE9D,gCAAK,SAAS,EAAC,YAAY,4BAAkB,EAC7C,iCAAK,SAAS,EAAC,YAAY,aAAE,GAAG,CAAC,kBAAkB,SAAQ,EAE3D,gCAAK,SAAS,EAAC,YAAY,0BAAgB,EAC3C,iCAAK,SAAS,EAAC,YAAY,aAAE,GAAG,CAAC,eAAe,SAAQ,IACnD,CAAA;AACT,CAAC;AAdD,oDAcC"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
7
|
+
const react_1 = require("react");
|
8
|
+
const hls_js_1 = __importDefault(require("hls.js"));
|
9
|
+
function FullscreenView({ state, config }) {
|
10
|
+
const url = state.url;
|
11
|
+
const id = config.id;
|
12
|
+
(0, react_1.useEffect)(() => {
|
13
|
+
if (!url)
|
14
|
+
return;
|
15
|
+
const element = document.getElementById(`${id}-video`);
|
16
|
+
if (hls_js_1.default.isSupported()) {
|
17
|
+
const hls = new hls_js_1.default();
|
18
|
+
hls.loadSource(url);
|
19
|
+
hls.attachMedia(element);
|
20
|
+
}
|
21
|
+
else if (element.canPlayType('application/vnd.apple.mpegurl')) {
|
22
|
+
element.src = url;
|
23
|
+
}
|
24
|
+
}, [state.url]);
|
25
|
+
if (!url)
|
26
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "..." });
|
27
|
+
{ }
|
28
|
+
return (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("video", { controls: true, autoPlay: true, muted: true, id: `${id}-video` }) });
|
29
|
+
}
|
30
|
+
exports.default = FullscreenView;
|
31
|
+
//# sourceMappingURL=fullscreen.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fullscreen.js","sourceRoot":"","sources":["../../src/output.autoCmaf/fullscreen.tsx"],"names":[],"mappings":";;;;;;AAAA,iCAAkC;AAElC,oDAAyB;AAEzB,SAAS,cAAc,CAAC,EAAE,KAAK,EAAE,MAAM,EAAsD;IAC3F,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;IACtB,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;IACrB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,GAAG;YAAE,OAAO;QACjB,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,GAAG,EAAE,QAAQ,CAAqB,CAAC;QAE3E,IAAI,gBAAG,CAAC,WAAW,EAAE,EAAE,CAAC;YACtB,MAAM,GAAG,GAAG,IAAI,gBAAG,EAAE,CAAC;YACtB,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACpB,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC3B,CAAC;aACI,IAAI,OAAO,CAAC,WAAW,CAAC,+BAA+B,CAAC,EAAE,CAAC;YAC9D,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC;QACpB,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAEhB,IAAI,CAAC,GAAG;QAAE,OAAO,mEAAQ,CAAA;IAEzB,CAAC,CAA8D,CAAC;IAChE,OAAO,0CACL,kCAAO,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,GAAU,GAC1E,CAAA;AACT,CAAC;AAED,kBAAe,cAAc,CAAC"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
|
2
|
+
import type { AutoCmafConfig, CmafOutputEvent, CmafOutputState } from "./runtime";
|
3
|
+
export default function ({ defineComponent, All, validation: { Z, Hostname }, }: Registration): import("@norskvideo/norsk-studio/lib/extension/client-types").NodeInfo<AutoCmafConfig, CmafOutputState, object, CmafOutputEvent>;
|
@@ -0,0 +1,197 @@
|
|
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
|
+
function default_1({ defineComponent, All, validation: { Z, Hostname }, }) {
|
31
|
+
const SummaryView = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./summary'))));
|
32
|
+
const FullscreenView = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./fullscreen'))));
|
33
|
+
const SegmentConfiguration = react_1.default.lazy(async () => {
|
34
|
+
const views = await Promise.resolve().then(() => __importStar(require('./form-views')));
|
35
|
+
return { default: views.SegmentConfiguration };
|
36
|
+
});
|
37
|
+
const S3Destination = react_1.default.lazy(async () => {
|
38
|
+
const views = await Promise.resolve().then(() => __importStar(require('./form-views')));
|
39
|
+
return { default: views.S3Destination };
|
40
|
+
});
|
41
|
+
return defineComponent({
|
42
|
+
identifier: 'output.autoCmaf',
|
43
|
+
category: 'output',
|
44
|
+
name: "Auto CMAF",
|
45
|
+
subscription: {
|
46
|
+
accepts: {
|
47
|
+
type: "multi-stream",
|
48
|
+
media: All
|
49
|
+
}
|
50
|
+
},
|
51
|
+
extraValidation: (ctx) => {
|
52
|
+
const audioStreams = ctx.subscriptions.filter((s) => s.streams.select.includes("audio"));
|
53
|
+
if (audioStreams.length == 0) {
|
54
|
+
ctx.addError("AutoCMAF requires at least one audio stream");
|
55
|
+
}
|
56
|
+
},
|
57
|
+
display: (desc) => {
|
58
|
+
return {
|
59
|
+
name: desc.config.name
|
60
|
+
};
|
61
|
+
},
|
62
|
+
runtime: {
|
63
|
+
initialState: () => ({}),
|
64
|
+
handleEvent(ev, state) {
|
65
|
+
const evType = ev.type;
|
66
|
+
switch (evType) {
|
67
|
+
case 'url-published':
|
68
|
+
state.url = ev.url;
|
69
|
+
break;
|
70
|
+
default:
|
71
|
+
assertUnreachable(evType);
|
72
|
+
}
|
73
|
+
return { ...state };
|
74
|
+
},
|
75
|
+
summary: SummaryView,
|
76
|
+
fullscreen: FullscreenView
|
77
|
+
},
|
78
|
+
configForm: {
|
79
|
+
form: {
|
80
|
+
name: {
|
81
|
+
help: "The name of the multivariant/dash playlist",
|
82
|
+
hint: {
|
83
|
+
type: 'text', defaultValue: "default", validation: Z.string().min(5).max(15)
|
84
|
+
}
|
85
|
+
},
|
86
|
+
sessionId: {
|
87
|
+
help: "Generate a unique session id per run to avoid cache collisions",
|
88
|
+
hint: {
|
89
|
+
type: 'boolean',
|
90
|
+
defaultValue: false
|
91
|
+
}
|
92
|
+
},
|
93
|
+
segments: {
|
94
|
+
help: "Detailed segment configuration",
|
95
|
+
hint: {
|
96
|
+
type: 'form-item',
|
97
|
+
view: SegmentConfiguration,
|
98
|
+
form: {
|
99
|
+
retentionPeriod: {
|
100
|
+
help: "How many seconds of data to retain for playback in media playlists",
|
101
|
+
hint: {
|
102
|
+
type: "numeric",
|
103
|
+
defaultValue: 60,
|
104
|
+
validation: Z.number().min(10).max(3600)
|
105
|
+
}
|
106
|
+
},
|
107
|
+
defaultSegmentCount: {
|
108
|
+
help: "How many segments to display in a default playlist (0 means show all)",
|
109
|
+
hint: {
|
110
|
+
type: "numeric",
|
111
|
+
defaultValue: 0,
|
112
|
+
validation: Z.number()
|
113
|
+
}
|
114
|
+
},
|
115
|
+
targetSegmentDuration: {
|
116
|
+
help: "How many seconds should be in each segment",
|
117
|
+
hint: {
|
118
|
+
type: "numeric",
|
119
|
+
defaultValue: 4.0,
|
120
|
+
validation: Z.number().min(1).max(10)
|
121
|
+
}
|
122
|
+
},
|
123
|
+
targetPartDuration: {
|
124
|
+
help: "For low latency playlists, what size parts should be generated in seconds",
|
125
|
+
hint: {
|
126
|
+
type: "numeric",
|
127
|
+
defaultValue: 1.0,
|
128
|
+
validation: Z.number().min(0.2).max(10),
|
129
|
+
global: {
|
130
|
+
constraint: 'custom',
|
131
|
+
message: "Part duration must be less than segment duration",
|
132
|
+
validate: (cfg) => {
|
133
|
+
if (cfg.targetPartDuration < cfg.targetSegmentDuration)
|
134
|
+
return true;
|
135
|
+
return false;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
},
|
139
|
+
},
|
140
|
+
holdBackSegments: {
|
141
|
+
help: "How many segments back should a player start",
|
142
|
+
hint: {
|
143
|
+
type: "numeric",
|
144
|
+
validation: Z.number().min(3).max(10).int().optional(),
|
145
|
+
},
|
146
|
+
},
|
147
|
+
holdBackParts: {
|
148
|
+
help: "How many parts back should a player start",
|
149
|
+
hint: {
|
150
|
+
type: "numeric",
|
151
|
+
validation: Z.number().min(3).max(10).int().optional(),
|
152
|
+
},
|
153
|
+
},
|
154
|
+
}
|
155
|
+
}
|
156
|
+
},
|
157
|
+
s3Destinations: {
|
158
|
+
help: "S3 destinations to publish to",
|
159
|
+
hint: {
|
160
|
+
type: "form-list",
|
161
|
+
defaultValue: [],
|
162
|
+
view: S3Destination,
|
163
|
+
form: {
|
164
|
+
host: {
|
165
|
+
help: "The hostname of the s3 bucket to push to",
|
166
|
+
hint: {
|
167
|
+
type: "text",
|
168
|
+
defaultValue: "",
|
169
|
+
validation: Hostname
|
170
|
+
}
|
171
|
+
},
|
172
|
+
prefix: {
|
173
|
+
help: "The sub directory of the bucket to place playlists + segments into",
|
174
|
+
hint: {
|
175
|
+
type: "text",
|
176
|
+
defaultValue: ""
|
177
|
+
}
|
178
|
+
},
|
179
|
+
includeAdInsertions: {
|
180
|
+
help: "If ad markers are inserted, include them in this publication",
|
181
|
+
hint: {
|
182
|
+
type: "boolean",
|
183
|
+
defaultValue: false
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
188
|
+
},
|
189
|
+
}
|
190
|
+
}
|
191
|
+
});
|
192
|
+
}
|
193
|
+
exports.default = default_1;
|
194
|
+
function assertUnreachable(_) {
|
195
|
+
throw new Error("Didn't expect to get here");
|
196
|
+
}
|
197
|
+
//# sourceMappingURL=info.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/output.autoCmaf/info.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kDAA0B;AAS1B,mBAAwB,EACtB,eAAe,EACf,GAAG,EACH,UAAU,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,GACd;IACb,MAAM,WAAW,GAAG,eAAK,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,mDAAQ,WAAW,GAAC,CAAC,CAAC;IAChE,MAAM,cAAc,GAAG,eAAK,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,mDAAQ,cAAc,GAAC,CAAC,CAAC;IAEtE,MAAM,oBAAoB,GAAG,eAAK,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE;QACjD,MAAM,KAAK,GAAG,wDAAa,cAAc,GAAC,CAAA;QAC1C,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,oBAAoB,EAAE,CAAA;IAChD,CAAC,CAAC,CAAC;IACH,MAAM,aAAa,GAAG,eAAK,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE;QAC1C,MAAM,KAAK,GAAG,wDAAa,cAAc,GAAC,CAAA;QAC1C,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,aAAa,EAAE,CAAA;IACzC,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAsE;QAC1F,UAAU,EAAE,iBAAiB;QAC7B,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,WAAW;QACjB,YAAY,EAAE;YAIZ,OAAO,EAAE;gBACP,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,GAAG;aACX;SACF;QACD,eAAe,EAAE,CAAC,GAAG,EAAE,EAAE;YACvB,MAAM,YAAY,GAAG,GAAG,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,E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66 @@
|
|
1
|
+
import { AdMarker, AutoProcessorMediaNode, CmafDestinationSettings, CmafMultiVariantOutputNode, Norsk, StreamKey, SubscriptionError } from '@norskvideo/norsk-sdk';
|
2
|
+
import { CreatedMediaNode, OnCreated, ServerComponentDefinition, StudioNodeSubscriptionSource, StudioRuntime } from '@norskvideo/norsk-studio/lib/extension/runtime-types';
|
3
|
+
import { CustomSinkNode } from '@norskvideo/norsk-studio/lib/extension/base-nodes';
|
4
|
+
import { ReportBuilder } from '@norskvideo/norsk-studio/lib/runtime/execution';
|
5
|
+
export type AutoCmafS3Destination = {
|
6
|
+
host: string;
|
7
|
+
prefix: string;
|
8
|
+
includeAdInsertions: boolean;
|
9
|
+
};
|
10
|
+
export type AutoCmafConfig = {
|
11
|
+
id: string;
|
12
|
+
displayName: string;
|
13
|
+
name: string;
|
14
|
+
sessionId: boolean;
|
15
|
+
segments: AutoCmafSegment;
|
16
|
+
s3Destinations: AutoCmafS3Destination[];
|
17
|
+
};
|
18
|
+
export type AutoCmafSegment = {
|
19
|
+
retentionPeriod: number;
|
20
|
+
defaultSegmentCount?: number;
|
21
|
+
targetSegmentDuration: number;
|
22
|
+
targetPartDuration: number;
|
23
|
+
holdBackSegments?: number;
|
24
|
+
holdBackParts?: number;
|
25
|
+
};
|
26
|
+
export type CmafOutputState = {
|
27
|
+
url?: string;
|
28
|
+
};
|
29
|
+
export type CmafOutputEvent = {
|
30
|
+
type: 'url-published';
|
31
|
+
url: string;
|
32
|
+
};
|
33
|
+
export type CmafOutputCommand = object;
|
34
|
+
export default class AutoCmafDefinition implements ServerComponentDefinition<AutoCmafConfig, AutoCmaf, CmafOutputState, CmafOutputCommand, CmafOutputEvent> {
|
35
|
+
create(norsk: Norsk, cfg: AutoCmafConfig, cb: OnCreated<AutoCmaf>, { updates, report }: StudioRuntime<CmafOutputState, CmafOutputEvent>): Promise<void>;
|
36
|
+
}
|
37
|
+
export declare class AutoCmaf extends CustomSinkNode {
|
38
|
+
norsk: Norsk;
|
39
|
+
cfg: AutoCmafConfig;
|
40
|
+
currentSources: Map<CreatedMediaNode, StudioNodeSubscriptionSource>;
|
41
|
+
currentMedia: {
|
42
|
+
node?: AutoProcessorMediaNode<string>;
|
43
|
+
key: StreamKey;
|
44
|
+
scheduleAd: (marker: AdMarker, destinationId: string) => void;
|
45
|
+
}[];
|
46
|
+
mv?: CmafMultiVariantOutputNode;
|
47
|
+
defaultProgramNumber: number;
|
48
|
+
defaultSourceName: string;
|
49
|
+
currentMultiVariants: {
|
50
|
+
node?: CmafMultiVariantOutputNode;
|
51
|
+
programNumber: number;
|
52
|
+
sourceName: string;
|
53
|
+
}[];
|
54
|
+
pendingResponses: ((error?: SubscriptionError) => void)[];
|
55
|
+
initialised: Promise<void>;
|
56
|
+
sessionId?: string;
|
57
|
+
destinations: CmafDestinationSettings[];
|
58
|
+
advertDestinations: string[];
|
59
|
+
report: ReportBuilder;
|
60
|
+
static create(norsk: Norsk, cfg: AutoCmafConfig, report: ReportBuilder): Promise<AutoCmaf>;
|
61
|
+
constructor(cfg: AutoCmafConfig, norsk: Norsk, report: ReportBuilder);
|
62
|
+
initialise(): Promise<void>;
|
63
|
+
sourceContextChange(responseCallback: (error?: SubscriptionError) => void): Promise<boolean>;
|
64
|
+
popContextStack(): Promise<void>;
|
65
|
+
subscribe(subs: StudioNodeSubscriptionSource[]): void;
|
66
|
+
}
|