@norskvideo/norsk-studio-built-ins 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/client/info.js +17990 -0
  2. package/client/output.preview/styles.css +128 -0
  3. package/client/processor.audioLevel/styles.css +164 -0
  4. package/client/processor.audioMixer/styles.css +249 -0
  5. package/client/processor.cascadingSwitch/extra.css +0 -0
  6. package/lib/index.d.ts +3 -0
  7. package/lib/index.js +15 -0
  8. package/lib/index.js.map +1 -0
  9. package/lib/info.d.ts +3 -0
  10. package/lib/info.js +74 -0
  11. package/lib/info.js.map +1 -0
  12. package/lib/input.mediaconnect/flow-selection.d.ts +9 -0
  13. package/lib/input.mediaconnect/flow-selection.js +40 -0
  14. package/lib/input.mediaconnect/flow-selection.js.map +1 -0
  15. package/lib/input.mediaconnect/info.d.ts +3 -0
  16. package/lib/input.mediaconnect/info.js +70 -0
  17. package/lib/input.mediaconnect/info.js.map +1 -0
  18. package/lib/input.mediaconnect/node-view.d.ts +6 -0
  19. package/lib/input.mediaconnect/node-view.js +38 -0
  20. package/lib/input.mediaconnect/node-view.js.map +1 -0
  21. package/lib/input.mediaconnect/output-selection.d.ts +9 -0
  22. package/lib/input.mediaconnect/output-selection.js +55 -0
  23. package/lib/input.mediaconnect/output-selection.js.map +1 -0
  24. package/lib/input.mediaconnect/runtime.d.ts +23 -0
  25. package/lib/input.mediaconnect/runtime.js +133 -0
  26. package/lib/input.mediaconnect/runtime.js.map +1 -0
  27. package/lib/input.rtmp/info.d.ts +3 -0
  28. package/lib/input.rtmp/info.js +101 -0
  29. package/lib/input.rtmp/info.js.map +1 -0
  30. package/lib/input.rtmp/inline-view.d.ts +6 -0
  31. package/lib/input.rtmp/inline-view.js +16 -0
  32. package/lib/input.rtmp/inline-view.js.map +1 -0
  33. package/lib/input.rtmp/runtime.d.ts +19 -0
  34. package/lib/input.rtmp/runtime.js +75 -0
  35. package/lib/input.rtmp/runtime.js.map +1 -0
  36. package/lib/input.rtmp/summary-view.d.ts +6 -0
  37. package/lib/input.rtmp/summary-view.js +22 -0
  38. package/lib/input.rtmp/summary-view.js.map +1 -0
  39. package/lib/input.silence/info.d.ts +3 -0
  40. package/lib/input.silence/info.js +47 -0
  41. package/lib/input.silence/info.js.map +1 -0
  42. package/lib/input.silence/runtime.d.ts +22 -0
  43. package/lib/input.silence/runtime.js +52 -0
  44. package/lib/input.silence/runtime.js.map +1 -0
  45. package/lib/input.srt-caller/info.d.ts +3 -0
  46. package/lib/input.srt-caller/info.js +74 -0
  47. package/lib/input.srt-caller/info.js.map +1 -0
  48. package/lib/input.srt-caller/runtime.d.ts +12 -0
  49. package/lib/input.srt-caller/runtime.js +14 -0
  50. package/lib/input.srt-caller/runtime.js.map +1 -0
  51. package/lib/input.srt-listener/info.d.ts +3 -0
  52. package/lib/input.srt-listener/info.js +125 -0
  53. package/lib/input.srt-listener/info.js.map +1 -0
  54. package/lib/input.srt-listener/inline-view.d.ts +6 -0
  55. package/lib/input.srt-listener/inline-view.js +16 -0
  56. package/lib/input.srt-listener/inline-view.js.map +1 -0
  57. package/lib/input.srt-listener/runtime.d.ts +24 -0
  58. package/lib/input.srt-listener/runtime.js +75 -0
  59. package/lib/input.srt-listener/runtime.js.map +1 -0
  60. package/lib/input.srt-listener/summary-view.d.ts +6 -0
  61. package/lib/input.srt-listener/summary-view.js +22 -0
  62. package/lib/input.srt-listener/summary-view.js.map +1 -0
  63. package/lib/input.udp-ts/info.d.ts +3 -0
  64. package/lib/input.udp-ts/info.js +34 -0
  65. package/lib/input.udp-ts/info.js.map +1 -0
  66. package/lib/input.udp-ts/runtime.d.ts +10 -0
  67. package/lib/input.udp-ts/runtime.js +24 -0
  68. package/lib/input.udp-ts/runtime.js.map +1 -0
  69. package/lib/input.videoTestCard/info.d.ts +3 -0
  70. package/lib/input.videoTestCard/info.js +42 -0
  71. package/lib/input.videoTestCard/info.js.map +1 -0
  72. package/lib/input.videoTestCard/runtime.d.ts +10 -0
  73. package/lib/input.videoTestCard/runtime.js +14 -0
  74. package/lib/input.videoTestCard/runtime.js.map +1 -0
  75. package/lib/output.autoCmaf/form-views.d.ts +3 -0
  76. package/lib/output.autoCmaf/form-views.js +13 -0
  77. package/lib/output.autoCmaf/form-views.js.map +1 -0
  78. package/lib/output.autoCmaf/fullscreen.d.ts +6 -0
  79. package/lib/output.autoCmaf/fullscreen.js +31 -0
  80. package/lib/output.autoCmaf/fullscreen.js.map +1 -0
  81. package/lib/output.autoCmaf/info.d.ts +3 -0
  82. package/lib/output.autoCmaf/info.js +197 -0
  83. package/lib/output.autoCmaf/info.js.map +1 -0
  84. package/lib/output.autoCmaf/runtime.d.ts +66 -0
  85. package/lib/output.autoCmaf/runtime.js +285 -0
  86. package/lib/output.autoCmaf/runtime.js.map +1 -0
  87. package/lib/output.autoCmaf/summary.d.ts +6 -0
  88. package/lib/output.autoCmaf/summary.js +32 -0
  89. package/lib/output.autoCmaf/summary.js.map +1 -0
  90. package/lib/output.medialive/channel-selection.d.ts +9 -0
  91. package/lib/output.medialive/channel-selection.js +40 -0
  92. package/lib/output.medialive/channel-selection.js.map +1 -0
  93. package/lib/output.medialive/fullscreen.d.ts +6 -0
  94. package/lib/output.medialive/fullscreen.js +31 -0
  95. package/lib/output.medialive/fullscreen.js.map +1 -0
  96. package/lib/output.medialive/info.d.ts +3 -0
  97. package/lib/output.medialive/info.js +111 -0
  98. package/lib/output.medialive/info.js.map +1 -0
  99. package/lib/output.medialive/inline.d.ts +6 -0
  100. package/lib/output.medialive/inline.js +30 -0
  101. package/lib/output.medialive/inline.js.map +1 -0
  102. package/lib/output.medialive/input-selection.d.ts +9 -0
  103. package/lib/output.medialive/input-selection.js +58 -0
  104. package/lib/output.medialive/input-selection.js.map +1 -0
  105. package/lib/output.medialive/node-view.d.ts +6 -0
  106. package/lib/output.medialive/node-view.js +36 -0
  107. package/lib/output.medialive/node-view.js.map +1 -0
  108. package/lib/output.medialive/runtime.d.ts +34 -0
  109. package/lib/output.medialive/runtime.js +142 -0
  110. package/lib/output.medialive/runtime.js.map +1 -0
  111. package/lib/output.medialive/url-selection.d.ts +9 -0
  112. package/lib/output.medialive/url-selection.js +45 -0
  113. package/lib/output.medialive/url-selection.js.map +1 -0
  114. package/lib/output.preview/info.d.ts +5 -0
  115. package/lib/output.preview/info.js +103 -0
  116. package/lib/output.preview/info.js.map +1 -0
  117. package/lib/output.preview/inline-view.d.ts +6 -0
  118. package/lib/output.preview/inline-view.js +29 -0
  119. package/lib/output.preview/inline-view.js.map +1 -0
  120. package/lib/output.preview/runtime.d.ts +34 -0
  121. package/lib/output.preview/runtime.js +86 -0
  122. package/lib/output.preview/runtime.js.map +1 -0
  123. package/lib/output.rtmp/info.d.ts +3 -0
  124. package/lib/output.rtmp/info.js +76 -0
  125. package/lib/output.rtmp/info.js.map +1 -0
  126. package/lib/output.rtmp/inline-view.d.ts +6 -0
  127. package/lib/output.rtmp/inline-view.js +10 -0
  128. package/lib/output.rtmp/inline-view.js.map +1 -0
  129. package/lib/output.rtmp/runtime.d.ts +23 -0
  130. package/lib/output.rtmp/runtime.js +51 -0
  131. package/lib/output.rtmp/runtime.js.map +1 -0
  132. package/lib/output.srt/info.d.ts +3 -0
  133. package/lib/output.srt/info.js +102 -0
  134. package/lib/output.srt/info.js.map +1 -0
  135. package/lib/output.srt/runtime.d.ts +12 -0
  136. package/lib/output.srt/runtime.js +14 -0
  137. package/lib/output.srt/runtime.js.map +1 -0
  138. package/lib/output.statistics/info.d.ts +4 -0
  139. package/lib/output.statistics/info.js +69 -0
  140. package/lib/output.statistics/info.js.map +1 -0
  141. package/lib/output.statistics/inline-view.d.ts +6 -0
  142. package/lib/output.statistics/inline-view.js +32 -0
  143. package/lib/output.statistics/inline-view.js.map +1 -0
  144. package/lib/output.statistics/runtime.d.ts +18 -0
  145. package/lib/output.statistics/runtime.js +36 -0
  146. package/lib/output.statistics/runtime.js.map +1 -0
  147. package/lib/output.udpTs/info.d.ts +3 -0
  148. package/lib/output.udpTs/info.js +33 -0
  149. package/lib/output.udpTs/info.js.map +1 -0
  150. package/lib/output.udpTs/runtime.d.ts +10 -0
  151. package/lib/output.udpTs/runtime.js +14 -0
  152. package/lib/output.udpTs/runtime.js.map +1 -0
  153. package/lib/output.whep/info.d.ts +3 -0
  154. package/lib/output.whep/info.js +28 -0
  155. package/lib/output.whep/info.js.map +1 -0
  156. package/lib/output.whep/runtime.d.ts +14 -0
  157. package/lib/output.whep/runtime.js +21 -0
  158. package/lib/output.whep/runtime.js.map +1 -0
  159. package/lib/processor.actionReplay/info.d.ts +5 -0
  160. package/lib/processor.actionReplay/info.js +100 -0
  161. package/lib/processor.actionReplay/info.js.map +1 -0
  162. package/lib/processor.actionReplay/runtime.d.ts +59 -0
  163. package/lib/processor.actionReplay/runtime.js +224 -0
  164. package/lib/processor.actionReplay/runtime.js.map +1 -0
  165. package/lib/processor.actionReplay/summary.d.ts +7 -0
  166. package/lib/processor.actionReplay/summary.js +76 -0
  167. package/lib/processor.actionReplay/summary.js.map +1 -0
  168. package/lib/processor.audioLevel/info.d.ts +3 -0
  169. package/lib/processor.audioLevel/info.js +83 -0
  170. package/lib/processor.audioLevel/info.js.map +1 -0
  171. package/lib/processor.audioLevel/inline-view.d.ts +6 -0
  172. package/lib/processor.audioLevel/inline-view.js +23 -0
  173. package/lib/processor.audioLevel/inline-view.js.map +1 -0
  174. package/lib/processor.audioLevel/runtime.d.ts +49 -0
  175. package/lib/processor.audioLevel/runtime.js +82 -0
  176. package/lib/processor.audioLevel/runtime.js.map +1 -0
  177. package/lib/processor.audioLevel/summary-view.d.ts +7 -0
  178. package/lib/processor.audioLevel/summary-view.js +36 -0
  179. package/lib/processor.audioLevel/summary-view.js.map +1 -0
  180. package/lib/processor.audioMixer/fullscreen-view.d.ts +8 -0
  181. package/lib/processor.audioMixer/fullscreen-view.js +121 -0
  182. package/lib/processor.audioMixer/fullscreen-view.js.map +1 -0
  183. package/lib/processor.audioMixer/info.d.ts +4 -0
  184. package/lib/processor.audioMixer/info.js +148 -0
  185. package/lib/processor.audioMixer/info.js.map +1 -0
  186. package/lib/processor.audioMixer/inline-view.d.ts +7 -0
  187. package/lib/processor.audioMixer/inline-view.js +43 -0
  188. package/lib/processor.audioMixer/inline-view.js.map +1 -0
  189. package/lib/processor.audioMixer/runtime.d.ts +119 -0
  190. package/lib/processor.audioMixer/runtime.js +142 -0
  191. package/lib/processor.audioMixer/runtime.js.map +1 -0
  192. package/lib/processor.audioMixer/summary-view.d.ts +7 -0
  193. package/lib/processor.audioMixer/summary-view.js +11 -0
  194. package/lib/processor.audioMixer/summary-view.js.map +1 -0
  195. package/lib/processor.aws-transcribe/info.d.ts +3 -0
  196. package/lib/processor.aws-transcribe/info.js +81 -0
  197. package/lib/processor.aws-transcribe/info.js.map +1 -0
  198. package/lib/processor.aws-transcribe/runtime.d.ts +39 -0
  199. package/lib/processor.aws-transcribe/runtime.js +164 -0
  200. package/lib/processor.aws-transcribe/runtime.js.map +1 -0
  201. package/lib/processor.aws-transcribe/transcribe-language-selection.d.ts +9 -0
  202. package/lib/processor.aws-transcribe/transcribe-language-selection.js +40 -0
  203. package/lib/processor.aws-transcribe/transcribe-language-selection.js.map +1 -0
  204. package/lib/processor.aws-transcribe/translate-language-selection.d.ts +9 -0
  205. package/lib/processor.aws-transcribe/translate-language-selection.js +40 -0
  206. package/lib/processor.aws-transcribe/translate-language-selection.js.map +1 -0
  207. package/lib/processor.browserOverlay/info.d.ts +3 -0
  208. package/lib/processor.browserOverlay/info.js +38 -0
  209. package/lib/processor.browserOverlay/info.js.map +1 -0
  210. package/lib/processor.browserOverlay/runtime.d.ts +29 -0
  211. package/lib/processor.browserOverlay/runtime.js +121 -0
  212. package/lib/processor.browserOverlay/runtime.js.map +1 -0
  213. package/lib/processor.cascadingSwitch/info.d.ts +3 -0
  214. package/lib/processor.cascadingSwitch/info.js +155 -0
  215. package/lib/processor.cascadingSwitch/info.js.map +1 -0
  216. package/lib/processor.cascadingSwitch/inline-view.d.ts +6 -0
  217. package/lib/processor.cascadingSwitch/inline-view.js +15 -0
  218. package/lib/processor.cascadingSwitch/inline-view.js.map +1 -0
  219. package/lib/processor.cascadingSwitch/runtime.d.ts +59 -0
  220. package/lib/processor.cascadingSwitch/runtime.js +117 -0
  221. package/lib/processor.cascadingSwitch/runtime.js.map +1 -0
  222. package/lib/processor.cascadingSwitch/source-selection.d.ts +7 -0
  223. package/lib/processor.cascadingSwitch/source-selection.js +36 -0
  224. package/lib/processor.cascadingSwitch/source-selection.js.map +1 -0
  225. package/lib/processor.fixedLadder/info.d.ts +8 -0
  226. package/lib/processor.fixedLadder/info.js +71 -0
  227. package/lib/processor.fixedLadder/info.js.map +1 -0
  228. package/lib/processor.fixedLadder/runtime.d.ts +16 -0
  229. package/lib/processor.fixedLadder/runtime.js +165 -0
  230. package/lib/processor.fixedLadder/runtime.js.map +1 -0
  231. package/lib/processor.monetise/info.d.ts +3 -0
  232. package/lib/processor.monetise/info.js +90 -0
  233. package/lib/processor.monetise/info.js.map +1 -0
  234. package/lib/processor.monetise/runtime.d.ts +57 -0
  235. package/lib/processor.monetise/runtime.js +141 -0
  236. package/lib/processor.monetise/runtime.js.map +1 -0
  237. package/lib/processor.monetise/summary.d.ts +7 -0
  238. package/lib/processor.monetise/summary.js +39 -0
  239. package/lib/processor.monetise/summary.js.map +1 -0
  240. package/lib/processor.whisper-transcribe/info.d.ts +3 -0
  241. package/lib/processor.whisper-transcribe/info.js +43 -0
  242. package/lib/processor.whisper-transcribe/info.js.map +1 -0
  243. package/lib/processor.whisper-transcribe/runtime.d.ts +29 -0
  244. package/lib/processor.whisper-transcribe/runtime.js +83 -0
  245. package/lib/processor.whisper-transcribe/runtime.js.map +1 -0
  246. package/lib/shared/srt-form-views.d.ts +2 -0
  247. package/lib/shared/srt-form-views.js +10 -0
  248. package/lib/shared/srt-form-views.js.map +1 -0
  249. package/lib/shared/srt-socket-options.d.ts +4 -0
  250. package/lib/shared/srt-socket-options.js +36 -0
  251. package/lib/shared/srt-socket-options.js.map +1 -0
  252. package/lib/shared/srt-types.d.ts +2 -0
  253. package/lib/shared/srt-types.js +3 -0
  254. package/lib/shared/srt-types.js.map +1 -0
  255. package/lib/test/audio-mixer.d.ts +0 -0
  256. package/lib/test/audio-mixer.js +2 -0
  257. package/lib/test/audio-mixer.js.map +1 -0
  258. package/lib/test/auto-cmaf.d.ts +1 -0
  259. package/lib/test/auto-cmaf.js +142 -0
  260. package/lib/test/auto-cmaf.js.map +1 -0
  261. package/lib/test/browser-overlay.d.ts +1 -0
  262. package/lib/test/browser-overlay.js +79 -0
  263. package/lib/test/browser-overlay.js.map +1 -0
  264. package/lib/test/cascading-switch.d.ts +1 -0
  265. package/lib/test/cascading-switch.js +286 -0
  266. package/lib/test/cascading-switch.js.map +1 -0
  267. package/lib/test/fixed-ladder.d.ts +1 -0
  268. package/lib/test/fixed-ladder.js +100 -0
  269. package/lib/test/fixed-ladder.js.map +1 -0
  270. package/lib/test/rtmp-input.d.ts +1 -0
  271. package/lib/test/rtmp-input.js +182 -0
  272. package/lib/test/rtmp-input.js.map +1 -0
  273. package/lib/test/rtmp-output.d.ts +1 -0
  274. package/lib/test/rtmp-output.js +74 -0
  275. package/lib/test/rtmp-output.js.map +1 -0
  276. package/lib/test/silence-generator.d.ts +1 -0
  277. package/lib/test/silence-generator.js +65 -0
  278. package/lib/test/silence-generator.js.map +1 -0
  279. package/lib/test/srt-input-caller.d.ts +1 -0
  280. package/lib/test/srt-input-caller.js +79 -0
  281. package/lib/test/srt-input-caller.js.map +1 -0
  282. package/lib/test/srt-input-listener.d.ts +1 -0
  283. package/lib/test/srt-input-listener.js +382 -0
  284. package/lib/test/srt-input-listener.js.map +1 -0
  285. package/lib/test/srt-output.d.ts +1 -0
  286. package/lib/test/srt-output.js +78 -0
  287. package/lib/test/srt-output.js.map +1 -0
  288. package/lib/test/udp-output.d.ts +1 -0
  289. package/lib/test/udp-output.js +76 -0
  290. package/lib/test/udp-output.js.map +1 -0
  291. package/lib/test/udp-ts-input.d.ts +1 -0
  292. package/lib/test/udp-ts-input.js +78 -0
  293. package/lib/test/udp-ts-input.js.map +1 -0
  294. package/lib/test/video-card.d.ts +1 -0
  295. package/lib/test/video-card.js +68 -0
  296. package/lib/test/video-card.js.map +1 -0
  297. package/lib/test/whep-output.d.ts +1 -0
  298. package/lib/test/whep-output.js +92 -0
  299. package/lib/test/whep-output.js.map +1 -0
  300. package/lib/util.latency/info.d.ts +3 -0
  301. package/lib/util.latency/info.js +116 -0
  302. package/lib/util.latency/info.js.map +1 -0
  303. package/lib/util.latency/inline-view.d.ts +6 -0
  304. package/lib/util.latency/inline-view.js +74 -0
  305. package/lib/util.latency/inline-view.js.map +1 -0
  306. package/lib/util.latency/runtime.d.ts +19 -0
  307. package/lib/util.latency/runtime.js +87 -0
  308. package/lib/util.latency/runtime.js.map +1 -0
  309. package/lib/util.latency/source-node-selection.d.ts +9 -0
  310. package/lib/util.latency/source-node-selection.js +17 -0
  311. package/lib/util.latency/source-node-selection.js.map +1 -0
  312. package/lib/util.ma35d/info.d.ts +3 -0
  313. package/lib/util.ma35d/info.js +78 -0
  314. package/lib/util.ma35d/info.js.map +1 -0
  315. package/lib/util.ma35d/inline-view.d.ts +6 -0
  316. package/lib/util.ma35d/inline-view.js +76 -0
  317. package/lib/util.ma35d/inline-view.js.map +1 -0
  318. package/lib/util.ma35d/runtime.d.ts +21 -0
  319. package/lib/util.ma35d/runtime.js +49 -0
  320. package/lib/util.ma35d/runtime.js.map +1 -0
  321. package/lib/util.timestamps/info.d.ts +5 -0
  322. package/lib/util.timestamps/info.js +86 -0
  323. package/lib/util.timestamps/info.js.map +1 -0
  324. package/lib/util.timestamps/inline-view.d.ts +6 -0
  325. package/lib/util.timestamps/inline-view.js +94 -0
  326. package/lib/util.timestamps/inline-view.js.map +1 -0
  327. package/lib/util.timestamps/runtime.d.ts +29 -0
  328. package/lib/util.timestamps/runtime.js +40 -0
  329. package/lib/util.timestamps/runtime.js.map +1 -0
  330. package/package.json +61 -0
  331. package/shared/style.css +1617 -0
  332. package/shared/tailwind.css +31 -0
