@norskvideo/norsk-studio-built-ins 1.10.0 → 1.11.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.
Files changed (119) hide show
  1. package/lib/test/rtmp-input.js +59 -46
  2. package/lib/test/rtmp-input.js.map +1 -1
  3. package/lib/test/rtmp-output.js +28 -12
  4. package/lib/test/rtmp-output.js.map +1 -1
  5. package/lib/test/srt-input-caller.js +33 -19
  6. package/lib/test/srt-input-caller.js.map +1 -1
  7. package/lib/test/srt-input-listener.js +151 -82
  8. package/lib/test/srt-input-listener.js.map +1 -1
  9. package/lib/test/srt-output.js +2 -2
  10. package/lib/test/srt-output.js.map +1 -1
  11. package/lib/test/udp-ts-input.js +10 -9
  12. package/lib/test/udp-ts-input.js.map +1 -1
  13. package/lib/util.latency/runtime.js.map +1 -1
  14. package/lib/util.timestamps/runtime.js.map +1 -1
  15. package/package.json +3 -8
  16. package/client/processor.audioLevel/styles.css +0 -164
  17. package/client/processor.audioMixer/styles.css +0 -249
  18. package/lib/input.mediaconnect/flow-selection.d.ts +0 -9
  19. package/lib/input.mediaconnect/flow-selection.js +0 -40
  20. package/lib/input.mediaconnect/flow-selection.js.map +0 -1
  21. package/lib/input.mediaconnect/info.d.ts +0 -3
  22. package/lib/input.mediaconnect/info.js +0 -70
  23. package/lib/input.mediaconnect/info.js.map +0 -1
  24. package/lib/input.mediaconnect/node-view.d.ts +0 -6
  25. package/lib/input.mediaconnect/node-view.js +0 -38
  26. package/lib/input.mediaconnect/node-view.js.map +0 -1
  27. package/lib/input.mediaconnect/output-selection.d.ts +0 -9
  28. package/lib/input.mediaconnect/output-selection.js +0 -55
  29. package/lib/input.mediaconnect/output-selection.js.map +0 -1
  30. package/lib/input.mediaconnect/runtime.d.ts +0 -23
  31. package/lib/input.mediaconnect/runtime.js +0 -133
  32. package/lib/input.mediaconnect/runtime.js.map +0 -1
  33. package/lib/output.medialive/channel-selection.d.ts +0 -9
  34. package/lib/output.medialive/channel-selection.js +0 -40
  35. package/lib/output.medialive/channel-selection.js.map +0 -1
  36. package/lib/output.medialive/fullscreen.d.ts +0 -6
  37. package/lib/output.medialive/fullscreen.js +0 -31
  38. package/lib/output.medialive/fullscreen.js.map +0 -1
  39. package/lib/output.medialive/info.d.ts +0 -3
  40. package/lib/output.medialive/info.js +0 -111
  41. package/lib/output.medialive/info.js.map +0 -1
  42. package/lib/output.medialive/inline.d.ts +0 -6
  43. package/lib/output.medialive/inline.js +0 -30
  44. package/lib/output.medialive/inline.js.map +0 -1
  45. package/lib/output.medialive/input-selection.d.ts +0 -9
  46. package/lib/output.medialive/input-selection.js +0 -58
  47. package/lib/output.medialive/input-selection.js.map +0 -1
  48. package/lib/output.medialive/node-view.d.ts +0 -6
  49. package/lib/output.medialive/node-view.js +0 -36
  50. package/lib/output.medialive/node-view.js.map +0 -1
  51. package/lib/output.medialive/runtime.d.ts +0 -34
  52. package/lib/output.medialive/runtime.js +0 -142
  53. package/lib/output.medialive/runtime.js.map +0 -1
  54. package/lib/output.medialive/url-selection.d.ts +0 -9
  55. package/lib/output.medialive/url-selection.js +0 -45
  56. package/lib/output.medialive/url-selection.js.map +0 -1
  57. package/lib/processor.actionReplay/info.d.ts +0 -5
  58. package/lib/processor.actionReplay/info.js +0 -100
  59. package/lib/processor.actionReplay/info.js.map +0 -1
  60. package/lib/processor.actionReplay/runtime.d.ts +0 -59
  61. package/lib/processor.actionReplay/runtime.js +0 -224
  62. package/lib/processor.actionReplay/runtime.js.map +0 -1
  63. package/lib/processor.actionReplay/summary.d.ts +0 -7
  64. package/lib/processor.actionReplay/summary.js +0 -76
  65. package/lib/processor.actionReplay/summary.js.map +0 -1
  66. package/lib/processor.audioLevel/info.d.ts +0 -3
  67. package/lib/processor.audioLevel/info.js +0 -83
  68. package/lib/processor.audioLevel/info.js.map +0 -1
  69. package/lib/processor.audioLevel/inline-view.d.ts +0 -6
  70. package/lib/processor.audioLevel/inline-view.js +0 -23
  71. package/lib/processor.audioLevel/inline-view.js.map +0 -1
  72. package/lib/processor.audioLevel/runtime.d.ts +0 -49
  73. package/lib/processor.audioLevel/runtime.js +0 -82
  74. package/lib/processor.audioLevel/runtime.js.map +0 -1
  75. package/lib/processor.audioLevel/summary-view.d.ts +0 -7
  76. package/lib/processor.audioLevel/summary-view.js +0 -36
  77. package/lib/processor.audioLevel/summary-view.js.map +0 -1
  78. package/lib/processor.audioMixer/fullscreen-view.d.ts +0 -8
  79. package/lib/processor.audioMixer/fullscreen-view.js +0 -121
  80. package/lib/processor.audioMixer/fullscreen-view.js.map +0 -1
  81. package/lib/processor.audioMixer/info.d.ts +0 -4
  82. package/lib/processor.audioMixer/info.js +0 -148
  83. package/lib/processor.audioMixer/info.js.map +0 -1
  84. package/lib/processor.audioMixer/inline-view.d.ts +0 -7
  85. package/lib/processor.audioMixer/inline-view.js +0 -43
  86. package/lib/processor.audioMixer/inline-view.js.map +0 -1
  87. package/lib/processor.audioMixer/runtime.d.ts +0 -119
  88. package/lib/processor.audioMixer/runtime.js +0 -142
  89. package/lib/processor.audioMixer/runtime.js.map +0 -1
  90. package/lib/processor.audioMixer/summary-view.d.ts +0 -7
  91. package/lib/processor.audioMixer/summary-view.js +0 -11
  92. package/lib/processor.audioMixer/summary-view.js.map +0 -1
  93. package/lib/processor.aws-transcribe/info.d.ts +0 -3
  94. package/lib/processor.aws-transcribe/info.js +0 -81
  95. package/lib/processor.aws-transcribe/info.js.map +0 -1
  96. package/lib/processor.aws-transcribe/runtime.d.ts +0 -39
  97. package/lib/processor.aws-transcribe/runtime.js +0 -164
  98. package/lib/processor.aws-transcribe/runtime.js.map +0 -1
  99. package/lib/processor.aws-transcribe/transcribe-language-selection.d.ts +0 -9
  100. package/lib/processor.aws-transcribe/transcribe-language-selection.js +0 -40
  101. package/lib/processor.aws-transcribe/transcribe-language-selection.js.map +0 -1
  102. package/lib/processor.aws-transcribe/translate-language-selection.d.ts +0 -9
  103. package/lib/processor.aws-transcribe/translate-language-selection.js +0 -40
  104. package/lib/processor.aws-transcribe/translate-language-selection.js.map +0 -1
  105. package/lib/processor.fixedLadder/newFile.d.ts +0 -3
  106. package/lib/processor.fixedLadder/newFile.js +0 -145
  107. package/lib/processor.fixedLadder/newFile.js.map +0 -1
  108. package/lib/processor.monetise/info.d.ts +0 -3
  109. package/lib/processor.monetise/info.js +0 -90
  110. package/lib/processor.monetise/info.js.map +0 -1
  111. package/lib/processor.monetise/runtime.d.ts +0 -57
  112. package/lib/processor.monetise/runtime.js +0 -141
  113. package/lib/processor.monetise/runtime.js.map +0 -1
  114. package/lib/processor.monetise/summary.d.ts +0 -7
  115. package/lib/processor.monetise/summary.js +0 -39
  116. package/lib/processor.monetise/summary.js.map +0 -1
  117. package/lib/test/audio-mixer.d.ts +0 -0
  118. package/lib/test/audio-mixer.js +0 -2
  119. package/lib/test/audio-mixer.js.map +0 -1
