@norskvideo/norsk-studio-alpha 1.27.0-2025-09-07-cf101e3f → 1.27.0-2025-09-08-fdd138b9
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 +1986 -30148
- package/client/style.css +0 -92
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/info.js +6 -18
- package/lib/info.js.map +1 -1
- package/package.json +4 -4
- package/lib/input.decklink/info.d.ts +0 -3
- package/lib/input.decklink/info.js +0 -51
- package/lib/input.decklink/info.js.map +0 -1
- package/lib/input.decklink/runtime.d.ts +0 -12
- package/lib/input.decklink/runtime.js +0 -22
- package/lib/input.decklink/runtime.js.map +0 -1
- package/lib/input.decklink/types.d.ts +0 -23
- package/lib/input.decklink/types.js +0 -3
- package/lib/input.decklink/types.js.map +0 -1
- package/lib/input.decklink/types.yaml +0 -32
- package/lib/input.ndi/info.d.ts +0 -3
- package/lib/input.ndi/info.js +0 -52
- package/lib/input.ndi/info.js.map +0 -1
- package/lib/input.ndi/runtime.d.ts +0 -24
- package/lib/input.ndi/runtime.js +0 -60
- package/lib/input.ndi/runtime.js.map +0 -1
- package/lib/input.ndi/source-selection.d.ts +0 -10
- package/lib/input.ndi/source-selection.js +0 -84
- package/lib/input.ndi/source-selection.js.map +0 -1
- package/lib/input.ndi/types.d.ts +0 -52
- package/lib/input.ndi/types.js +0 -3
- package/lib/input.ndi/types.js.map +0 -1
- package/lib/input.ndi/types.yaml +0 -37
- package/lib/output.ndi/info.d.ts +0 -16
- package/lib/output.ndi/info.js +0 -63
- package/lib/output.ndi/info.js.map +0 -1
- package/lib/output.ndi/inline-view.d.ts +0 -6
- package/lib/output.ndi/inline-view.js +0 -12
- package/lib/output.ndi/inline-view.js.map +0 -1
- package/lib/output.ndi/runtime.d.ts +0 -14
- package/lib/output.ndi/runtime.js +0 -35
- package/lib/output.ndi/runtime.js.map +0 -1
- package/lib/output.ndi/types.d.ts +0 -56
- package/lib/output.ndi/types.js +0 -3
- package/lib/output.ndi/types.js.map +0 -1
- package/lib/output.ndi/types.source.yaml +0 -72
- package/lib/output.ndi/types.yaml +0 -77
- package/lib/processor.gemini-poc/info.d.ts +0 -8
- package/lib/processor.gemini-poc/info.js +0 -59
- package/lib/processor.gemini-poc/info.js.map +0 -1
- package/lib/processor.gemini-poc/runtime.d.ts +0 -38
- package/lib/processor.gemini-poc/runtime.js +0 -132
- package/lib/processor.gemini-poc/runtime.js.map +0 -1
- package/lib/processor.gemini-poc/types.d.ts +0 -23
- package/lib/processor.gemini-poc/types.js +0 -3
- package/lib/processor.gemini-poc/types.js.map +0 -1
- package/lib/processor.gemini-poc/types.yaml +0 -43
- package/lib/processor.mixMinus/info.d.ts +0 -7
- package/lib/processor.mixMinus/info.js +0 -40
- package/lib/processor.mixMinus/info.js.map +0 -1
- package/lib/processor.mixMinus/runtime.d.ts +0 -23
- package/lib/processor.mixMinus/runtime.js +0 -85
- package/lib/processor.mixMinus/runtime.js.map +0 -1
- package/lib/processor.mixMinus/types.d.ts +0 -18
- package/lib/processor.mixMinus/types.js +0 -3
- package/lib/processor.mixMinus/types.js.map +0 -1
- package/lib/processor.mixMinus/types.yaml +0 -19
- package/lib/processor.monetise/info.d.ts +0 -3
- package/lib/processor.monetise/info.js +0 -72
- package/lib/processor.monetise/info.js.map +0 -1
- package/lib/processor.monetise/runtime.d.ts +0 -62
- package/lib/processor.monetise/runtime.js +0 -219
- package/lib/processor.monetise/runtime.js.map +0 -1
- package/lib/processor.monetise/summary.d.ts +0 -7
- package/lib/processor.monetise/summary.js +0 -40
- package/lib/processor.monetise/summary.js.map +0 -1
- package/lib/processor.monetise/types.d.ts +0 -16
- package/lib/processor.monetise/types.js +0 -3
- package/lib/processor.monetise/types.js.map +0 -1
- package/lib/processor.monetise/types.yaml +0 -9
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-selection.js","sourceRoot":"","sources":["../../src/input.ndi/source-selection.tsx"],"names":[],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MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wBACnE,MAAM,SAAS,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wBACtE,WAAW,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;wBAC5C,UAAU,CAAC,CAAC,IAAI,EAAC,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;wBAC1C,QAAQ,CAAC,SAAS,CAAC,CAAC;wBACpB,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;oBAC7B,CAAC,EACD,WAAW,EAAC,mBAAmB,EAC/B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,IAAI,GACd,GAEH,CAAC;AACN,CAAC;AAED,kBAAe,eAAe,CAAC"}
|
package/lib/input.ndi/types.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export interface paths {
|
|
2
|
-
"/sources": {
|
|
3
|
-
parameters: {
|
|
4
|
-
query?: never;
|
|
5
|
-
header?: never;
|
|
6
|
-
path?: never;
|
|
7
|
-
cookie?: never;
|
|
8
|
-
};
|
|
9
|
-
get: {
|
|
10
|
-
parameters: {
|
|
11
|
-
query?: never;
|
|
12
|
-
header?: never;
|
|
13
|
-
path?: never;
|
|
14
|
-
cookie?: never;
|
|
15
|
-
};
|
|
16
|
-
requestBody?: never;
|
|
17
|
-
responses: {
|
|
18
|
-
200: {
|
|
19
|
-
headers: {
|
|
20
|
-
[name: string]: unknown;
|
|
21
|
-
};
|
|
22
|
-
content: {
|
|
23
|
-
"application/json": components["schemas"]["ndiSource"][];
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
put?: never;
|
|
29
|
-
post?: never;
|
|
30
|
-
delete?: never;
|
|
31
|
-
options?: never;
|
|
32
|
-
head?: never;
|
|
33
|
-
patch?: never;
|
|
34
|
-
trace?: never;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export type webhooks = Record<string, never>;
|
|
38
|
-
export interface components {
|
|
39
|
-
schemas: {
|
|
40
|
-
ndiSource: {
|
|
41
|
-
name: string;
|
|
42
|
-
url: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
responses: never;
|
|
46
|
-
parameters: never;
|
|
47
|
-
requestBodies: never;
|
|
48
|
-
headers: never;
|
|
49
|
-
pathItems: never;
|
|
50
|
-
}
|
|
51
|
-
export type $defs = Record<string, never>;
|
|
52
|
-
export type operations = Record<string, never>;
|
package/lib/input.ndi/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/input.ndi/types.ts"],"names":[],"mappings":""}
|
package/lib/input.ndi/types.yaml
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
openapi: 3.0.0
|
|
2
|
-
info:
|
|
3
|
-
title: NDI Ingests
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
|
|
6
|
-
paths:
|
|
7
|
-
# Static paths (available at runtime and design time)
|
|
8
|
-
/sources:
|
|
9
|
-
get:
|
|
10
|
-
summary: Return the currently available NDI sources
|
|
11
|
-
description: Returns all discovered NDI sources
|
|
12
|
-
x-route-type: static
|
|
13
|
-
responses:
|
|
14
|
-
200:
|
|
15
|
-
description: Successful operation
|
|
16
|
-
content:
|
|
17
|
-
application/json:
|
|
18
|
-
schema:
|
|
19
|
-
type: array
|
|
20
|
-
description: A list of the sources available
|
|
21
|
-
items:
|
|
22
|
-
$ref: "#/components/schemas/ndiSource"
|
|
23
|
-
components:
|
|
24
|
-
schemas:
|
|
25
|
-
ndiSource:
|
|
26
|
-
type: object
|
|
27
|
-
properties:
|
|
28
|
-
name:
|
|
29
|
-
type: string
|
|
30
|
-
description: NDI Name
|
|
31
|
-
url:
|
|
32
|
-
type: string
|
|
33
|
-
description: NDI Url
|
|
34
|
-
required:
|
|
35
|
-
- name
|
|
36
|
-
- url
|
|
37
|
-
|
package/lib/output.ndi/info.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { NdiOutputSettings } from "./runtime";
|
|
2
|
-
import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
|
|
3
|
-
export default function (R: Registration): import("@norskvideo/norsk-studio/lib/extension/client-types").NodeInfo<NdiOutputSettings, {
|
|
4
|
-
jitterBuffer: {
|
|
5
|
-
target: number;
|
|
6
|
-
value: number;
|
|
7
|
-
percentage: number;
|
|
8
|
-
};
|
|
9
|
-
}, Record<string, never>, {
|
|
10
|
-
type: "jitter-buffer-updated";
|
|
11
|
-
buffer: {
|
|
12
|
-
target: number;
|
|
13
|
-
value: number;
|
|
14
|
-
percentage: number;
|
|
15
|
-
};
|
|
16
|
-
}>;
|
package/lib/output.ndi/info.js
DELETED
|
@@ -1,63 +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
|
-
exports.default = default_1;
|
|
7
|
-
const jitter_buffer_inline_1 = require("@norskvideo/norsk-studio-built-ins/lib/shared/jitter-buffer-inline");
|
|
8
|
-
const jitter_buffer_config_1 = __importDefault(require("@norskvideo/norsk-studio-built-ins/lib/shared/jitter-buffer-config"));
|
|
9
|
-
const util_1 = require("@norskvideo/norsk-studio/lib/shared/util");
|
|
10
|
-
const inline_view_1 = __importDefault(require("./inline-view"));
|
|
11
|
-
function default_1(R) {
|
|
12
|
-
const { defineComponent, All, } = R;
|
|
13
|
-
return defineComponent({
|
|
14
|
-
identifier: 'output.ndi',
|
|
15
|
-
category: 'output',
|
|
16
|
-
name: "NDI Egest",
|
|
17
|
-
description: "This component outputs a single video and/or audio stream over NDI.",
|
|
18
|
-
subscription: {
|
|
19
|
-
accepts: {
|
|
20
|
-
type: 'dynamic-streams',
|
|
21
|
-
mode: 'any',
|
|
22
|
-
streams: () => All.map((media) => ({ media }))
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
runtime: {
|
|
26
|
-
initialState: () => ({
|
|
27
|
-
jitterBuffer: (0, jitter_buffer_inline_1.initialJitterBufferState)()
|
|
28
|
-
}),
|
|
29
|
-
handleEvent(ev, state) {
|
|
30
|
-
const evType = ev.type;
|
|
31
|
-
switch (evType) {
|
|
32
|
-
case 'jitter-buffer-updated':
|
|
33
|
-
state.jitterBuffer = ev.buffer;
|
|
34
|
-
break;
|
|
35
|
-
default:
|
|
36
|
-
(0, util_1.assertUnreachable)(evType);
|
|
37
|
-
}
|
|
38
|
-
return { ...state };
|
|
39
|
-
},
|
|
40
|
-
inline: inline_view_1.default,
|
|
41
|
-
metrics: []
|
|
42
|
-
},
|
|
43
|
-
display: (desc) => {
|
|
44
|
-
return {
|
|
45
|
-
name: desc.config.name,
|
|
46
|
-
groups: desc.config.groups?.toString() ?? 'none',
|
|
47
|
-
bufferDelayMs: desc.config.jitterBuffer?.bufferDelayMs?.toString() ?? 'none'
|
|
48
|
-
};
|
|
49
|
-
},
|
|
50
|
-
configForm: {
|
|
51
|
-
form: {
|
|
52
|
-
name: { help: "The NDI name announced for this output", hint: { type: 'text' } },
|
|
53
|
-
groups: { help: "The NDI groups that this output is a member of", hint: { type: 'text' } },
|
|
54
|
-
jitterBuffer: (0, jitter_buffer_config_1.default)(R),
|
|
55
|
-
notes: {
|
|
56
|
-
help: "Additional notes about this component",
|
|
57
|
-
hint: { type: 'text', optional: true }
|
|
58
|
-
},
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=info.js.map
|
|
@@ -1 +0,0 @@
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EAAE,QAAQ,EAAE,IAAI,MAAM;gBAChD,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,MAAM;aAC7E,CAAA;QACH,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,EAAE,IAAI,EAAE,wCAAwC,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;gBAChF,MAAM,EAAE,EAAE,IAAI,EAAE,gDAAgD,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;gBAC1F,YAAY,EAAE,IAAA,8BAAgB,EAAC,CAAC,CAAC;gBACjC,KAAK,EAAE;oBACL,IAAI,EAAE,uCAAuC;oBAC7C,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;iBACvC;aACF;SACF;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,12 +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 jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const jitter_buffer_inline_1 = __importDefault(require("@norskvideo/norsk-studio-built-ins/lib/shared/jitter-buffer-inline"));
|
|
8
|
-
function InlineView({ state }) {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "srt-output", children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(jitter_buffer_inline_1.default, { ...state.jitterBuffer }) }) }));
|
|
10
|
-
}
|
|
11
|
-
exports.default = InlineView;
|
|
12
|
-
//# sourceMappingURL=inline-view.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inline-view.js","sourceRoot":"","sources":["../../src/output.ndi/inline-view.tsx"],"names":[],"mappings":";;;;;;AAEA,8HAAoG;AAEpG,SAAS,UAAU,CAAC,EAAE,KAAK,EAAuB;IAChD,OAAO,CACL,gCAAK,SAAS,EAAC,YAAY,YACzB,0CACE,uBAAC,8BAAkB,OAAK,KAAK,CAAC,YAAY,GAAI,GAC1C,GACF,CACP,CAAC;AACJ,CAAC;AAED,kBAAe,UAAU,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Norsk, NdiOutputSettings as SdkSettings } from '@norskvideo/norsk-sdk';
|
|
2
|
-
import { OnCreated, ServerComponentDefinition, ServerComponentSchemas, StudioRuntime } from '@norskvideo/norsk-studio/lib/extension/runtime-types';
|
|
3
|
-
import { SimpleSinkWrapper } from '@norskvideo/norsk-studio/lib/extension/base-nodes';
|
|
4
|
-
import type { components } from './types';
|
|
5
|
-
export type NdiOutputSettings = components['schemas']['Config'] & Pick<SdkSettings, 'name' | 'groups'>;
|
|
6
|
-
export type NdiState = components['schemas']['State'];
|
|
7
|
-
export type NdiCommand = components['schemas']['Commands'];
|
|
8
|
-
export type NdiEvent = components['schemas']['Events'];
|
|
9
|
-
export type NdiComponent = SimpleSinkWrapper<NdiState, NdiCommand, NdiEvent>;
|
|
10
|
-
export default class NdiOutputDefinition implements ServerComponentDefinition<NdiOutputSettings, NdiComponent, NdiState, NdiCommand, NdiEvent> {
|
|
11
|
-
create(norsk: Norsk, cfg: NdiOutputSettings, cb: OnCreated<NdiComponent>, runtime: StudioRuntime<NdiState, NdiCommand, NdiEvent>): Promise<void>;
|
|
12
|
-
handleMetricsUpdate(c: NdiComponent): Promise<void>;
|
|
13
|
-
schemas(): Promise<ServerComponentSchemas>;
|
|
14
|
-
}
|
|
@@ -1,35 +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 jitter_buffer_inline_1 = require("@norskvideo/norsk-studio-built-ins/lib/shared/jitter-buffer-inline");
|
|
8
|
-
const schemas_1 = require("../shared/schemas");
|
|
9
|
-
const path_1 = __importDefault(require("path"));
|
|
10
|
-
class NdiOutputDefinition {
|
|
11
|
-
async create(norsk, cfg, cb, runtime) {
|
|
12
|
-
const wrapper = new base_nodes_1.SimpleSinkWrapper(cfg.id, async () => {
|
|
13
|
-
return await norsk.output.ndi(cfg);
|
|
14
|
-
}, runtime.updates);
|
|
15
|
-
await wrapper.initialised;
|
|
16
|
-
cb(wrapper);
|
|
17
|
-
}
|
|
18
|
-
async handleMetricsUpdate(c) {
|
|
19
|
-
const latest = c._updates?.latestMetrics();
|
|
20
|
-
if (!latest)
|
|
21
|
-
return;
|
|
22
|
-
c._updates?.raiseEvent({
|
|
23
|
-
type: 'jitter-buffer-updated',
|
|
24
|
-
buffer: (0, jitter_buffer_inline_1.extractJitterBufferFromMetrics)(latest)
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
async schemas() {
|
|
28
|
-
return (0, schemas_1.schemaFromTypes)(path_1.default.join(__dirname, 'types.yaml'), {
|
|
29
|
-
config: 'Config',
|
|
30
|
-
state: 'State'
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.default = NdiOutputDefinition;
|
|
35
|
-
//# sourceMappingURL=runtime.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/output.ndi/runtime.ts"],"names":[],"mappings":";;;;;AAEA,kFAAsF;AACtF,6GAAoH;AACpH,+CAAoD;AACpD,gDAAwB;AAaxB,MAAqB,mBAAmB;IACtC,KAAK,CAAC,MAAM,CAAC,KAAY,EAAE,GAAsB,EAAE,EAA2B,EAAE,OAAsD;QACpI,MAAM,OAAO,GAAG,IAAI,8BAAiB,CAAiC,GAAG,CAAC,EAAE,EAAE,KAAK,IAAI,EAAE;YACvF,OAAO,MAAM,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACrC,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;QACnB,MAAM,OAAO,CAAC,WAAW,CAAC;QAC1B,EAAE,CAAC,OAAO,CAAC,CAAC;IACd,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,CAAe;QACvC,MAAM,MAAM,GAAG,CAAC,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAC;QAC3C,IAAI,CAAC,MAAM;YAAE,OAAO;QACpB,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC;YACrB,IAAI,EAAE,uBAAuB;YAC7B,MAAM,EAAE,IAAA,qDAA8B,EAAC,MAAM,CAAC;SAC/C,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,OAAO;QACX,OAAO,IAAA,yBAAe,EAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE;YACzD,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,OAAO;SACf,CAAC,CAAC;IACL,CAAC;CACF;AAxBD,sCAwBC"}
|
|
@@ -1,56 +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
|
-
notes?: string;
|
|
9
|
-
name: string;
|
|
10
|
-
groups?: string[];
|
|
11
|
-
jitterBuffer?: {
|
|
12
|
-
bufferDelayMs?: number;
|
|
13
|
-
minPeriodMs?: number;
|
|
14
|
-
maxPeriodMs?: number;
|
|
15
|
-
windowDuration?: number;
|
|
16
|
-
maxSlope?: number;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
State: {
|
|
20
|
-
jitterBuffer: {
|
|
21
|
-
target: number;
|
|
22
|
-
value: number;
|
|
23
|
-
percentage: number;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
JitterBufferState: {
|
|
27
|
-
target: number;
|
|
28
|
-
value: number;
|
|
29
|
-
percentage: number;
|
|
30
|
-
};
|
|
31
|
-
Commands: Record<string, never>;
|
|
32
|
-
Events: {
|
|
33
|
-
type: "jitter-buffer-updated";
|
|
34
|
-
buffer: {
|
|
35
|
-
target: number;
|
|
36
|
-
value: number;
|
|
37
|
-
percentage: number;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
JitterBufferUpdatedEvent: {
|
|
41
|
-
type: "jitter-buffer-updated";
|
|
42
|
-
buffer: {
|
|
43
|
-
target: number;
|
|
44
|
-
value: number;
|
|
45
|
-
percentage: number;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
responses: never;
|
|
50
|
-
parameters: never;
|
|
51
|
-
requestBodies: never;
|
|
52
|
-
headers: never;
|
|
53
|
-
pathItems: never;
|
|
54
|
-
}
|
|
55
|
-
export type $defs = Record<string, never>;
|
|
56
|
-
export type operations = Record<string, never>;
|
package/lib/output.ndi/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/output.ndi/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
openapi: 3.0.0
|
|
2
|
-
info:
|
|
3
|
-
title: NDI Output
|
|
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
|
-
- name
|
|
16
|
-
properties:
|
|
17
|
-
id:
|
|
18
|
-
type: string
|
|
19
|
-
displayName:
|
|
20
|
-
type: string
|
|
21
|
-
notes:
|
|
22
|
-
type: string
|
|
23
|
-
name:
|
|
24
|
-
type: string
|
|
25
|
-
groups:
|
|
26
|
-
type: array
|
|
27
|
-
items:
|
|
28
|
-
type: string
|
|
29
|
-
jitterBuffer:
|
|
30
|
-
$ref: '../../../core/src/types.yaml#/components/schemas/JitterBufferConfig'
|
|
31
|
-
|
|
32
|
-
State:
|
|
33
|
-
type: object
|
|
34
|
-
required:
|
|
35
|
-
- jitterBuffer
|
|
36
|
-
properties:
|
|
37
|
-
jitterBuffer:
|
|
38
|
-
$ref: '#/components/schemas/JitterBufferState'
|
|
39
|
-
|
|
40
|
-
JitterBufferState:
|
|
41
|
-
type: object
|
|
42
|
-
required:
|
|
43
|
-
- target
|
|
44
|
-
- value
|
|
45
|
-
- percentage
|
|
46
|
-
properties:
|
|
47
|
-
target:
|
|
48
|
-
type: number
|
|
49
|
-
value:
|
|
50
|
-
type: number
|
|
51
|
-
percentage:
|
|
52
|
-
type: number
|
|
53
|
-
|
|
54
|
-
Commands:
|
|
55
|
-
type: object
|
|
56
|
-
additionalProperties: false
|
|
57
|
-
|
|
58
|
-
Events:
|
|
59
|
-
oneOf:
|
|
60
|
-
- $ref: '#/components/schemas/JitterBufferUpdatedEvent'
|
|
61
|
-
|
|
62
|
-
JitterBufferUpdatedEvent:
|
|
63
|
-
type: object
|
|
64
|
-
required:
|
|
65
|
-
- type
|
|
66
|
-
- buffer
|
|
67
|
-
properties:
|
|
68
|
-
type:
|
|
69
|
-
type: string
|
|
70
|
-
enum: ['jitter-buffer-updated']
|
|
71
|
-
buffer:
|
|
72
|
-
$ref: '#/components/schemas/JitterBufferState'
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
# This file has been generated, please edit types.source.yaml instead
|
|
2
|
-
|
|
3
|
-
openapi: 3.0.0
|
|
4
|
-
info:
|
|
5
|
-
title: NDI Output
|
|
6
|
-
version: 1.0.0
|
|
7
|
-
paths: {}
|
|
8
|
-
components:
|
|
9
|
-
schemas:
|
|
10
|
-
Config:
|
|
11
|
-
type: object
|
|
12
|
-
required:
|
|
13
|
-
- id
|
|
14
|
-
- displayName
|
|
15
|
-
- name
|
|
16
|
-
properties:
|
|
17
|
-
id:
|
|
18
|
-
type: string
|
|
19
|
-
displayName:
|
|
20
|
-
type: string
|
|
21
|
-
notes:
|
|
22
|
-
type: string
|
|
23
|
-
name:
|
|
24
|
-
type: string
|
|
25
|
-
groups:
|
|
26
|
-
type: array
|
|
27
|
-
items:
|
|
28
|
-
type: string
|
|
29
|
-
jitterBuffer:
|
|
30
|
-
type: object
|
|
31
|
-
properties:
|
|
32
|
-
bufferDelayMs:
|
|
33
|
-
type: number
|
|
34
|
-
minPeriodMs:
|
|
35
|
-
type: number
|
|
36
|
-
maxPeriodMs:
|
|
37
|
-
type: number
|
|
38
|
-
windowDuration:
|
|
39
|
-
type: number
|
|
40
|
-
maxSlope:
|
|
41
|
-
type: number
|
|
42
|
-
State:
|
|
43
|
-
type: object
|
|
44
|
-
required:
|
|
45
|
-
- jitterBuffer
|
|
46
|
-
properties:
|
|
47
|
-
jitterBuffer: &a1
|
|
48
|
-
type: object
|
|
49
|
-
required:
|
|
50
|
-
- target
|
|
51
|
-
- value
|
|
52
|
-
- percentage
|
|
53
|
-
properties:
|
|
54
|
-
target:
|
|
55
|
-
type: number
|
|
56
|
-
value:
|
|
57
|
-
type: number
|
|
58
|
-
percentage:
|
|
59
|
-
type: number
|
|
60
|
-
JitterBufferState: *a1
|
|
61
|
-
Commands:
|
|
62
|
-
type: object
|
|
63
|
-
additionalProperties: false
|
|
64
|
-
Events:
|
|
65
|
-
oneOf:
|
|
66
|
-
- &a2
|
|
67
|
-
type: object
|
|
68
|
-
required:
|
|
69
|
-
- type
|
|
70
|
-
- buffer
|
|
71
|
-
properties:
|
|
72
|
-
type:
|
|
73
|
-
type: string
|
|
74
|
-
enum:
|
|
75
|
-
- jitter-buffer-updated
|
|
76
|
-
buffer: *a1
|
|
77
|
-
JitterBufferUpdatedEvent: *a2
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
|
|
2
|
-
export default function ({ defineComponent, }: Registration): import("@norskvideo/norsk-studio/lib/extension/client-types").NodeInfo<{
|
|
3
|
-
id: string;
|
|
4
|
-
displayName: string;
|
|
5
|
-
systemInstruction: string;
|
|
6
|
-
api: "live" | "traditional";
|
|
7
|
-
notes?: string;
|
|
8
|
-
}, object, object, object>;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = default_1;
|
|
4
|
-
function default_1({ defineComponent, }) {
|
|
5
|
-
return defineComponent({
|
|
6
|
-
identifier: 'processor.gemini-poc',
|
|
7
|
-
category: 'processor',
|
|
8
|
-
name: "Gemini AI",
|
|
9
|
-
description: "This component is a proof-of-concept of integrating Google Gemini AI into Norsk workflows.",
|
|
10
|
-
subscription: {
|
|
11
|
-
accepts: {
|
|
12
|
-
type: 'simple-stream',
|
|
13
|
-
audio: true,
|
|
14
|
-
video: true
|
|
15
|
-
},
|
|
16
|
-
produces: {
|
|
17
|
-
type: 'simple-stream',
|
|
18
|
-
audio: true,
|
|
19
|
-
video: true
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
extraValidation: function (ctx) {
|
|
23
|
-
const video = ctx.videoInputs();
|
|
24
|
-
const audio = ctx.audioInputs();
|
|
25
|
-
if (video.length > 1) {
|
|
26
|
-
ctx.addError("Gemini AI cannot process multiple video streams");
|
|
27
|
-
}
|
|
28
|
-
if (audio.length > 1) {
|
|
29
|
-
ctx.addError("Gemini AI cannot process multiple audio streams");
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
display: (_desc) => {
|
|
33
|
-
return {};
|
|
34
|
-
},
|
|
35
|
-
configForm: {
|
|
36
|
-
form: {
|
|
37
|
-
systemInstruction: {
|
|
38
|
-
help: "The Gemini system instruction",
|
|
39
|
-
hint: {
|
|
40
|
-
type: 'text',
|
|
41
|
-
defaultValue: "You are a sports commentator. I will send you video from a soccer match, and you are to commentate on it. When you have commentary, call the test_response function with the text."
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
api: {
|
|
45
|
-
help: "Use the Live or Traditional Gemini API. Live is better for streaming, but traditional gives more accurate timing information on events",
|
|
46
|
-
hint: {
|
|
47
|
-
type: "select",
|
|
48
|
-
options: ["live", "traditional"].map((api) => { return { value: api, display: api }; }),
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
notes: {
|
|
52
|
-
help: "Notes about this component",
|
|
53
|
-
hint: { type: 'text', optional: true }
|
|
54
|
-
},
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=info.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/processor.gemini-poc/info.ts"],"names":[],"mappings":";;AAIA,4BA6DC;AA7DD,mBAAwB,EACtB,eAAe,GACF;IACb,OAAO,eAAe,CAAiB;QACrC,UAAU,EAAE,sBAAsB;QAClC,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,4FAA4F;QACzG,YAAY,EAAE;YACZ,OAAO,EAAE;gBACP,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,IAAI;gBACX,KAAK,EAAE,IAAI;aACZ;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,IAAI;gBACX,KAAK,EAAE,IAAI;aACZ;SACF;QACD,eAAe,EAAE,UAAS,GAAG;YAC3B,MAAM,KAAK,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC;YAChC,MAAM,KAAK,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC;YAChC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACrB,GAAG,CAAC,QAAQ,CAAC,iDAAiD,CAAC,CAAA;YACjE,CAAC;YACD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACrB,GAAG,CAAC,QAAQ,CAAC,iDAAiD,CAAC,CAAA;YACjE,CAAC;QACH,CAAC;QACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,OAAO,EAIN,CAAA;QACH,CAAC;QACD,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,iBAAiB,EAAE;oBACjB,IAAI,EAAE,+BAA+B;oBACrC,IAAI,EAAE;wBACJ,IAAI,EAAE,MAAM;wBACZ,YAAY,EAAE,sLAAsL;qBACrM;iBACF;gBACD,GAAG,EAAE;oBACH,IAAI,EAAE,yIAAyI;oBAC/I,IAAI,EACJ;wBACE,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,GAAqD,EAAE,OAAO,EAAE,GAAa,EAAE,CAAA,CAAC,CAAC,CAAC;qBACnJ;iBACF;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,4BAA4B;oBAClC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;iBACvC;aACF;SACF;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { FunctionCallMetadata, GeminiProcessorNode, GeminiServerContent, Norsk } from '@norskvideo/norsk-sdk';
|
|
2
|
-
import { CreatedMediaNode, OnCreated, RelatedMediaNodes, ServerComponentDefinition, ServerComponentSchemas, StudioComponentInputStream, StudioRuntime } from '@norskvideo/norsk-studio/lib/extension/runtime-types';
|
|
3
|
-
import { components } from './types';
|
|
4
|
-
export type GeminiAIConfig = components['schemas']['GeminiAIConfig'];
|
|
5
|
-
export type GeminiAIState = components['schemas']['GeminiAIState'];
|
|
6
|
-
export type GeminiAICommand = components['schemas']['GeminiAICommands'];
|
|
7
|
-
export type GeminiAIEvent = components['schemas']['GeminiAIEvents'];
|
|
8
|
-
export default class GeminiAIDefinition implements ServerComponentDefinition<GeminiAIConfig, GeminiAINode, GeminiAIState, GeminiAICommand, GeminiAIEvent> {
|
|
9
|
-
schemas(): Promise<ServerComponentSchemas>;
|
|
10
|
-
create(norsk: Norsk, cfg: GeminiAIConfig, cb: OnCreated<GeminiAINode>, runtime: StudioRuntime<GeminiAIState, GeminiAICommand, GeminiAIEvent>): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
declare class GeminiAINode implements CreatedMediaNode {
|
|
13
|
-
norsk: Norsk;
|
|
14
|
-
cfg: GeminiAIConfig;
|
|
15
|
-
initialised: Promise<void>;
|
|
16
|
-
logger: GeminiLogger;
|
|
17
|
-
gemini?: GeminiProcessorNode;
|
|
18
|
-
runtime: StudioRuntime<GeminiAIState, GeminiAICommand, GeminiAIEvent>;
|
|
19
|
-
t0: Date;
|
|
20
|
-
constructor(norsk: Norsk, cfg: GeminiAIConfig, runtime: StudioRuntime<GeminiAIState, GeminiAICommand, GeminiAIEvent>);
|
|
21
|
-
get id(): string;
|
|
22
|
-
relatedMediaNodes: RelatedMediaNodes;
|
|
23
|
-
textDetected(_callMetadata: FunctionCallMetadata, text: string): Promise<void>;
|
|
24
|
-
jsonDetected(_callMetadata: FunctionCallMetadata, jsonString: string): Promise<void>;
|
|
25
|
-
initialise(): Promise<void>;
|
|
26
|
-
subscribe(sources: StudioComponentInputStream[]): Promise<void>;
|
|
27
|
-
}
|
|
28
|
-
export declare class GeminiLogger {
|
|
29
|
-
id: string;
|
|
30
|
-
t0: Date;
|
|
31
|
-
inTurn: boolean;
|
|
32
|
-
currentStr: string;
|
|
33
|
-
runtime: StudioRuntime<GeminiAIState, GeminiAICommand, GeminiAIEvent>;
|
|
34
|
-
constructor(id: string, runtime: StudioRuntime<GeminiAIState, GeminiAICommand, GeminiAIEvent>);
|
|
35
|
-
logContent(content: GeminiServerContent): void;
|
|
36
|
-
}
|
|
37
|
-
export declare function exhaustiveCheck(a: never): never;
|
|
38
|
-
export {};
|