@@ -0,0 +1,128 @@
1
+ .preview-outer-container {
2
+ height: 237px;
3
+ width: 450px;
4
+ }
5
+
6
+ .preview-video {
7
+ width: 420px;
8
+ }
9
+
10
+ .preview-outer-container div {
11
+ float: left;
12
+ }
13
+
14
+ .preview-levels {
15
+ height: 100%;
16
+ width: 30px;
17
+ background-color: #333;
18
+ border-radius: 2px;
19
+ display: flex;
20
+ flex-direction: row;
21
+ padding: 4px 3px;
22
+ margin: auto;
23
+ margin-top: 0px;
24
+ }
25
+
26
+ /* paint not glowing LEDs */
27
+ .preview-level {
28
+ position: relative;
29
+ margin: 0 2px;
30
+ flex-grow: 1;
31
+ z-index: 3;
32
+ background-color: transparent;
33
+ background-repeat: repeat-y;
34
+ background-image: linear-gradient(to bottom, #666 3px, transparent 1px);
35
+ background-size: 100% 4px;
36
+ }
37
+
38
+ /* paint glowing LEDs */
39
+ .preview-level:before {
40
+ width: 100%;
41
+ height: 100%;
42
+ content: ' ';
43
+ position: absolute;
44
+ top: 0px;
45
+ left: 0px;
46
+ z-index: 1;
47
+ background-repeat: no-repeat;
48
+ background-image: linear-gradient(to top, green 0%, yellow 80%, red 100%);
49
+ background-size: 100% 100%;
50
+ }
51
+
52
+ .clip-0-preview:before {
53
+ clip-path: inset(100% 0 0 0);
54
+ -webkit-clip-path: inset(100% 0 0 0);
55
+ }
56
+
57
+ .clip-10-preview:before {
58
+ clip-path: inset(90% 0 0 0);
59
+ -webkit-clip-path: inset(90% 0 0 0);
60
+ }
61
+
62
+ .clip-20-preview:before {
63
+ clip-path: inset(80% 0 0 0);
64
+ -webkit-clip-path: inset(80% 0 0 0);
65
+ }
66
+
67
+ .clip-30-preview:before {
68
+ clip-path: inset(70% 0 0 0);
69
+ -webkit-clip-path: inset(70% 0 0 0);
70
+ }
71
+
72
+
73
+ .clip-40-preview:before {
74
+ clip-path: inset(60% 0 0 0);
75
+ -webkit-clip-path: inset(60% 0 0 0);
76
+ }
77
+
78
+ .clip-50-preview:before {
79
+ clip-path: inset(50% 0 0 0);
80
+ -webkit-clip-path: inset(50% 0 0 0);
81
+ }
82
+
83
+ .clip-60-preview:before {
84
+ clip-path: inset(40% 0 0 0);
85
+ -webkit-clip-path: inset(40% 0 0 0);
86
+ }
87
+
88
+ .clip-70-preview:before {
89
+ clip-path: inset(30% 0 0 0);
90
+ -webkit-clip-path: inset(30% 0 0 0);
91
+ }
92
+
93
+
94
+ .clip-80-preview:before {
95
+ clip-path: inset(20% 0 0 0);
96
+ -webkit-clip-path: inset(20% 0 0 0);
97
+ }
98
+
99
+ .clip-90-preview:before {
100
+ clip-path: inset(10% 0 0 0);
101
+ -webkit-clip-path: inset(10% 0 0 0);
102
+ }
103
+
104
+ .clip-100-preview:before {
105
+ clip-path: inset(0% 0 0 0);
106
+ -webkit-clip-path: inset(0% 0 0 0);
107
+ }
108
+
109
+
110
+
111
+ /* paint gap lines of LEDs */
112
+ .preview-level::after {
113
+ width: 100%;
114
+ height: 100%;
115
+ content: ' ';
116
+ position: absolute;
117
+ top: 0px;
118
+ left: 0px;
119
+ z-index: 2;
120
+ margin-top: 3px;
121
+ background-image: linear-gradient(to bottom, #333 1px
122
+ /* space between leds*/
123
+ , transparent 1px);
124
+ background-repeat: repeat-y;
125
+ background-size: 100% 4px;
126
+ /* 4px LED height */
127
+ background-color: transparent;
128
+ }
@@ -0,0 +1,164 @@
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
+ }
@@ -0,0 +1,249 @@
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
+ }
File without changes
package/lib/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { RuntimeSystem } from "@norskvideo/norsk-studio/lib/extension/runtime-system";
2
+ export declare function registerAll(r: RuntimeSystem): Promise<void>;
3
+ export default registerAll;
package/lib/index.js ADDED
@@ -0,0 +1,15 @@
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.registerAll = void 0;
7
+ const registration_1 = require("@norskvideo/norsk-studio/lib/extension/registration");
8
+ const path_1 = __importDefault(require("path"));
9
+ async function registerAll(r) {
10
+ r.registerGlobalStylesheet(path_1.default.join(__dirname, "../shared/style.css"));
11
+ return (0, registration_1.autoRegisterComponents)(__dirname, path_1.default.join(__dirname, "../client/info.js"), (p) => p.replace('lib', 'client'))(r);
12
+ }
13
+ exports.registerAll = registerAll;
14
+ exports.default = registerAll;
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,sFAA4F;AAE5F,gDAAwB;AAEjB,KAAK,UAAU,WAAW,CAAC,CAAgB;IAChD,CAAC,CAAC,wBAAwB,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC,CAAC;IACxE,OAAO,IAAA,qCAAsB,EAAC,SAAS,EACrC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,mBAAmB,CAAC,EACzC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClD,CAAC;AALD,kCAKC;AAED,kBAAe,WAAW,CAAC"}
package/lib/info.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { BaseConfig, NodeInfo } from "@norskvideo/norsk-studio/lib/extension/client-types";
2
+ import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
3
+ export default function getNodeInfo(r: Registration, type: string): NodeInfo<BaseConfig>;
package/lib/info.js ADDED
@@ -0,0 +1,74 @@
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 InitialisedComponents = {};
7
+ let initialised = false;
8
+ const AllComponents = [];
9
+ function getNodeInfo(r, type) {
10
+ if (!initialised) {
11
+ AllComponents.forEach((f) => {
12
+ const i = f(r);
13
+ InitialisedComponents[i.identifier] = i;
14
+ });
15
+ initialised = true;
16
+ }
17
+ return InitialisedComponents[type];
18
+ }
19
+ exports.default = getNodeInfo;
20
+ const info_1 = __importDefault(require("./input.mediaconnect/info"));
21
+ AllComponents.push((r) => (0, info_1.default)(r));
22
+ const info_2 = __importDefault(require("./input.rtmp/info"));
23
+ AllComponents.push((r) => (0, info_2.default)(r));
24
+ const info_3 = __importDefault(require("./input.silence/info"));
25
+ AllComponents.push((r) => (0, info_3.default)(r));
26
+ const info_4 = __importDefault(require("./input.srt-caller/info"));
27
+ AllComponents.push((r) => (0, info_4.default)(r));
28
+ const info_5 = __importDefault(require("./input.srt-listener/info"));
29
+ AllComponents.push((r) => (0, info_5.default)(r));
30
+ const info_6 = __importDefault(require("./input.udp-ts/info"));
31
+ AllComponents.push((r) => (0, info_6.default)(r));
32
+ const info_7 = __importDefault(require("./input.videoTestCard/info"));
33
+ AllComponents.push((r) => (0, info_7.default)(r));
34
+ const info_8 = __importDefault(require("./output.autoCmaf/info"));
35
+ AllComponents.push((r) => (0, info_8.default)(r));
36
+ const info_9 = __importDefault(require("./output.medialive/info"));
37
+ AllComponents.push((r) => (0, info_9.default)(r));
38
+ const info_10 = __importDefault(require("./output.preview/info"));
39
+ AllComponents.push((r) => (0, info_10.default)(r));
40
+ const info_11 = __importDefault(require("./output.rtmp/info"));
41
+ AllComponents.push((r) => (0, info_11.default)(r));
42
+ const info_12 = __importDefault(require("./output.srt/info"));
43
+ AllComponents.push((r) => (0, info_12.default)(r));
44
+ const info_13 = __importDefault(require("./output.statistics/info"));
45
+ AllComponents.push((r) => (0, info_13.default)(r));
46
+ const info_14 = __importDefault(require("./output.udpTs/info"));
47
+ AllComponents.push((r) => (0, info_14.default)(r));
48
+ const info_15 = __importDefault(require("./output.whep/info"));
49
+ AllComponents.push((r) => (0, info_15.default)(r));
50
+ const info_16 = __importDefault(require("./processor.actionReplay/info"));
51
+ AllComponents.push((r) => (0, info_16.default)(r));
52
+ const info_17 = __importDefault(require("./processor.audioLevel/info"));
53
+ AllComponents.push((r) => (0, info_17.default)(r));
54
+ const info_18 = __importDefault(require("./processor.audioMixer/info"));
55
+ AllComponents.push((r) => (0, info_18.default)(r));
56
+ const info_19 = __importDefault(require("./processor.aws-transcribe/info"));
57
+ AllComponents.push((r) => (0, info_19.default)(r));
58
+ const info_20 = __importDefault(require("./processor.browserOverlay/info"));
59
+ AllComponents.push((r) => (0, info_20.default)(r));
60
+ const info_21 = __importDefault(require("./processor.cascadingSwitch/info"));
61
+ AllComponents.push((r) => (0, info_21.default)(r));
62
+ const info_22 = __importDefault(require("./processor.fixedLadder/info"));
63
+ AllComponents.push((r) => (0, info_22.default)(r));
64
+ const info_23 = __importDefault(require("./processor.monetise/info"));
65
+ AllComponents.push((r) => (0, info_23.default)(r));
66
+ const info_24 = __importDefault(require("./processor.whisper-transcribe/info"));
67
+ AllComponents.push((r) => (0, info_24.default)(r));
68
+ const info_25 = __importDefault(require("./util.latency/info"));
69
+ AllComponents.push((r) => (0, info_25.default)(r));
70
+ const info_26 = __importDefault(require("./util.ma35d/info"));
71
+ AllComponents.push((r) => (0, info_26.default)(r));
72
+ const info_27 = __importDefault(require("./util.timestamps/info"));
73
+ AllComponents.push((r) => (0, info_27.default)(r));
74
+ //# sourceMappingURL=info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.js","sourceRoot":"","sources":["../src/info.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,40 @@
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