@norskvideo/norsk-studio-built-ins 1.4.0 → 1.6.1

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.
Files changed (77) hide show
  1. package/client/info.js +212 -933
  2. package/client/style.css +1411 -0
  3. package/lib/index.js +1 -1
  4. package/lib/info.js +9 -17
  5. package/lib/info.js.map +1 -1
  6. package/lib/output.preview/runtime.js +3 -2
  7. package/lib/output.preview/runtime.js.map +1 -1
  8. package/lib/output.whep/runtime.js +2 -1
  9. package/lib/output.whep/runtime.js.map +1 -1
  10. package/lib/processor.dynamicBug/info.d.ts +1 -1
  11. package/lib/processor.dynamicBug/info.js +1 -11
  12. package/lib/processor.dynamicBug/info.js.map +1 -1
  13. package/lib/processor.dynamicBug/runtime.d.ts +0 -1
  14. package/lib/processor.dynamicBug/runtime.js +6 -10
  15. package/lib/processor.dynamicBug/runtime.js.map +1 -1
  16. package/lib/processor.dynamicBug/summary-view.d.ts +2 -1
  17. package/lib/processor.dynamicBug/summary-view.js +2 -2
  18. package/lib/processor.dynamicBug/summary-view.js.map +1 -1
  19. package/lib/shared/webrtcSettings.d.ts +6 -0
  20. package/lib/shared/webrtcSettings.js +13 -0
  21. package/lib/shared/webrtcSettings.js.map +1 -0
  22. package/package.json +4 -4
  23. package/client/processor.audioLevel/styles.css +0 -164
  24. package/client/processor.audioMixer/styles.css +0 -249
  25. package/lib/processor.actionReplay/info.d.ts +0 -5
  26. package/lib/processor.actionReplay/info.js +0 -100
  27. package/lib/processor.actionReplay/info.js.map +0 -1
  28. package/lib/processor.actionReplay/runtime.d.ts +0 -59
  29. package/lib/processor.actionReplay/runtime.js +0 -224
  30. package/lib/processor.actionReplay/runtime.js.map +0 -1
  31. package/lib/processor.actionReplay/summary.d.ts +0 -7
  32. package/lib/processor.actionReplay/summary.js +0 -76
  33. package/lib/processor.actionReplay/summary.js.map +0 -1
  34. package/lib/processor.audioLevel/info.d.ts +0 -3
  35. package/lib/processor.audioLevel/info.js +0 -83
  36. package/lib/processor.audioLevel/info.js.map +0 -1
  37. package/lib/processor.audioLevel/inline-view.d.ts +0 -6
  38. package/lib/processor.audioLevel/inline-view.js +0 -23
  39. package/lib/processor.audioLevel/inline-view.js.map +0 -1
  40. package/lib/processor.audioLevel/runtime.d.ts +0 -49
  41. package/lib/processor.audioLevel/runtime.js +0 -82
  42. package/lib/processor.audioLevel/runtime.js.map +0 -1
  43. package/lib/processor.audioLevel/summary-view.d.ts +0 -7
  44. package/lib/processor.audioLevel/summary-view.js +0 -36
  45. package/lib/processor.audioLevel/summary-view.js.map +0 -1
  46. package/lib/processor.audioMixer/fullscreen-view.d.ts +0 -8
  47. package/lib/processor.audioMixer/fullscreen-view.js +0 -121
  48. package/lib/processor.audioMixer/fullscreen-view.js.map +0 -1
  49. package/lib/processor.audioMixer/info.d.ts +0 -4
  50. package/lib/processor.audioMixer/info.js +0 -148
  51. package/lib/processor.audioMixer/info.js.map +0 -1
  52. package/lib/processor.audioMixer/inline-view.d.ts +0 -7
  53. package/lib/processor.audioMixer/inline-view.js +0 -43
  54. package/lib/processor.audioMixer/inline-view.js.map +0 -1
  55. package/lib/processor.audioMixer/runtime.d.ts +0 -119
  56. package/lib/processor.audioMixer/runtime.js +0 -142
  57. package/lib/processor.audioMixer/runtime.js.map +0 -1
  58. package/lib/processor.audioMixer/summary-view.d.ts +0 -7
  59. package/lib/processor.audioMixer/summary-view.js +0 -11
  60. package/lib/processor.audioMixer/summary-view.js.map +0 -1
  61. package/lib/processor.fixedLadder/newFile.d.ts +0 -3
  62. package/lib/processor.fixedLadder/newFile.js +0 -145
  63. package/lib/processor.fixedLadder/newFile.js.map +0 -1
  64. package/lib/processor.monetise/info.d.ts +0 -3
  65. package/lib/processor.monetise/info.js +0 -90
  66. package/lib/processor.monetise/info.js.map +0 -1
  67. package/lib/processor.monetise/runtime.d.ts +0 -57
  68. package/lib/processor.monetise/runtime.js +0 -141
  69. package/lib/processor.monetise/runtime.js.map +0 -1
  70. package/lib/processor.monetise/summary.d.ts +0 -7
  71. package/lib/processor.monetise/summary.js +0 -39
  72. package/lib/processor.monetise/summary.js.map +0 -1
  73. package/lib/test/audio-mixer.d.ts +0 -0
  74. package/lib/test/audio-mixer.js +0 -2
  75. package/lib/test/audio-mixer.js.map +0 -1
  76. /package/{shared → client/shared}/style.css +0 -0
  77. /package/{shared → client/shared}/tailwind.css +0 -0