@@ -1,164 +0,0 @@
1
- .audio-level-container {
2
- height: 210px;
3
- width: 200px;
4
- grid-template-columns: 1fr 1fr;
5
- grid-template-rows: 150px 40px 25px;
6
- }
7
-
8
- .audio-level-container-inline {
9
- height: 108px;
10
- width: 180px;
11
- display: flex;
12
- flex-direction: row-reverse;
13
- }
14
-
15
- .audio-level-container div {
16
- float: left;
17
- }
18
-
19
- .preview-levels-inline {
20
- height: 100%;
21
- width: 30px;
22
- background-color: #333;
23
- border-radius: 2px;
24
- display: flex;
25
- grid-template-columns: 30px 30px;
26
- padding: 4px 3px;
27
- margin: auto;
28
- margin-top: 0px;
29
- grid-column-gap: 5px;
30
- }
31
-
32
- .preview-levels-summary {
33
- height: 100%;
34
- width: 30px;
35
- background-color: #333;
36
- border-radius: 2px;
37
- display: grid;
38
- grid-template-columns: 30px 30px;
39
- padding: 4px 3px;
40
- margin: auto;
41
- margin-top: 0px;
42
- grid-column-gap: 5px;
43
- }
44
-
45
- /* paint not glowing LEDs */
46
- .preview-level {
47
- position: relative;
48
- margin: 0 2px;
49
- flex-grow: 1;
50
- z-index: 3;
51
- background-color: transparent;
52
- background-repeat: repeat-y;
53
- background-image: linear-gradient(to bottom, #666 3px, transparent 1px);
54
- background-size: 100% 4px;
55
- }
56
-
57
- /* paint glowing LEDs */
58
- .preview-level:before {
59
- width: 100%;
60
- height: 100%;
61
- content: ' ';
62
- position: absolute;
63
- top: 0px;
64
- left: 0px;
65
- z-index: 1;
66
- background-repeat: no-repeat;
67
- background-image: linear-gradient(to top, green 0%, yellow 80%, red 100%);
68
- background-size: 100% 100%;
69
- }
70
-
71
- .clip-0:before {
72
- clip-path: inset(0% 0 0 0);
73
- -webkit-clip-path: inset(100% 0 0 0);
74
- }
75
-
76
- .clip-10:before {
77
- clip-path: inset(10% 0 0 0);
78
- -webkit-clip-path: inset(90% 0 0 0);
79
- }
80
-
81
- .clip-20:before {
82
- clip-path: inset(80% 0 0 0);
83
- -webkit-clip-path: inset(80% 0 0 0);
84
- }
85
-
86
- .clip-30:before {
87
- clip-path: inset(70% 0 0 0);
88
- -webkit-clip-path: inset(70% 0 0 0);
89
- }
90
-
91
- .clip-40:before {
92
- clip-path: inset(60% 0 0 0);
93
- -webkit-clip-path: inset(60% 0 0 0);
94
- }
95
-
96
- .clip-50:before {
97
- clip-path: inset(50% 0 0 0);
98
- -webkit-clip-path: inset(50% 0 0 0);
99
- }
100
-
101
- .clip-60:before {
102
- clip-path: inset(40% 0 0 0);
103
- -webkit-clip-path: inset(40% 0 0 0);
104
- }
105
-
106
- .clip-70:before {
107
- clip-path: inset(30% 0 0 0);
108
- -webkit-clip-path: inset(30% 0 0 0);
109
- }
110
-
111
-
112
- .clip-80:before {
113
- clip-path: inset(20% 0 0 0);
114
- -webkit-clip-path: inset(20% 0 0 0);
115
- }
116
-
117
- .clip-90:before {
118
- clip-path: inset(10% 0 0 0);
119
- -webkit-clip-path: inset(10% 0 0 0);
120
- }
121
-
122
- .clip-100:before {
123
- clip-path: inset(0% 0 0 0);
124
- -webkit-clip-path: inset(0% 0 0 0);
125
- }
126
-
127
-
128
-
129
- /* paint gap lines of LEDs */
130
- .preview-level::after {
131
- width: 100%;
132
- height: 100%;
133
- content: ' ';
134
- position: absolute;
135
- top: 0px;
136
- left: 0px;
137
- z-index: 2;
138
- margin-top: 3px;
139
- background-image: linear-gradient(to bottom, #333 1px
140
- /* space between leds*/
141
- , transparent 1px);
142
- background-repeat: repeat-y;
143
- background-size: 100% 4px;
144
- /* 4px LED height */
145
- background-color: transparent;
146
- }
147
-
148
- #audio-slider {
149
- width: 150px;
150
- }
151
-
152
- #db-level-max {
153
- right: 36px;
154
- top: 0;
155
- }
156
-
157
- #db-level-min {
158
- right: 23px;
159
- bottom: 26px;
160
- }
161
-
162
- #node-gain-level {
163
- align-self: end;
164
- }
@@ -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,9 +0,0 @@
1
- import type { MediaConnectConfig } from "./runtime";
2
- type FlowSelectionProps = {
3
- defaultValue?: string;
4
- id: string;
5
- onChanged: (value: string) => void;
6
- latest: Partial<MediaConnectConfig>;
7
- };
8
- declare function FlowSelection(props: FlowSelectionProps): import("react/jsx-runtime").JSX.Element;
9
- export default FlowSelection;
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_1 = require("react");
5
- function FlowSelection(props) {
6
- const [loading, setLoading] = (0, react_1.useState)(true);
7
- (0, react_1.useEffect)(() => {
8
- const fn = async () => {
9
- const result = await fetch('components/input.mediaconnect/flows');
10
- if (result.ok && result.body) {
11
- const flows = await result.json();
12
- setFlows(flows);
13
- setLoading(false);
14
- if (props.defaultValue)
15
- props.onChanged(props.defaultValue);
16
- }
17
- else {
18
- const text = await result.text();
19
- throw new Error(text);
20
- }
21
- };
22
- fn().catch(console.error);
23
- }, []);
24
- const [flows, setFlows] = (0, react_1.useState)([]);
25
- if (loading) {
26
- return (0, jsx_runtime_1.jsx)("div", { children: "Loading.." });
27
- }
28
- if (flows.length == 0) {
29
- return (0, jsx_runtime_1.jsx)("div", { children: "No flows loaded" });
30
- }
31
- return (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("select", { defaultValue: props.defaultValue, className: `node-editor-select-input`, id: props.id, onChange: myOnChange, onBlur: myOnChange, children: [(0, jsx_runtime_1.jsx)("option", { value: '', children: "---" }, "empty"), flows.map((o, i) => {
32
- const val = o.FlowArn;
33
- return (0, jsx_runtime_1.jsxs)("option", { value: val, children: ["-", o.Description] }, i);
34
- })] }) });
35
- function myOnChange(e) {
36
- props.onChanged(e.target.value);
37
- }
38
- }
39
- exports.default = FlowSelection;
40
- //# sourceMappingURL=flow-selection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flow-selection.js","sourceRoot":"","sources":["../../src/input.mediaconnect/flow-selection.tsx"],"names":[],"mappings":";;;AAAA,iCAAyD;AAYzD,SAAS,aAAa,CAAC,KAAyB;IAC9C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IAE7C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,EAAE,GAAG,KAAK,IAAI,EAAE;YACpB,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,qCAAqC,CAAC,CAAA;YACjE,IAAI,MAAM,CAAC,EAAE,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;gBAC7B,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,IAAI,EAAkB,CAAC;gBAClD,QAAQ,CAAC,KAAK,CAAC,CAAC;gBAChB,UAAU,CAAC,KAAK,CAAC,CAAC;gBAClB,IAAI,KAAK,CAAC,YAAY;oBACpB,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;YACxC,CAAC;iBAAM,CAAC;gBACN,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;gBACjC,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;QACH,CAAC,CAAA;QACD,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAe,EAAE,CAAC,CAAC;IAErD,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,wDAAoB,CAAA;IAC7B,CAAC;IAED,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;QACtB,OAAO,8DAA0B,CAAA;IACnC,CAAC;IAED,OAAO,0CACL,oCAAQ,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,SAAS,EAAE,0BAA0B,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,aACrI,mCAAoB,KAAK,EAAC,EAAE,qBAAhB,OAAO,CAAsB,EACxC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;oBAClB,MAAM,GAAG,GAAG,CAAC,CAAC,OAAO,CAAC;oBACtB,OAAO,oCAAgB,KAAK,EAAE,GAAG,kBAAgB,CAAC,CAAC,WAAW,KAA1C,CAAC,CAAmD,CAAA;gBAC1E,CAAC,CAAC,IACK,GACL,CAAA;IAGN,SAAS,UAAU,CAAC,CAAiC;QACnD,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;AACH,CAAC;AAED,kBAAe,aAAa,CAAC"}
@@ -1,3 +0,0 @@
1
- import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
2
- import type { MediaConnectConfig } from "./runtime";
3
- export default function ({ defineComponent, Av, validation: { Z } }: Registration): import("@norskvideo/norsk-studio/lib/extension/client-types").NodeInfo<MediaConnectConfig, object, object, object>;
@@ -1,70 +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
- const react_1 = __importDefault(require("react"));
30
- function default_1({ defineComponent, Av, validation: { Z } }) {
31
- const FlowSelection = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./flow-selection'))));
32
- const OutputSelection = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./output-selection'))));
33
- const NodeView = react_1.default.lazy(async () => Promise.resolve().then(() => __importStar(require('./node-view'))));
34
- return defineComponent({
35
- identifier: 'input.mediaconnect',
36
- category: 'input',
37
- name: "Media Connect Input",
38
- subscription: {
39
- produces: {
40
- type: "single-stream",
41
- media: Av
42
- }
43
- },
44
- designtime: {
45
- node: NodeView
46
- },
47
- configForm: {
48
- form: {
49
- flowArn: {
50
- help: "The flow to connect to",
51
- hint: {
52
- type: "custom",
53
- component: FlowSelection,
54
- validation: Z.string().min(1, "Choosing a flow is mandatory")
55
- }
56
- },
57
- outputArn: {
58
- help: "Output of the flow to be used",
59
- hint: {
60
- type: "custom",
61
- component: OutputSelection,
62
- validation: Z.string().min(1, "Choosing an output is mandatory")
63
- }
64
- }
65
- }
66
- }
67
- });
68
- }
69
- exports.default = default_1;
70
- //# sourceMappingURL=info.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/input.mediaconnect/info.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kDAA0B;AAE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sk-studio/lib/shared/document";
3
- declare function NodeView(props: {
4
- node: NodeDescription<MediaConnectConfig>;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- export default NodeView;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_1 = require("react");
5
- function NodeView(props) {
6
- const [loading, setLoading] = (0, react_1.useState)(true);
7
- const [flow, setFlow] = (0, react_1.useState)(undefined);
8
- (0, react_1.useEffect)(() => {
9
- if (!props.node.config.flowArn)
10
- return;
11
- const fn = async () => {
12
- const result = await fetch('components/input.mediaconnect/flows/' + props.node.config.flowArn);
13
- if (result.ok && result.body) {
14
- const flow = await result.json();
15
- setFlow(flow);
16
- setLoading(false);
17
- }
18
- else {
19
- const text = await result.text();
20
- throw new Error(text);
21
- }
22
- };
23
- fn().catch(console.error);
24
- }, [props.node.config.flowArn]);
25
- const output = flow?.Outputs?.find((o) => o.OutputArn == props.node.config.outputArn);
26
- if (loading) {
27
- return (0, jsx_runtime_1.jsx)("div", { children: "..." });
28
- }
29
- if (!flow) {
30
- return (0, jsx_runtime_1.jsx)("div", { children: "[Error: Failed to load flow]" });
31
- }
32
- if (!output) {
33
- return (0, jsx_runtime_1.jsx)("div", { children: "[Error: Missing output on flow]" });
34
- }
35
- return (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { children: ["Name: ", flow.Name] }), (0, jsx_runtime_1.jsxs)("div", { children: ["Description: ", flow.Description] }), (0, jsx_runtime_1.jsxs)("div", { children: ["Protocol: ", output.Transport?.Protocol] }), (0, jsx_runtime_1.jsxs)("div", { children: ["Address: ", output.ListenerAddress] }), (0, jsx_runtime_1.jsxs)("div", { children: ["Port: ", output.Port] })] });
36
- }
37
- exports.default = NodeView;
38
- //# sourceMappingURL=node-view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node-view.js","sourceRoot":"","sources":["../../src/input.mediaconnect/node-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,OAAO,kDAAc,CAAA;IACvB,CAAC;IAED,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,2EAAuC,CAAA;IAChD,CAAC;IAED,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,8EAA0C,CAAA;IACnD,CAAC;IAED,OAAO,4CACL,sDAAY,IAAI,CAAC,IAAI,IAAO,EAC5B,6DAAmB,IAAI,CAAC,WAAW,IAAO,EAC1C,0DAAgB,MAAM,CAAC,SAAS,EAAE,QAAQ,IAAO,EACjD,yDAAe,MAAM,CAAC,eAAe,IAAO,EAC5C,sDAAY,MAAM,CAAC,IAAI,IAAO,IAC1B,CAAA;AACR,CAAC;AAED,kBAAe,QAAQ,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { MediaConnectConfig } from "./runtime";
2
- type OutputSelectionProps = {
3
- defaultValue?: string;
4
- id: string;
5
- onChanged: (value: string) => void;
6
- latest: Partial<MediaConnectConfig>;
7
- };
8
- declare function OutputSelection(props: OutputSelectionProps): import("react/jsx-runtime").JSX.Element;
9
- export default OutputSelection;
@@ -1,55 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_1 = require("react");
5
- function OutputSelection(props) {
6
- const [loading, setLoading] = (0, react_1.useState)(true);
7
- const [flow, setFlow] = (0, react_1.useState)(undefined);
8
- (0, react_1.useEffect)(() => {
9
- const fn = async () => {
10
- setLoading(true);
11
- if (props.latest.flowArn) {
12
- const result = await fetch('components/input.mediaconnect/flows/' + props.latest.flowArn);
13
- if (result.ok && result.body) {
14
- const flow = await result.json();
15
- setFlow(flow);
16
- setLoading(false);
17
- const firstOutput = flow.Outputs?.[0]?.OutputArn;
18
- if (firstOutput && flow.Outputs?.length == 1 && firstOutput !== props.defaultValue) {
19
- props.onChanged(firstOutput);
20
- }
21
- else if (props.defaultValue) {
22
- props.onChanged(props.defaultValue);
23
- }
24
- }
25
- else {
26
- const text = await result.text();
27
- throw new Error(text);
28
- }
29
- }
30
- };
31
- fn().catch(console.error);
32
- }, [props.latest.flowArn]);
33
- if (loading) {
34
- return (0, jsx_runtime_1.jsx)("div", { children: "..." });
35
- }
36
- if (flow == undefined) {
37
- return (0, jsx_runtime_1.jsx)("div", { children: "..." });
38
- }
39
- if (!flow.Outputs) {
40
- return (0, jsx_runtime_1.jsx)("div", { children: "Flow has no outputs" });
41
- }
42
- const firstOutput = flow.Outputs?.[0]?.OutputArn;
43
- if (firstOutput && flow.Outputs.length == 1) {
44
- return (0, jsx_runtime_1.jsxs)("div", { children: [flow.Outputs[0].ListenerAddress ?? '', ":", flow.Outputs[0].Port ?? 0] });
45
- }
46
- return (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("select", { defaultValue: props.defaultValue, className: `node-editor-select-input`, id: props.id, onChange: myOnChange, onBlur: myOnChange, children: [(0, jsx_runtime_1.jsx)("option", { value: "", children: "---" }, "empty"), flow.Outputs.map((o, i) => {
47
- const val = o.OutputArn;
48
- return (0, jsx_runtime_1.jsxs)("option", { value: val, children: [o.Name, "-", o.Description] }, i);
49
- })] }) });
50
- function myOnChange(e) {
51
- props.onChanged(e.target.value);
52
- }
53
- }
54
- exports.default = OutputSelection;
55
- //# sourceMappingURL=output-selection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"output-selection.js","sourceRoot":"","sources":["../../src/input.mediaconnect/output-selection.tsx"],"names":[],"mappings":";;;AAAA,iCAAyD;AAYzD,SAAS,eAAe,CAAC,KAA2B;IAClD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAmB,SAAS,CAAC,CAAC;IAE9D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,EAAE,GAAG,KAAK,IAAI,EAAE;YACpB,UAAU,CAAC,IAAI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