@norskvideo/norsk-studio 1.0.6 → 1.0.8

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const client_medialive_1 = require("@aws-sdk/client-medialive");
4
+ const client_mediapackage_1 = require("@aws-sdk/client-mediapackage");
5
+ const client = new client_medialive_1.MediaLiveClient({ region: "eu-west-2" });
6
+ const packaging = new client_mediapackage_1.MediaPackageClient({ region: 'eu-west-2' });
7
+ async function listChannels() {
8
+ const result = await client.send(new client_medialive_1.ListChannelsCommand({}));
9
+ for (const c of result.Channels ?? []) {
10
+ console.log("Looking at channel", c.Name, c.Arn);
11
+ console.log('-----');
12
+ for (const a of c.InputAttachments ?? []) {
13
+ console.log("It has an input", a.InputAttachmentName, a.InputId);
14
+ const i = await client.send(new client_medialive_1.DescribeInputCommand({
15
+ InputId: a.InputId
16
+ }));
17
+ for (const d of i.Destinations ?? []) {
18
+ console.log('Source', d);
19
+ }
20
+ }
21
+ for (const o of c.Destinations ?? []) {
22
+ console.log('Destination', o);
23
+ const destination = await packaging.send(new client_mediapackage_1.DescribeChannelCommand({
24
+ Id: o.MediaPackageSettings?.[0].ChannelId
25
+ }));
26
+ const originEndpoints = await packaging.send(new client_mediapackage_1.ListOriginEndpointsCommand({
27
+ ChannelId: o.MediaPackageSettings?.[0].ChannelId
28
+ }));
29
+ console.log('output', destination, originEndpoints);
30
+ }
31
+ }
32
+ }
33
+ void listChannels();
34
+ //# sourceMappingURL=medialive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"medialive.js","sourceRoot":"","sources":["../../src/server/medialive.ts"],"names":[],"mappings":";;AAAA,gEAAuG;AACvG,sEAAsH;AAEtH,MAAM,MAAM,GAAG,IAAI,kCAAe,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;AAC5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AM,SAAS,CAAC,IAAI,CAAC,IAAI,gDAA0B,CAAC;gBAC1E,SAAS,EAAE,CAAC,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;aACjD,CAAC,CAAC,CAAA;YAEH,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,eAAe,CAAC,CAAA;QACrD,CAAC;IACH,CAAC;AACH,CAAC;AAED,KAAK,YAAY,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/norsk-studio",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "postinstall": "rm -f node_modules/hls-parser/*.ts",
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "license": "See EULA at https://norsk.video/eula",
35
35
  "dependencies": {
36
- "@norskvideo/norsk-sdk": "^1.0.360",
36
+ "@norskvideo/norsk-sdk": "1.0.360",
37
37
  "@norskvideo/webrtc-client": "^0.1.2",
38
38
  "compression": "^1.7.4",
39
39
  "config": "^3.3.9",
@@ -19,6 +19,6 @@ window.__loadExternalComponent = function(path) {
19
19
  }
20
20
 
21
21
  window.__loadCss = async function(path) {
22
- const css = await import(path, {with: { type: 'css' }});
22
+ const css = await import(path, {with: { type: 'css' }, assert: { type: 'css' }});
23
23
  document.adoptedStyleSheets.push(css.default);
24
24
  }