@@ -1,249 +0,0 @@
1
- .audio-mixer {
2
- height: 100%;
3
- }
4
-
5
- .channel-container {
6
- height: 100%;
7
- width: 150px;
8
- grid-template-rows: 2em 35% 3em 1fr 2em;
9
- grid-template-columns: 100px;
10
- }
11
-
12
- .mixer-level-db {
13
- justify-content: space-evenly;
14
- }
15
-
16
- .mixer-gain-db {
17
- height: calc(55vh - 15px);
18
- right: -10px;
19
- }
20
-
21
- .mute-icon {
22
- cursor: pointer;
23
- }
24
-
25
- .level-muted {
26
- border: 2px solid;
27
- border-color: #ff3366;
28
- }
29
-
30
- .audio-mixer-fader-container {
31
- height: 55vh;
32
- }
33
-
34
- .audio-mixer-fader {
35
- width: 55vh;
36
- height: 1em;
37
- }
38
-
39
- .audio-level-container {
40
- height: 210px;
41
- width: 200px;
42
- grid-template-columns: 1fr 1fr;
43
- grid-template-rows: 150px 40px 25px;
44
- }
45
-
46
- .audio-level-container-inline {
47
- height: 108px;
48
- width: 180px;
49
- display: flex;
50
- flex-direction: row-reverse;
51
- }
52
-
53
- .audio-level-container div {
54
- float: left;
55
- }
56
-
57
- .preview-levels-mixer {
58
- width: 30px;
59
- background-color: #333;
60
- border-radius: 2px;
61
- display: grid;
62
- grid-template-columns: 30px 30px;
63
- padding: 4px 3px;
64
- margin: auto;
65
- margin-top: 0px;
66
- grid-column-gap: 5px;
67
- height: 100%;
68
- }
69
-
70
- /* paint not glowing LEDs */
71
- .preview-level-mixer {
72
- position: relative;
73
- margin: 0 2px;
74
- flex-grow: 1;
75
- z-index: 3;
76
- background-color: transparent;
77
- background-repeat: repeat-y;
78
- background-image: linear-gradient(to bottom, #666 3px, transparent 1px);
79
- background-size: 100% 4px;
80
- }
81
-
82
- /* paint glowing LEDs */
83
- .preview-level-mixer:before {
84
- width: 100%;
85
- height: 100%;
86
- content: ' ';
87
- position: absolute;
88
- top: 0px;
89
- left: 0px;
90
- z-index: 1;
91
- background-repeat: no-repeat;
92
- background-image: linear-gradient(to top, green 0%, yellow 80%, red 100%);
93
- background-size: 100% 100%;
94
- }
95
-
96
- .clip-0:before {
97
- clip-path: inset(0% 0 0 0);
98
- -webkit-clip-path: inset(100% 0 0 0);
99
- }
100
-
101
- .clip-10:before {
102
- clip-path: inset(10% 0 0 0);
103
- -webkit-clip-path: inset(90% 0 0 0);
104
- }
105
-
106
- .clip-20:before {
107
- clip-path: inset(80% 0 0 0);
108
- -webkit-clip-path: inset(80% 0 0 0);
109
- }
110
-
111
- .clip-30:before {
112
- clip-path: inset(70% 0 0 0);
113
- -webkit-clip-path: inset(70% 0 0 0);
114
- }
115
-
116
- .clip-40:before {
117
- clip-path: inset(60% 0 0 0);
118
- -webkit-clip-path: inset(60% 0 0 0);
119
- }
120
-
121
- .clip-50:before {
122
- clip-path: inset(50% 0 0 0);
123
- -webkit-clip-path: inset(50% 0 0 0);
124
- }
125
-
126
- .clip-60:before {
127
- clip-path: inset(40% 0 0 0);
128
- -webkit-clip-path: inset(40% 0 0 0);
129
- }
130
-
131
- .clip-70:before {
132
- clip-path: inset(30% 0 0 0);
133
- -webkit-clip-path: inset(30% 0 0 0);
134
- }
135
-
136
-
137
- .clip-80:before {
138
- clip-path: inset(20% 0 0 0);
139
- -webkit-clip-path: inset(20% 0 0 0);
140
- }
141
-
142
- .clip-90:before {
143
- clip-path: inset(10% 0 0 0);
144
- -webkit-clip-path: inset(10% 0 0 0);
145
- }
146
-
147
- .clip-100:before {
148
- clip-path: inset(0% 0 0 0);
149
- -webkit-clip-path: inset(0% 0 0 0);
150
- }
151
-
152
-
153
-
154
- /* paint gap lines of LEDs */
155
- .preview-level::after {
156
- width: 100%;
157
- height: 100%;
158
- content: ' ';
159
- position: absolute;
160
- top: 0px;
161
- left: 0px;
162
- z-index: 2;
163
- margin-top: 3px;
164
- background-image: linear-gradient(to bottom, #333 1px
165
- /* space between leds*/
166
- , transparent 1px);
167
- background-repeat: repeat-y;
168
- background-size: 100% 4px;
169
- /* 4px LED height */
170
- background-color: transparent;
171
- }
172
-
173
- #audio-slider {
174
- width: 150px;
175
- }
176
-
177
- #db-level-max {
178
- right: 36px;
179
- top: 0;
180
- }
181
-
182
- #db-level-min {
183
- right: 23px;
184
- bottom: 26px;
185
- }
186
-
187
- #node-gain-level {
188
- align-self: end;
189
- }
190
-
191
- #mixer-level-container-inline {
192
- grid-template-columns: 60px 60px 60px 60px;
193
- grid-row-gap: 10px;
194
- }
195
-
196
- .preview-levels {
197
- height: 100%;
198
- width: 30px;
199
- background-color: #333;
200
- border-radius: 2px;
201
- display: flex;
202
- flex-direction: row;
203
- padding: 4px 3px;
204
- margin: auto;
205
- margin-top: 0px;
206
- writing-mode: vertical-rl;
207
- }
208
-
209
- /* paint not glowing LEDs */
210
- .preview-level {
211
- position: relative;
212
- margin: 0 2px;
213
- flex-grow: 1;
214
- z-index: 3;
215
- background-color: transparent;
216
- background-repeat: repeat-y;
217
- background-image: linear-gradient(to bottom, #666 3px, transparent 1px);
218
- background-size: 100% 4px;
219
- }
220
-
221
- /* paint glowing LEDs */
222
- .preview-level:before {
223
- width: 100%;
224
- height: 100%;
225
- content: ' ';
226
- position: absolute;
227
- top: 0px;
228
- left: 0px;
229
- z-index: 1;
230
- background-repeat: no-repeat;
231
- background-image: linear-gradient(to top, green 0%, yellow 80%, red 100%);
232
- background-size: 100% 100%;
233
- }
234
-
235
- .inline-channel-name {
236
- left: 27px;
237
- }
238
-
239
- .inline-master-channel {
240
- grid-row-start: 1;
241
- grid-column-start: 4;
242
- grid-row-end: 5;
243
- height: 108px;
244
- }
245
-
246
- .inline-master-border {
247
- border: 1px solid;
248
- border-color: cyan;
249
- }
@@ -1,5 +0,0 @@
1
- import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
2
- import type { ActionReplayConfig, ActionReplayState, ActionReplayCommand, ActionReplayEvent } from "./runtime";
3
- export default function ({ defineComponent, assertUnreachable, Av, }: Registration): import("@norskvideo/norsk-studio/lib/extension/client-types").NodeInfo<ActionReplayConfig, ActionReplayState, ActionReplayCommand, ActionReplayEvent>;
4
- export declare const hardwareNames: readonly ["quadra", "nvidia"];
5
- export type HardwareName = typeof hardwareNames[number];
@@ -1,100 +0,0 @@
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
- exports.hardwareNames = void 0;
30
- const react_1 = __importDefault(require("react"));
31
- const config_1 = require("@norskvideo/norsk-studio/lib/shared/config");
32
- function default_1({ defineComponent, assertUnreachable, Av, }) {
33
- const SummaryView = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./summary'))));
34
- return defineComponent({
35
- identifier: 'processor.transform.actionReplay',
36
- category: 'processor',
37
- name: "Action Replay",
38
- subscription: {
39
- accepts: {
40
- type: 'single-stream',
41
- media: Av
42
- },
43
- produces: {
44
- type: 'single-stream',
45
- media: Av
46
- },
47
- },
48
- extraValidation: (ctx) => {
49
- if (ctx.subscriptions.length == 0) {
50
- return;
51
- }
52
- if (ctx.subscriptions.length > 1) {
53
- ctx.addError("Action replay can only subscribe to a single source");
54
- return;
55
- }
56
- if (!ctx.subscriptions[0].streams.select.includes("audio")) {
57
- ctx.addError("Action replay requires audio in the subscription");
58
- }
59
- if (!ctx.subscriptions[0].streams.select.includes("video")) {
60
- ctx.addError("Action replay requires video in the subscription");
61
- }
62
- },
63
- runtime: {
64
- summary: SummaryView,
65
- initialState: () => ({
66
- replaying: false,
67
- contentPlayerUrl: undefined
68
- }),
69
- handleEvent: (ev, state) => {
70
- const evType = ev.type;
71
- switch (evType) {
72
- case "content-player-created":
73
- return { ...state, contentPlayerUrl: ev.url };
74
- case "replay-started":
75
- return { ...state, replaying: true };
76
- case "replay-finished":
77
- return { ...state, replaying: false };
78
- default:
79
- return assertUnreachable(evType);
80
- }
81
- }
82
- },
83
- display: (desc) => {
84
- const { __global: _, ...rem } = desc.config;
85
- return rem;
86
- },
87
- configForm: {
88
- global: {
89
- hardware: (0, config_1.HardwareSelection)()
90
- },
91
- form: {}
92
- }
93
- });
94
- }
95
- exports.default = default_1;
96
- exports.hardwareNames = [
97
- 'quadra',
98
- 'nvidia'
99
- ];
100
- //# sourceMappingURL=info.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/processor.actionReplay/info.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kDAA0B;AAC1B,uEAA+E;AAG/E,mBAAwB,EACtB,eAAe,EACf,iBAAiB,EACjB,EAAE,GACW;IACb,MAAM,WAAW,GAAG,eAAK,CAAC,IAAI,CAAC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;gBACvB,QAAQ,MAAM,EAAE,CAAC;oBACf,KAAK,wBAAwB;wBAC3B,OAAO,EAAE,GAAG,KAAK,EAAE,gBAAgB,EAAE,EAAE,CAAC,GAAG,EAAE,CAAA;oBAC/C,KAAK,gBAAgB;wBACnB,OAAO,EAAE,GAAG,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,CAAA;oBACtC,KAAK,iBAAiB;wBACpB,OAAO,EAAE,GAAG,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAA;oBACvC;wBACE,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC;gBACrC,CAAC;YACH,CAAC;SACF;QACD,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;YAChB,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,GAAG,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC;YAC5C,OAAO,GAAG,CAAC;QACb,CAAC;QACD,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,QAAQ,EAAE,IAAA,0BAAiB,GAAE;aAC9B;YACD,IAAI,EAAE,EACL;SACF;KACF,CAAC,CAAC;AACL,CAAC;AAlED,4BAkEC;AAEY,QAAA,aAAa,GAAG;IAC3B,QAAQ;IACR,QAAQ;CACA,CAAA"}
@@ -1,59 +0,0 @@
1
- import { AudioEncodeNode, CmafAudioOutputNode, CmafMultiVariantOutputNode, CmafVideoOutputNode, FrameStorePlayerNode, FrameStoreRecorderNode, Norsk, SourceMediaNode, StreamKey, StreamMetadataOverrideNode, StreamSwitchSmoothNode, SubscriptionError } from '@norskvideo/norsk-sdk';
2
- import { OnCreated, RelatedMediaNodes, RuntimeUpdates, ServerComponentDefinition, StudioNodeSubscriptionSource, StudioRuntime, StudioShared } from '@norskvideo/norsk-studio/lib/extension/runtime-types';
3
- import { SubscriptionOpts } from '@norskvideo/norsk-studio/lib/extension/base-nodes';
4
- import { HardwareAccelerationType } from '@norskvideo/norsk-studio/lib/shared/config';
5
- export type ActionReplayConfig = {
6
- id: string;
7
- displayName: string;
8
- __global: {
9
- hardware?: HardwareAccelerationType;
10
- };
11
- };
12
- export type ActionReplayState = {
13
- contentPlayerUrl?: string;
14
- replaying: boolean;
15
- };
16
- export type ActionReplayEvent = {
17
- type: 'content-player-created';
18
- url: string;
19
- } | {
20
- type: 'replay-started';
21
- } | {
22
- type: 'replay-finished';
23
- };
24
- export type ActionReplayCommand = {
25
- type: 'do-replay';
26
- from: number;
27
- duration: number;
28
- };
29
- export default class ActionReplayDefinition implements ServerComponentDefinition<ActionReplayConfig, ActionReplay, ActionReplayState, ActionReplayCommand, ActionReplayEvent> {
30
- create(norsk: Norsk, cfg: ActionReplayConfig, cb: OnCreated<ActionReplay>, runtime: StudioRuntime<ActionReplayState, ActionReplayEvent>): Promise<void>;
31
- handleCommand(node: ActionReplay, command: ActionReplayCommand): void;
32
- }
33
- export declare class ActionReplay {
34
- id: string;
35
- norsk: Norsk;
36
- cfg: ActionReplayConfig;
37
- initialised: Promise<void>;
38
- updates: RuntimeUpdates<ActionReplayState, ActionReplayEvent>;
39
- shared: StudioShared;
40
- relatedMediaNodes: RelatedMediaNodes;
41
- smooth?: StreamSwitchSmoothNode<'source' | 'replay'>;
42
- audioEncode?: AudioEncodeNode;
43
- videoEncode?: SourceMediaNode;
44
- audioCmaf?: CmafAudioOutputNode;
45
- videoCmaf?: CmafVideoOutputNode;
46
- mvCmaf?: CmafMultiVariantOutputNode;
47
- writer?: FrameStoreRecorderNode;
48
- reader?: FrameStorePlayerNode;
49
- currentSource?: StudioNodeSubscriptionSource;
50
- passthrough?: StreamMetadataOverrideNode;
51
- audioStreamKey?: StreamKey;
52
- videoStreamKey?: StreamKey;
53
- constructor(norsk: Norsk, cfg: ActionReplayConfig, runtime: StudioRuntime<ActionReplayState, ActionReplayEvent>);
54
- initialise(): Promise<void>;
55
- subscribe(sources: StudioNodeSubscriptionSource[], _opts?: SubscriptionOpts | undefined): void;
56
- replay(from: number, duration: number): Promise<void>;
57
- sourceContextChange(_responseCallback: (error?: SubscriptionError) => void): Promise<boolean>;
58
- teardown(): void;
59
- }
@@ -1,224 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActionReplay = void 0;
4
- const norsk_sdk_1 = require("@norskvideo/norsk-sdk");
5
- const runtime_types_1 = require("@norskvideo/norsk-studio/lib/extension/runtime-types");
6
- const util_1 = require("@norskvideo/norsk-studio/lib/shared/util");
7
- const logging_1 = require("@norskvideo/norsk-studio/lib/server/logging");
8
- const os_1 = require("os");
9
- const config_1 = require("@norskvideo/norsk-studio/lib/shared/config");
10
- class ActionReplayDefinition {
11
- async create(norsk, cfg, cb, runtime) {
12
- const node = new ActionReplay(norsk, cfg, runtime);
13
- await node.initialised;
14
- cb(node);
15
- }
16
- handleCommand(node, command) {
17
- const cmdType = command.type;
18
- switch (cmdType) {
19
- case 'do-replay':
20
- void node.replay(command.from, command.duration);
21
- break;
22
- default:
23
- (0, util_1.assertUnreachable)(cmdType);
24
- }
25
- }
26
- }
27
- exports.default = ActionReplayDefinition;
28
- class ActionReplay {
29
- id;
30
- norsk;
31
- cfg;
32
- initialised;
33
- updates;
34
- shared;
35
- relatedMediaNodes = new runtime_types_1.RelatedMediaNodes();
36
- smooth;
37
- audioEncode;
38
- videoEncode;
39
- audioCmaf;
40
- videoCmaf;
41
- mvCmaf;
42
- writer;
43
- reader;
44
- currentSource;
45
- passthrough;
46
- audioStreamKey;
47
- videoStreamKey;
48
- constructor(norsk, cfg, runtime) {
49
- this.id = cfg.id;
50
- this.norsk = norsk;
51
- this.cfg = cfg;
52
- this.updates = runtime.updates;
53
- this.shared = runtime.shared;
54
- this.initialised = this.initialise();
55
- }
56
- async initialise() {
57
- this.passthrough = await this.norsk.processor.transform.streamMetadataOverride({
58
- id: `${this.id}-output`,
59
- });
60
- this.relatedMediaNodes.addOutput(this.passthrough);
61
- }
62
- subscribe(sources, _opts) {
63
- this.currentSource = sources[0];
64
- this.currentSource.registerForContextChange(this);
65
- void this.sourceContextChange(() => { });
66
- }
67
- async replay(from, duration) {
68
- if (this.reader) {
69
- (0, logging_1.debuglog)("Multiple replay attempts started, ignoring", { from, duration });
70
- return;
71
- }
72
- if (!this.smooth || !this.currentSource || !this.currentSource.source.relatedMediaNodes.output) {
73
- (0, logging_1.errorlog)("Attempt to do replay before node is set up???", { from, duration });
74
- return;
75
- }
76
- if (!this.audioStreamKey || !this.videoStreamKey) {
77
- (0, logging_1.errorlog)("Attempt to do replay with no known stream keys", { from, duration });
78
- return;
79
- }
80
- this.updates.raiseEvent({
81
- type: 'replay-started'
82
- });
83
- const smooth = this.smooth;
84
- const currentSource = this.currentSource;
85
- this.reader = await this.norsk.input.frameStore({
86
- id: `${this.id}-reader`,
87
- name: `${this.id}-store`,
88
- streamSelection: [
89
- this.videoStreamKey,
90
- this.audioStreamKey
91
- ],
92
- cuts: [{
93
- durationMs: duration * 1000,
94
- startDateTime: new Date((new Date()).getTime() - (from * 1000))
95
- }],
96
- trimPartialSegments: true,
97
- sourceName: `${this.id}-cut`,
98
- onCreate: (node) => {
99
- smooth.subscribeToPins(currentSource.selectAvToPin("source").concat([
100
- { source: node, sourceSelector: (0, norsk_sdk_1.avToPin)("replay") }
101
- ]));
102
- },
103
- onClose: () => {
104
- this.reader = undefined;
105
- this.updates.raiseEvent({
106
- type: 'replay-finished'
107
- });
108
- smooth.subscribeToPins(currentSource.selectAvToPin("source"));
109
- }
110
- });
111
- }
112
- async sourceContextChange(_responseCallback) {
113
- if (!this.currentSource) {
114
- this.teardown();
115
- return false;
116
- }
117
- const latestStreams = this.currentSource?.latestStreams();
118
- if (latestStreams.length < 2) {
119
- this.teardown();
120
- return false;
121
- }
122
- const video = latestStreams.find((s) => s.metadata.message.case == 'video');
123
- const audio = latestStreams.find((s) => s.metadata.message.case == 'audio');
124
- if (!video || !audio) {
125
- this.teardown();
126
- return false;
127
- }
128
- const videoMetadata = video.metadata.message.value;
129
- const audioMetadata = audio.metadata.message.value;
130
- this.audioStreamKey = audio.metadata.streamKey;
131
- this.videoStreamKey = video.metadata.streamKey;
132
- (0, logging_1.infolog)("Action replay node has a valid context, spinning up some nodes", { videoMetadata, audioMetadata });
133
- this.smooth = await this.norsk.processor.control.streamSwitchSmooth({
134
- id: `${this.id}-switch`,
135
- outputSource: `${this.id}-source`,
136
- outputResolution: { width: videoMetadata.width, height: videoMetadata.height },
137
- frameRate: videoMetadata.frameRate ?? { frames: 25, seconds: 1 },
138
- sampleRate: audioMetadata.sampleRate,
139
- channelLayout: audioMetadata.channelLayout ?? 'stereo',
140
- hardwareAcceleration: (0, config_1.contractHardwareAcceleration)(this.cfg.__global.hardware, ["quadra", "nvidia"]),
141
- activeSource: 'source',
142
- transitionDurationMs: 500.0,
143
- onInboundContextChange: async (ctx) => {
144
- if (ctx.get('replay')?.length == 2) {
145
- this.smooth?.switchSource('replay');
146
- }
147
- else {
148
- this.smooth?.switchSource('source');
149
- }
150
- }
151
- });
152
- this.relatedMediaNodes.addInput(this.smooth);
153
- const dir = (0, os_1.tmpdir)();
154
- this.writer = await this.norsk.output.frameStore({
155
- id: `${this.id}-store`,
156
- name: `${this.id}-store`,
157
- path: dir,
158
- chunkFileDurationSeconds: 60,
159
- });
160
- this.videoEncode = await this.shared.previewEncode(this.currentSource.selectStreams((0, norsk_sdk_1.selectExactKey)(this.videoStreamKey))[0], this.cfg.__global.hardware);
161
- this.audioEncode = await this.norsk.processor.transform.audioEncode({
162
- id: `${this.id}-audio-encode`,
163
- channelLayout: 'stereo',
164
- bitrate: 64000,
165
- outputRenditionName: `${this.id}-preview`,
166
- codec: {
167
- kind: 'aac',
168
- sampleRate: audioMetadata.sampleRate,
169
- profile: 'lc'
170
- }
171
- });
172
- const localDestination = {
173
- id: `${this.id}-local`,
174
- type: 'local',
175
- retentionPeriodSeconds: 360
176
- };
177
- this.audioCmaf = await this.norsk.output.cmafAudio({
178
- id: `${this.id}-cmaf-audio`,
179
- segmentDurationSeconds: 2,
180
- partDurationSeconds: 0.5,
181
- destinations: [localDestination]
182
- });
183
- this.videoCmaf = await this.norsk.output.cmafVideo({
184
- id: `${this.id}-cmaf-video`,
185
- segmentDurationSeconds: 2,
186
- partDurationSeconds: 0.5,
187
- destinations: [localDestination]
188
- });
189
- this.mvCmaf = await this.norsk.output.cmafMultiVariant({
190
- id: `${this.id}-cmaf-mv`,
191
- playlistName: `${this.id}-mv`,
192
- destinations: [localDestination]
193
- });
194
- this.smooth.subscribeToPins(this.currentSource.selectAvToPin("source"), (ctx) => {
195
- if (ctx.streams.length == 2)
196
- return 'accept';
197
- return 'deny';
198
- });
199
- this.audioEncode.subscribe(this.currentSource.selectAudio());
200
- this.audioCmaf.subscribe([
201
- { source: this.audioEncode, sourceSelector: norsk_sdk_1.selectAudio }
202
- ]);
203
- this.videoCmaf.subscribe([
204
- { source: this.videoEncode, sourceSelector: norsk_sdk_1.selectVideo }
205
- ]);
206
- this.mvCmaf.subscribe([
207
- { source: this.audioCmaf, sourceSelector: norsk_sdk_1.selectPlaylist },
208
- { source: this.videoCmaf, sourceSelector: norsk_sdk_1.selectPlaylist },
209
- ]);
210
- this.updates.raiseEvent({
211
- type: 'content-player-created',
212
- url: this.mvCmaf.url
213
- });
214
- this.passthrough?.subscribe([
215
- { source: this.smooth, sourceSelector: norsk_sdk_1.selectAV }
216
- ]);
217
- this.writer.subscribe(this.currentSource.selectStreams());
218
- return false;
219
- }
220
- teardown() {
221
- }
222
- }
223
- exports.ActionReplay = ActionReplay;
224
- //# sourceMappingURL=runtime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/processor.actionReplay/runtime.ts"],"names":[],"mappings":";;;AAAA,qDAG+B;AAE/B,wFAA0M;AAE1M,mEAA6E;AAC7E,yEAA0F;AAC1F,2BAA4B;AAC5B,uEAAoH;AA+BpH,MAAqB,sBAAsB;IACzC,KAAK,CAAC,MAAM,CAAC,KAAY,EAAE,GAAuB,EAAE,EAA2B,EAAE,OAA4D;QAC3I,MAAM,IAAI,GAAG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AAI,CAAC,WAAW,EAAE,SAAS,CAAC;YAC1B,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,cAAc,EAAE,oBAAQ,EAAE;SAClD,CAAC,CAAA;QAGF,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE,CAAC,CAAC;QAG1D,OAAO,KAAK,CAAC;IACf,CAAC;IAED,QAAQ;IAER,CAAC;CACF;AA/PD,oCA+PC"}
@@ -1,7 +0,0 @@
1
- import type { ActionReplayState, ActionReplayConfig, ActionReplayCommand } from "./runtime";
2
- declare function InlineView({ state, config, sendCommand }: {
3
- state: ActionReplayState;
4
- config: ActionReplayConfig;
5
- sendCommand: (cmd: ActionReplayCommand) => void;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- export default InlineView;