@norskvideo/norsk-studio-alpha 1.27.0-2025-09-05-0dc8cc75 → 1.27.0-2025-09-07-cf101e3f

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 CHANGED
@@ -22734,38 +22734,6 @@ var channelLayouts = () => {
22734
22734
  return ch;
22735
22735
  };
22736
22736
 
22737
- // build/input.mp4file/info.js
22738
- function info_default2({ defineComponent, singleAvStreamMapping, singleAvStreamMappingForm, mappingsToStreams }) {
22739
- return defineComponent({
22740
- identifier: "input.fileMp4",
22741
- category: "input",
22742
- name: "MP4 File ingest",
22743
- description: "This component reads from a local MP4 file.",
22744
- subscription: {
22745
- accepts: void 0,
22746
- produces: {
22747
- type: "dynamic-streams",
22748
- streams: (cfg) => mappingsToStreams(cfg.streamMappings ?? singleAvStreamMapping(cfg))
22749
- }
22750
- },
22751
- display: (desc) => {
22752
- return {
22753
- fileName: desc.config.fileName,
22754
- loop: desc.config.loop.toString(),
22755
- startTime: desc.config.startTime === void 0 ? "0" : desc.config.startTime.toString()
22756
- };
22757
- },
22758
- configForm: {
22759
- form: {
22760
- fileName: { help: "The local filename", hint: { type: "text" } },
22761
- loop: { help: "Whether to loop", hint: { type: "boolean", defaultValue: false } },
22762
- startTime: { help: "The time (in seconds) to start playing from", hint: { type: "numeric", defaultValue: 0 } },
22763
- streamMappings: singleAvStreamMappingForm
22764
- }
22765
- }
22766
- });
22767
- }
22768
-
22769
22737
  // build/input.ndi/source-selection.js
22770
22738
  var import_jsx_runtime = __toESM(require_jsx_runtime());
22771
22739
  var import_react10 = __toESM(require_react());
@@ -28276,7 +28244,7 @@ function SourceSelection(props) {
28276
28244
  var source_selection_default = SourceSelection;
28277
28245
 
28278
28246
  // build/input.ndi/info.js
28279
- function info_default3({ defineComponent, singleAvStreamMapping, singleAvStreamMappingForm, mappingsToStreams, validation: { Z } }) {
28247
+ function info_default2({ defineComponent, singleAvStreamMapping, singleAvStreamMappingForm, mappingsToStreams, validation: { Z } }) {
28280
28248
  const validation = Z.object({
28281
28249
  name: Z.string().trim().min(2),
28282
28250
  url: Z.string().trim().min(2),
@@ -28336,7 +28304,7 @@ function InlineView({ state }) {
28336
28304
  var inline_view_default = InlineView;
28337
28305
 
28338
28306
  // build/output.ndi/info.js
28339
- function info_default4(R) {
28307
+ function info_default3(R) {
28340
28308
  const { defineComponent, All } = R;
28341
28309
  return defineComponent({
28342
28310
  identifier: "output.ndi",
@@ -28394,7 +28362,7 @@ function info_default4(R) {
28394
28362
 
28395
28363
  // build/output.recorder/info.js
28396
28364
  var import_util2 = __toESM(require_util());
28397
- function info_default5(R) {
28365
+ function info_default4(R) {
28398
28366
  const { defineComponent } = R;
28399
28367
  return defineComponent({
28400
28368
  identifier: "output.recorder",
@@ -28542,7 +28510,7 @@ function SummaryView({ state, config, sendCommand }) {
28542
28510
  var summary_default = SummaryView;
28543
28511
 
28544
28512
  // build/processor.actionReplay/info.js
28545
- function info_default6({ defineComponent, assertUnreachable: assertUnreachable6 }) {
28513
+ function info_default5({ defineComponent, assertUnreachable: assertUnreachable6 }) {
28546
28514
  return defineComponent({
28547
28515
  identifier: "processor.actionReplay",
28548
28516
  category: "processor",
@@ -28670,7 +28638,7 @@ function SummaryView2({ state, sendCommand }) {
28670
28638
  var summary_view_default = SummaryView2;
28671
28639
 
28672
28640
  // build/processor.audioLevel/info.js
28673
- function info_default7({ defineComponent, validation: { Z } }) {
28641
+ function info_default6({ defineComponent, validation: { Z } }) {
28674
28642
  return defineComponent({
28675
28643
  identifier: "processor.audioLevel",
28676
28644
  category: "processor",
@@ -28727,7 +28695,7 @@ function assertUnreachable3(_) {
28727
28695
  }
28728
28696
 
28729
28697
  // build/processor.delayAll/info.js
28730
- function info_default8({ defineComponent }) {
28698
+ function info_default7({ defineComponent }) {
28731
28699
  return defineComponent({
28732
28700
  identifier: "processor.delayAll",
28733
28701
  category: "processor",
@@ -28770,7 +28738,7 @@ function info_default8({ defineComponent }) {
28770
28738
  }
28771
28739
 
28772
28740
  // build/processor.gemini-poc/info.js
28773
- function info_default9({ defineComponent }) {
28741
+ function info_default8({ defineComponent }) {
28774
28742
  return defineComponent({
28775
28743
  identifier: "processor.gemini-poc",
28776
28744
  category: "processor",
@@ -28834,7 +28802,7 @@ function info_default9({ defineComponent }) {
28834
28802
 
28835
28803
  // build/processor.mixMinus/info.js
28836
28804
  var import_FaKey = __toESM(require_FaKey());
28837
- function info_default10({ defineComponent }) {
28805
+ function info_default9({ defineComponent }) {
28838
28806
  return defineComponent({
28839
28807
  identifier: "processor.mixMinus",
28840
28808
  category: "processor",
@@ -28909,7 +28877,7 @@ function InlineView3({ state, config, sendCommand }) {
28909
28877
  var summary_default2 = InlineView3;
28910
28878
 
28911
28879
  // build/processor.monetise/info.js
28912
- function info_default11(R) {
28880
+ function info_default10(R) {
28913
28881
  const { defineComponent } = R;
28914
28882
  return defineComponent({
28915
28883
  identifier: "processor.scte35inject",
@@ -28976,7 +28944,7 @@ function assertUnreachable4(_) {
28976
28944
  }
28977
28945
 
28978
28946
  // build/processor.whisper-transcribe/info.js
28979
- function info_default12({ defineComponent, validation: { Z } }) {
28947
+ function info_default11({ defineComponent, validation: { Z } }) {
28980
28948
  return defineComponent({
28981
28949
  identifier: "processor.whisper-transcribe",
28982
28950
  category: "processor",
@@ -43414,7 +43382,7 @@ function InlineView4({ state, config: _2 }) {
43414
43382
  var inline_view_default3 = InlineView4;
43415
43383
 
43416
43384
  // build/util.timestamps/info.js
43417
- function info_default13(R) {
43385
+ function info_default12(R) {
43418
43386
  const { defineComponent, All } = R;
43419
43387
  return defineComponent({
43420
43388
  identifier: "util.timestamps",
@@ -43493,7 +43461,6 @@ AllComponents.push((r) => info_default9(r));
43493
43461
  AllComponents.push((r) => info_default10(r));
43494
43462
  AllComponents.push((r) => info_default11(r));
43495
43463
  AllComponents.push((r) => info_default12(r));
43496
- AllComponents.push((r) => info_default13(r));
43497
43464
  export {
43498
43465
  getNodeInfo as default
43499
43466
  };
package/lib/info.js CHANGED
@@ -19,28 +19,26 @@ function getNodeInfo(r, type) {
19
19
  }
20
20
  const info_1 = __importDefault(require("./input.decklink/info"));
21
21
  AllComponents.push((r) => (0, info_1.default)(r));
22
- const info_2 = __importDefault(require("./input.mp4file/info"));
22
+ const info_2 = __importDefault(require("./input.ndi/info"));
23
23
  AllComponents.push((r) => (0, info_2.default)(r));
24
- const info_3 = __importDefault(require("./input.ndi/info"));
24
+ const info_3 = __importDefault(require("./output.ndi/info"));
25
25
  AllComponents.push((r) => (0, info_3.default)(r));
26
- const info_4 = __importDefault(require("./output.ndi/info"));
26
+ const info_4 = __importDefault(require("./output.recorder/info"));
27
27
  AllComponents.push((r) => (0, info_4.default)(r));
28
- const info_5 = __importDefault(require("./output.recorder/info"));
28
+ const info_5 = __importDefault(require("./processor.actionReplay/info"));
29
29
  AllComponents.push((r) => (0, info_5.default)(r));
30
- const info_6 = __importDefault(require("./processor.actionReplay/info"));
30
+ const info_6 = __importDefault(require("./processor.audioLevel/info"));
31
31
  AllComponents.push((r) => (0, info_6.default)(r));
32
- const info_7 = __importDefault(require("./processor.audioLevel/info"));
32
+ const info_7 = __importDefault(require("./processor.delayAll/info"));
33
33
  AllComponents.push((r) => (0, info_7.default)(r));
34
- const info_8 = __importDefault(require("./processor.delayAll/info"));
34
+ const info_8 = __importDefault(require("./processor.gemini-poc/info"));
35
35
  AllComponents.push((r) => (0, info_8.default)(r));
36
- const info_9 = __importDefault(require("./processor.gemini-poc/info"));
36
+ const info_9 = __importDefault(require("./processor.mixMinus/info"));
37
37
  AllComponents.push((r) => (0, info_9.default)(r));
38
- const info_10 = __importDefault(require("./processor.mixMinus/info"));
38
+ const info_10 = __importDefault(require("./processor.monetise/info"));
39
39
  AllComponents.push((r) => (0, info_10.default)(r));
40
- const info_11 = __importDefault(require("./processor.monetise/info"));
40
+ const info_11 = __importDefault(require("./processor.whisper-transcribe/info"));
41
41
  AllComponents.push((r) => (0, info_11.default)(r));
42
- const info_12 = __importDefault(require("./processor.whisper-transcribe/info"));
42
+ const info_12 = __importDefault(require("./util.timestamps/info"));
43
43
  AllComponents.push((r) => (0, info_12.default)(r));
44
- const info_13 = __importDefault(require("./util.timestamps/info"));
45
- AllComponents.push((r) => (0, info_13.default)(r));
46
44
  //# sourceMappingURL=info.js.map
package/lib/info.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"info.js","sourceRoot":"","sources":["../src/info.ts"],"names":[],"mappings":";;;;;AAYA,8BASC;AAdD,MAAM,qBAAqB,GAA4C,EAAE,CAAC;AAC1E,IAAI,WAAW,GAAG,KAAK,CAAC;AAExB,MAAM,aAAa,GAAkD,EAAE,CAAC;AAExE,SAAwB,WAAW,CAAC,CAAe,EAAE,IAAY;IAC/D,IAAG,CAAC,WAAW,EAAE,CAAC;QAChB,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAC1B,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YACf,qBAAqB,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAA;QACF,WAAW,GAAG,IAAI,CAAC;IACrB,CAAC;IACD,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;AACrC,CAAC;AAED,iEAAmD;AACnD,aAAa,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,cAAc,EAAC,CAAC,CAAoC,CAAC,CAAC;AAC9F,gEAAiD;AACjD,aAAa,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,cAAa,EAAC,CAAC,CAAoC,CAAC,CAAC;AAC7F,4DAAyC;AACzC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,cAAS,EAAC,CAAC,CAAoC,CAAC,CAAC;AACzF,6DAA2C;AAC3C,aAAa,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,cAAU,E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AAC,IAAA,cAAkB,EAAC,CAAC,CAAoC,CAAC,CAAC;AAClG,uEAA+D;AAC/D,aAAa,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,cAAoB,EAAC,CAAC,CAAoC,CAAC,CAAC;AACpG,qEAA2D;AAC3D,aAAa,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,cAAkB,EAAC,CAAC,CAAoC,CAAC,CAAC;AAClG,sEAA2D;AAC3D,aAAa,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,eAAkB,EAAC,CAAC,CAAoC,CAAC,CAAC;AAClG,gFAA+E;AAC/E,aAAa,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,eAA4B,EAAC,CAAC,CAAoC,CAAC,CAAC;AAC5G,mEAAqD;AACrD,aAAa,CAAC,IAAI,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,IAAA,eAAe,EAAC,CAAC,CAAoC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/norsk-studio-alpha",
3
- "version": "1.27.0-2025-09-05-0dc8cc75",
3
+ "version": "1.27.0-2025-09-07-cf101e3f",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "clean": "rm -rf lib client build && make clean",
@@ -23,9 +23,9 @@
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
25
  "@apidevtools/json-schema-ref-parser": "^12.0.1",
26
- "@norskvideo/norsk-sdk": "^1.0.402-2025-09-05-a170d597",
27
- "@norskvideo/norsk-studio": "1.27.0-2025-09-05-0dc8cc75",
28
- "@norskvideo/norsk-studio-built-ins": "1.27.0-2025-09-05-0dc8cc75",
26
+ "@norskvideo/norsk-sdk": "^1.0.402-2025-09-07-0b83f9cf",
27
+ "@norskvideo/norsk-studio": "1.27.0-2025-09-07-cf101e3f",
28
+ "@norskvideo/norsk-studio-built-ins": "1.27.0-2025-09-07-cf101e3f",
29
29
  "@norskvideo/webrtc-client": "^0.1.2",
30
30
  "@react-icons/all-files": "^4.1.0",
31
31
  "chart.js": "^4.4.2",
@@ -1,3 +0,0 @@
1
- import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
2
- import type { FileMp4InputSettings } from "./runtime";
3
- export default function ({ defineComponent, singleAvStreamMapping, singleAvStreamMappingForm, mappingsToStreams, }: Registration): import("@norskvideo/norsk-studio/lib/extension/client-types").NodeInfo<FileMp4InputSettings, object, object, object>;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = default_1;
4
- function default_1({ defineComponent, singleAvStreamMapping, singleAvStreamMappingForm, mappingsToStreams, }) {
5
- return defineComponent({
6
- identifier: 'input.fileMp4',
7
- category: 'input',
8
- name: "MP4 File ingest",
9
- description: "This component reads from a local MP4 file.",
10
- subscription: {
11
- accepts: undefined,
12
- produces: {
13
- type: "dynamic-streams",
14
- streams: (cfg) => mappingsToStreams(cfg.streamMappings ?? singleAvStreamMapping(cfg))
15
- }
16
- },
17
- display: (desc) => {
18
- return {
19
- fileName: desc.config.fileName,
20
- loop: desc.config.loop.toString(),
21
- startTime: desc.config.startTime === undefined ? "0" : desc.config.startTime.toString(),
22
- };
23
- },
24
- configForm: {
25
- form: {
26
- fileName: { help: "The local filename", hint: { type: 'text' } },
27
- loop: { help: "Whether to loop", hint: { type: "boolean", defaultValue: false } },
28
- startTime: { help: "The time (in seconds) to start playing from", hint: { type: 'numeric', defaultValue: 0 } },
29
- streamMappings: singleAvStreamMappingForm
30
- }
31
- }
32
- });
33
- }
34
- //# sourceMappingURL=info.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/input.mp4file/info.ts"],"names":[],"mappings":";;AAGA,4BAmCC;AAnCD,mBAAwB,EACtB,eAAe,EACf,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,GACJ;IACb,OAAO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from '@norskvideo/norsk-studio/lib/extension/base-nodes';
3
- import { StreamMappingConfiguration } from '@norskvideo/norsk-studio/lib/extension/client-types';
4
- import { OnCreated, ServerComponentDefinition, ServerComponentSchemas } from '@norskvideo/norsk-studio/lib/extension/runtime-types';
5
- import type { components } from './types';
6
- export type FileMp4InputSettings = components['schemas']['Config'] & Pick<SdkSettings, 'fileName'> & {
7
- loop: boolean;
8
- startTime?: number;
9
- streamMappings?: StreamMappingConfiguration;
10
- };
11
- export default class FileMp4InputDefinition implements ServerComponentDefinition<FileMp4InputSettings, SimpleInputWrapper> {
12
- create(norsk: Norsk, cfg: FileMp4InputSettings, cb: OnCreated<SimpleInputWrapper>): Promise<void>;
13
- schemas(): Promise<ServerComponentSchemas>;
14
- }
@@ -1,33 +0,0 @@
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 base_nodes_1 = require("@norskvideo/norsk-studio/lib/extension/base-nodes");
7
- const schemas_1 = require("../shared/schemas");
8
- const path_1 = __importDefault(require("path"));
9
- class FileMp4InputDefinition {
10
- async create(norsk, cfg, cb) {
11
- const wrapper = new base_nodes_1.SimpleInputWrapper(cfg.id, async () => {
12
- const input = await norsk.input.fileMp4({
13
- sourceName: `filemp4-${cfg.id}`,
14
- start: "paused",
15
- ...cfg
16
- });
17
- if (cfg.startTime !== undefined) {
18
- input.seek(cfg.startTime * 1000);
19
- }
20
- input.play();
21
- return input;
22
- });
23
- await wrapper.initialised;
24
- cb(wrapper);
25
- }
26
- async schemas() {
27
- return (0, schemas_1.schemaFromTypes)(path_1.default.join(__dirname, 'types.yaml'), {
28
- config: 'Config'
29
- });
30
- }
31
- }
32
- exports.default = FileMp4InputDefinition;
33
- //# sourceMappingURL=runtime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/input.mp4file/runtime.ts"],"names":[],"mappings":";;;;;AACA,kFAAuF;AAGvF,+CAAoD;AACpD,gDAAwB;AASxB,MAAqB,sBAAsB;IACzC,KAAK,CAAC,MAAM,CAAC,KAAY,EAAE,GAAyB,EAAE,EAAiC;QACrF,MAAM,OAAO,GAAG,IAAI,+BAAkB,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,IAAI,EAAE;YACxD,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;gBACtC,UAAU,EAAE,WAAW,GAAG,CAAC,EAAE,EAAE;gBAC/B,KAAK,EAAE,QAAQ;gBACf,GAAG,GAAG;aACP,CAAC,CAAC;YAEH,IAAI,GAAG,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;gBAChC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;YACnC,CAAC;YACD,KAAK,CAAC,IAAI,EAAE,CAAC;YACb,OAAO,KAAK,CAAC;QACf,CAAC,CACA,CAAA;QACD,MAAM,OAAO,CAAC,WAAW,CAAC;QAC1B,EAAE,CAAC,OAAO,CAAC,CAAC;IACd,CAAC;IAED,KAAK,CAAC,OAAO;QACX,OAAO,IAAA,yBAAe,EAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE;YACzD,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAC;IACL,CAAC;CACF;AAzBD,yCAyBC"}
@@ -1,23 +0,0 @@
1
- export type paths = Record<string, never>;
2
- export type webhooks = Record<string, never>;
3
- export interface components {
4
- schemas: {
5
- Config: {
6
- id: string;
7
- displayName: string;
8
- fileName: string;
9
- loop: boolean;
10
- startTime?: number;
11
- streamMappings?: {
12
- [key: string]: unknown;
13
- };
14
- };
15
- };
16
- responses: never;
17
- parameters: never;
18
- requestBodies: never;
19
- headers: never;
20
- pathItems: never;
21
- }
22
- export type $defs = Record<string, never>;
23
- export type operations = Record<string, never>;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/input.mp4file/types.ts"],"names":[],"mappings":""}
@@ -1,30 +0,0 @@
1
- openapi: 3.0.0
2
- info:
3
- title: MP4 File Input
4
- version: 1.0.0
5
-
6
- paths: {}
7
-
8
- components:
9
- schemas:
10
- Config:
11
- type: object
12
- required:
13
- - id
14
- - displayName
15
- - fileName
16
- - loop
17
- properties:
18
- id:
19
- type: string
20
- displayName:
21
- type: string
22
- fileName:
23
- type: string
24
- loop:
25
- type: boolean
26
- startTime:
27
- type: number
28
- streamMappings:
29
- type: object
30
- additionalProperties: true