@norskvideo/norsk-studio-built-ins 1.27.0-2025-04-05-9821db2f → 1.27.0-2025-04-08-3f13a32b

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 (89) hide show
  1. package/client/info.js +6874 -1193
  2. package/lib/info.js +29 -21
  3. package/lib/info.js.map +1 -1
  4. package/lib/output.autoCmaf/info.js +4 -132
  5. package/lib/output.autoCmaf/info.js.map +1 -1
  6. package/lib/output.autoCmaf/runtime.js +4 -54
  7. package/lib/output.autoCmaf/runtime.js.map +1 -1
  8. package/lib/output.autoCmaf/types.d.ts +31 -31
  9. package/lib/output.autoCmaf/types.yaml +4 -85
  10. package/lib/output.cmafMultiVariant/info.d.ts +15 -0
  11. package/lib/output.cmafMultiVariant/info.js +91 -0
  12. package/lib/output.cmafMultiVariant/info.js.map +1 -0
  13. package/lib/output.cmafMultiVariant/runtime.d.ts +37 -0
  14. package/lib/output.cmafMultiVariant/runtime.js +158 -0
  15. package/lib/output.cmafMultiVariant/runtime.js.map +1 -0
  16. package/lib/output.cmafMultiVariant/types.d.ts +130 -0
  17. package/lib/output.cmafMultiVariant/types.js +3 -0
  18. package/lib/output.cmafMultiVariant/types.js.map +1 -0
  19. package/lib/output.cmafMultiVariant/types.yaml +74 -0
  20. package/lib/output.cmafPlaylist/info.d.ts +22 -0
  21. package/lib/output.cmafPlaylist/info.js +114 -0
  22. package/lib/output.cmafPlaylist/info.js.map +1 -0
  23. package/lib/output.cmafPlaylist/runtime.d.ts +41 -0
  24. package/lib/output.cmafPlaylist/runtime.js +239 -0
  25. package/lib/output.cmafPlaylist/runtime.js.map +1 -0
  26. package/lib/output.cmafPlaylist/types.d.ts +155 -0
  27. package/lib/output.cmafPlaylist/types.js +3 -0
  28. package/lib/output.cmafPlaylist/types.js.map +1 -0
  29. package/lib/output.cmafPlaylist/types.yaml +90 -0
  30. package/lib/output.preview/inline-view.js +2 -2
  31. package/lib/output.preview/inline-view.js.map +1 -1
  32. package/lib/output.tsMediaPlaylist/info.d.ts +22 -0
  33. package/lib/output.tsMediaPlaylist/info.js +113 -0
  34. package/lib/output.tsMediaPlaylist/info.js.map +1 -0
  35. package/lib/output.tsMediaPlaylist/runtime.d.ts +41 -0
  36. package/lib/output.tsMediaPlaylist/runtime.js +225 -0
  37. package/lib/output.tsMediaPlaylist/runtime.js.map +1 -0
  38. package/lib/output.tsMediaPlaylist/types.d.ts +155 -0
  39. package/lib/output.tsMediaPlaylist/types.js +3 -0
  40. package/lib/output.tsMediaPlaylist/types.js.map +1 -0
  41. package/lib/output.tsMediaPlaylist/types.yaml +90 -0
  42. package/lib/output.tsMultiVariant/info.d.ts +15 -0
  43. package/lib/output.tsMultiVariant/info.js +91 -0
  44. package/lib/output.tsMultiVariant/info.js.map +1 -0
  45. package/lib/output.tsMultiVariant/runtime.d.ts +37 -0
  46. package/lib/output.tsMultiVariant/runtime.js +157 -0
  47. package/lib/output.tsMultiVariant/runtime.js.map +1 -0
  48. package/lib/output.tsMultiVariant/types.d.ts +130 -0
  49. package/lib/output.tsMultiVariant/types.js +3 -0
  50. package/lib/output.tsMultiVariant/types.js.map +1 -0
  51. package/lib/output.tsMultiVariant/types.yaml +74 -0
  52. package/lib/output.whep/inline-view.js +2 -2
  53. package/lib/output.whep/inline-view.js.map +1 -1
  54. package/lib/processor.fixedLadder/info.d.ts +3 -3
  55. package/lib/processor.fixedLadder/info.js +1159 -73
  56. package/lib/processor.fixedLadder/info.js.map +1 -1
  57. package/lib/processor.fixedLadder/nvidia-rate-control-view.d.ts +4 -0
  58. package/lib/processor.fixedLadder/nvidia-rate-control-view.js +20 -0
  59. package/lib/processor.fixedLadder/nvidia-rate-control-view.js.map +1 -0
  60. package/lib/processor.fixedLadder/nvidia-view.d.ts +5 -0
  61. package/lib/processor.fixedLadder/nvidia-view.js +20 -0
  62. package/lib/processor.fixedLadder/nvidia-view.js.map +1 -0
  63. package/lib/processor.fixedLadder/quadra-view.d.ts +6 -0
  64. package/lib/processor.fixedLadder/quadra-view.js +22 -0
  65. package/lib/processor.fixedLadder/quadra-view.js.map +1 -0
  66. package/lib/processor.fixedLadder/runtime.js.map +1 -1
  67. package/lib/processor.fixedLadder/software-view.d.ts +5 -0
  68. package/lib/processor.fixedLadder/software-view.js +20 -0
  69. package/lib/processor.fixedLadder/software-view.js.map +1 -0
  70. package/lib/processor.fixedLadder/types.d.ts +108 -20
  71. package/lib/processor.fixedLadder/types.yaml +241 -34
  72. package/lib/processor.fixedLadder/x26x-bitrate-view.d.ts +4 -0
  73. package/lib/processor.fixedLadder/x26x-bitrate-view.js +20 -0
  74. package/lib/processor.fixedLadder/x26x-bitrate-view.js.map +1 -0
  75. package/lib/shared/cmaf.d.ts +17 -0
  76. package/lib/shared/cmaf.js +198 -0
  77. package/lib/shared/cmaf.js.map +1 -0
  78. package/lib/{output.autoCmaf/form-views.d.ts → shared/playlist-form-views.d.ts} +1 -1
  79. package/lib/{output.autoCmaf/form-views.js → shared/playlist-form-views.js} +1 -1
  80. package/lib/shared/playlist-form-views.js.map +1 -0
  81. package/lib/shared/types.d.ts +158 -0
  82. package/lib/shared/types.js +3 -0
  83. package/lib/shared/types.js.map +1 -0
  84. package/lib/shared/types.yaml +182 -0
  85. package/lib/shared/whep.d.ts +6 -0
  86. package/lib/shared/whep.js +46 -0
  87. package/lib/shared/whep.js.map +1 -0
  88. package/package.json +3 -3
  89. package/lib/output.autoCmaf/form-views.js.map +0 -1
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = default_1;
4
+ const util_1 = require("@norskvideo/norsk-studio/lib/shared/util");
5
+ const FaHeadphones_1 = require("@react-icons/all-files/fa/FaHeadphones");
6
+ const cmaf_1 = require("../shared/cmaf");
7
+ function default_1(registration) {
8
+ const { defineComponent, validation, } = registration;
9
+ const { Z } = validation;
10
+ return defineComponent({
11
+ identifier: 'output.tsMultiVariant',
12
+ category: 'output',
13
+ name: "HLS/TS Multivariant",
14
+ description: "This component creates, and optionally publishes, a multivariant playlist for a collection of HLS/TS playlists",
15
+ icon: FaHeadphones_1.FaHeadphones,
16
+ subscription: {
17
+ accepts: {
18
+ type: "dynamic-streams",
19
+ mode: 'any',
20
+ makeProgram: false,
21
+ streams: () => [{ media: 'playlist' }]
22
+ }
23
+ },
24
+ display: (desc) => {
25
+ return {
26
+ name: desc.config.name
27
+ };
28
+ },
29
+ runtime: {
30
+ initialState: () => ({
31
+ enabled: true
32
+ }),
33
+ handleEvent(ev, state) {
34
+ const evType = ev.type;
35
+ switch (evType) {
36
+ case 'output-enabled':
37
+ state.enabled = true;
38
+ break;
39
+ case 'output-disabled':
40
+ state.enabled = false;
41
+ break;
42
+ default:
43
+ (0, util_1.assertUnreachable)(evType);
44
+ }
45
+ return { ...state };
46
+ },
47
+ },
48
+ configForm: {
49
+ form: {
50
+ name: {
51
+ help: "The name of the playlist",
52
+ hint: {
53
+ type: 'text', optional: true, validation: Z.string().min(1).max(15).optional()
54
+ }
55
+ },
56
+ destinations: cmaf_1.DestinationsFormEntry,
57
+ publishingGroup: {
58
+ help: "This *must* match the publishing group of any playlists that are being given to this component",
59
+ advanced: true,
60
+ hint: {
61
+ type: 'text',
62
+ optional: true
63
+ }
64
+ },
65
+ initialState: {
66
+ help: "The publishing state of this endpoint by default on start-up",
67
+ hint: {
68
+ type: 'select',
69
+ defaultValue: 'enabled',
70
+ envOverride: true,
71
+ options: [
72
+ {
73
+ display: "Enabled",
74
+ value: 'enabled',
75
+ },
76
+ {
77
+ display: "Disabled",
78
+ value: 'disabled',
79
+ },
80
+ ],
81
+ },
82
+ },
83
+ notes: {
84
+ help: "Additional notes about this component",
85
+ hint: { type: 'text', optional: true }
86
+ },
87
+ }
88
+ }
89
+ });
90
+ }
91
+ //# sourceMappingURL=info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/output.tsMultiVariant/info.ts"],"names":[],"mappings":";;AAMA,4BAuF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;oBAChC,IAAI,EAAE;wBACJ,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;qBAC/E;iBACF;gBACD,YAAY,EAAE,4BAAqB;gBACnC,eAAe,EAAE;oBACf,IAAI,EAAE,gGAAgG;oBACtG,QAAQ,EAAE,IAAI;oBACd,IAAI,EAAE;wBACJ,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;qBACf;iBACF;gBACD,YAAY,EAAE;oBACZ,IAAI,EAAE,8DAA8D;oBACpE,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,YAAY,EAAE,SAAS;wBACvB,WAAW,EAAE,IAAI;wBACjB,OAAO,EAAE;4BACP;gCACE,OAAO,EAAE,SAAS;gCAClB,KAAK,EAAE,SAAS;6BACjB;4BACD;gCACE,OAAO,EAAE,UAAU;gCACnB,KAAK,EAAE,UAAU;6BAClB;yBACF;qBACF;iBACF;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,uCAAuC;oBAC7C,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;iBACvC;aACF;SACF;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { AncillaryNode, CmafDestinationSettings, HlsTsMultiVariantOutputNode, Norsk } from '@norskvideo/norsk-sdk';
2
+ import { InstanceRouteInfo, OnCreated, ServerComponentDefinition, StudioRuntime, StudioComponentInputStream, ServerComponentSchemas } from '@norskvideo/norsk-studio/lib/extension/runtime-types';
3
+ import { CustomSinkNode } from '@norskvideo/norsk-studio/lib/extension/base-nodes';
4
+ import { components } from './types';
5
+ export type HlsTsPlaylistSettings = components['schemas']['HlsTsConfig'];
6
+ export type HlsTsPlaylistState = components['schemas']['HlsTsOutputState'];
7
+ export type HlsTsPlaylistCommand = {
8
+ type: 'enable-output' | 'disable-output';
9
+ };
10
+ export type HlsTsPlaylistEvent = {
11
+ type: 'output-enabled' | 'output-disabled';
12
+ };
13
+ declare class HlsTsPlaylist extends CustomSinkNode {
14
+ norsk: Norsk;
15
+ cfg: HlsTsPlaylistSettings;
16
+ outputNode: HlsTsMultiVariantOutputNode | null;
17
+ ancillary: AncillaryNode | null;
18
+ enabled: boolean;
19
+ initialised: Promise<void>;
20
+ runtime: StudioRuntime<HlsTsPlaylistState, HlsTsPlaylistCommand, HlsTsPlaylistEvent>;
21
+ currentSources: StudioComponentInputStream[];
22
+ destinations: CmafDestinationSettings[];
23
+ static create(norsk: Norsk, cfg: HlsTsPlaylistSettings, runtime: StudioRuntime<HlsTsPlaylistState, HlsTsPlaylistCommand, HlsTsPlaylistEvent>): Promise<HlsTsPlaylist>;
24
+ constructor(cfg: HlsTsPlaylistSettings, norsk: Norsk, runtime: StudioRuntime<HlsTsPlaylistState, HlsTsPlaylistCommand, HlsTsPlaylistEvent>);
25
+ initialise(): Promise<void>;
26
+ enableOutput(): Promise<void>;
27
+ disableOutput(): Promise<void>;
28
+ subscribe(sources: StudioComponentInputStream[]): Promise<void>;
29
+ subscribeImpl(sources: StudioComponentInputStream[]): Promise<void>;
30
+ }
31
+ export default class HlsTsPlaylistDefinition implements ServerComponentDefinition<HlsTsPlaylistSettings, HlsTsPlaylist, HlsTsPlaylistState, HlsTsPlaylistCommand, HlsTsPlaylistEvent> {
32
+ create(norsk: Norsk, cfg: HlsTsPlaylistSettings, cb: OnCreated<HlsTsPlaylist>, runtime: StudioRuntime<HlsTsPlaylistState, HlsTsPlaylistCommand, HlsTsPlaylistEvent>): Promise<void>;
33
+ handleCommand(node: HlsTsPlaylist, command: HlsTsPlaylistCommand): Promise<void>;
34
+ instanceRoutes(): Promise<InstanceRouteInfo<HlsTsPlaylistSettings, HlsTsPlaylist, HlsTsPlaylistState, HlsTsPlaylistCommand, HlsTsPlaylistEvent>[]>;
35
+ schemas(): Promise<ServerComponentSchemas>;
36
+ }
37
+ export {};
@@ -0,0 +1,157 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const base_nodes_1 = require("@norskvideo/norsk-studio/lib/extension/base-nodes");
7
+ const logging_1 = require("@norskvideo/norsk-studio/lib/server/logging");
8
+ const path_1 = __importDefault(require("path"));
9
+ const schemas_1 = require("../shared/schemas");
10
+ const api_1 = require("@norskvideo/norsk-studio/lib/server/api");
11
+ const cmaf_1 = require("../shared/cmaf");
12
+ class HlsTsPlaylist extends base_nodes_1.CustomSinkNode {
13
+ norsk;
14
+ cfg;
15
+ outputNode = null;
16
+ ancillary = null;
17
+ enabled = true;
18
+ initialised;
19
+ runtime;
20
+ currentSources = [];
21
+ destinations;
22
+ static async create(norsk, cfg, runtime) {
23
+ const node = new HlsTsPlaylist(cfg, norsk, runtime);
24
+ await node.initialised;
25
+ return node;
26
+ }
27
+ constructor(cfg, norsk, runtime) {
28
+ super(cfg.id);
29
+ this.cfg = cfg;
30
+ this.id = cfg.id;
31
+ this.norsk = norsk;
32
+ this.runtime = runtime;
33
+ this.enabled = cfg.initialState == 'enabled';
34
+ if (!this.enabled) {
35
+ runtime.updates.raiseEvent({ type: 'output-disabled' });
36
+ }
37
+ const r = (0, cmaf_1.reifyDestinations)({
38
+ publishingGroup: cfg.publishingGroup ?? "hls", destinations: cfg.destinations, segments: { retentionPeriod: 360, targetSegmentDuration: 0, targetPartDuration: 0 }
39
+ });
40
+ this.destinations = r.destinations;
41
+ this.initialised = this.initialise();
42
+ }
43
+ async initialise() {
44
+ }
45
+ async enableOutput() {
46
+ if (!this.enabled) {
47
+ this.enabled = true;
48
+ this.runtime.updates.raiseEvent({ type: 'output-enabled' });
49
+ await this.subscribeImpl(this.currentSources);
50
+ (0, logging_1.debuglog)("Output enabled", { id: this.id });
51
+ }
52
+ }
53
+ async disableOutput() {
54
+ if (this.enabled) {
55
+ this.enabled = false;
56
+ if (this.outputNode) {
57
+ await this.outputNode.close();
58
+ this.outputNode = null;
59
+ }
60
+ this.runtime.updates.raiseEvent({
61
+ type: 'output-disabled'
62
+ });
63
+ (0, logging_1.debuglog)("Output disabled", { id: this.id });
64
+ }
65
+ }
66
+ async subscribe(sources) {
67
+ this.currentSources = sources;
68
+ await this.subscribeImpl(this.currentSources);
69
+ }
70
+ async subscribeImpl(sources) {
71
+ if (!this.enabled || sources.filter((s) => s.metadata).length == 0) {
72
+ (0, logging_1.debuglog)("Skipping context handling - output disabled", { id: this.id });
73
+ await this.outputNode?.close();
74
+ this.outputNode = null;
75
+ return;
76
+ }
77
+ if (!this.outputNode) {
78
+ this.outputNode = await this.norsk.output.cmafMultiVariant({
79
+ id: `${this.id}-mv`,
80
+ destinations: this.destinations,
81
+ playlistName: this.cfg.name,
82
+ });
83
+ this.setup({ sink: this.outputNode });
84
+ this.runtime.report.registerOutput(this.id, this.outputNode.url);
85
+ }
86
+ this.outputNode.subscribe(sources.filter((s) => s.isMedia('playlist')).map((s) => s.select()));
87
+ }
88
+ }
89
+ class HlsTsPlaylistDefinition {
90
+ async create(norsk, cfg, cb, runtime) {
91
+ const node = await HlsTsPlaylist.create(norsk, cfg, runtime);
92
+ cb(node);
93
+ }
94
+ async handleCommand(node, command) {
95
+ switch (command.type) {
96
+ case 'enable-output':
97
+ await node.enableOutput();
98
+ break;
99
+ case 'disable-output':
100
+ await node.disableOutput();
101
+ break;
102
+ }
103
+ }
104
+ async instanceRoutes() {
105
+ return (0, api_1.defineApi)(path_1.default.join(__dirname, 'types.yaml'), {
106
+ '/enable': {
107
+ post: ({ runtime }) => async (_req, res) => {
108
+ try {
109
+ const state = runtime.updates.latest();
110
+ if (state.enabled) {
111
+ return res.status(400).json({ error: 'Output is already enabled' });
112
+ }
113
+ runtime.updates.update({ ...state, enabled: true });
114
+ runtime.updates.sendCommand({
115
+ type: 'enable-output'
116
+ });
117
+ runtime.updates.raiseEvent({
118
+ type: 'output-enabled'
119
+ });
120
+ res.sendStatus(204);
121
+ }
122
+ catch (error) {
123
+ console.error('Error in enable handler:', error);
124
+ res.status(500).json({ error: 'Failed to enable output' });
125
+ }
126
+ }
127
+ },
128
+ '/disable': {
129
+ post: ({ runtime }) => async (_req, res) => {
130
+ try {
131
+ const state = runtime.updates.latest();
132
+ if (!state.enabled) {
133
+ return res.status(400).json({ error: 'Output is already disabled' });
134
+ }
135
+ runtime.updates.update({ ...state, enabled: false });
136
+ runtime.updates.sendCommand({
137
+ type: 'disable-output'
138
+ });
139
+ runtime.updates.raiseEvent({
140
+ type: 'output-disabled'
141
+ });
142
+ res.sendStatus(204);
143
+ }
144
+ catch (error) {
145
+ console.error('Error in disable handler:', error);
146
+ res.status(500).json({ error: 'Failed to disable output' });
147
+ }
148
+ }
149
+ }
150
+ });
151
+ }
152
+ async schemas() {
153
+ return (0, schemas_1.schemaFromTypes)(path_1.default.join(__dirname, 'types.yaml'), { config: 'HlsTsConfig', state: 'HlsTsOutputState' });
154
+ }
155
+ }
156
+ exports.default = HlsTsPlaylistDefinition;
157
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/output.tsMultiVariant/runtime.ts"],"names":[],"mappings":";;;;;AAEA,kFAAmF;AACnF,yEAAuE;AAEvE,gDAAwB;AAExB,+CAAoD;AACpD,iEAAoE;AACpE,yCAAmD;AAanD,MAAM,aAAc,SAAQ,2BAAc;IACxC,KAAK,CAAQ;IACb,GAAG,CAAwB;IAC3B,UAAU,GAAuC,IAAI,CAAC;IACtD,SAAS,GAAyB,IAAI,CAAC;IACvC,OAAO,GAAY,IAAI,CAAC;IACxB,WAAW,CAAgB;IAC3B,OAAO,CAA8E;IACrF,cAAc,GAAiC,EAAE,CAAC;IAClD,YAAY,CAA4B;IAExC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC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never;
10
+ put?: never;
11
+ post: {
12
+ parameters: {
13
+ query?: never;
14
+ header?: never;
15
+ path?: never;
16
+ cookie?: never;
17
+ };
18
+ requestBody?: never;
19
+ responses: {
20
+ 204: {
21
+ headers: {
22
+ [name: string]: unknown;
23
+ };
24
+ content?: never;
25
+ };
26
+ 400: {
27
+ headers: {
28
+ [name: string]: unknown;
29
+ };
30
+ content?: never;
31
+ };
32
+ 500: {
33
+ headers: {
34
+ [name: string]: unknown;
35
+ };
36
+ content?: never;
37
+ };
38
+ };
39
+ };
40
+ delete?: never;
41
+ options?: never;
42
+ head?: never;
43
+ patch?: never;
44
+ trace?: never;
45
+ };
46
+ "/disable": {
47
+ parameters: {
48
+ query?: never;
49
+ header?: never;
50
+ path?: never;
51
+ cookie?: never;
52
+ };
53
+ get?: never;
54
+ put?: never;
55
+ post: {
56
+ parameters: {
57
+ query?: never;
58
+ header?: never;
59
+ path?: never;
60
+ cookie?: never;
61
+ };
62
+ requestBody?: never;
63
+ responses: {
64
+ 204: {
65
+ headers: {
66
+ [name: string]: unknown;
67
+ };
68
+ content?: never;
69
+ };
70
+ 400: {
71
+ headers: {
72
+ [name: string]: unknown;
73
+ };
74
+ content?: never;
75
+ };
76
+ 500: {
77
+ headers: {
78
+ [name: string]: unknown;
79
+ };
80
+ content?: never;
81
+ };
82
+ };
83
+ };
84
+ delete?: never;
85
+ options?: never;
86
+ head?: never;
87
+ patch?: never;
88
+ trace?: never;
89
+ };
90
+ }
91
+ export type webhooks = Record<string, never>;
92
+ export interface components {
93
+ schemas: {
94
+ InitialState: "enabled" | "disabled";
95
+ HlsTsConfig: {
96
+ id: string;
97
+ displayName: string;
98
+ name: string;
99
+ publishingGroup?: string;
100
+ destinations: components["schemas"]["AutoCmafDestination"][];
101
+ initialState: components["schemas"]["InitialState"];
102
+ notes?: string;
103
+ __global: Record<string, never>;
104
+ };
105
+ HlsTsOutputState: {
106
+ url?: string;
107
+ enabled: boolean;
108
+ };
109
+ AutoCmafAkamaiDestination: {
110
+ type: "akamai";
111
+ ingest: string;
112
+ playback: string;
113
+ includeAdInsertions: boolean;
114
+ };
115
+ AutoCmafS3Destination: {
116
+ type: "s3";
117
+ host: string;
118
+ prefix: string;
119
+ includeAdInsertions: boolean;
120
+ };
121
+ AutoCmafDestination: components["schemas"]["AutoCmafAkamaiDestination"] | components["schemas"]["AutoCmafS3Destination"];
122
+ };
123
+ responses: never;
124
+ parameters: never;
125
+ requestBodies: never;
126
+ headers: never;
127
+ pathItems: never;
128
+ }
129
+ export type $defs = Record<string, never>;
130
+ export type operations = Record<string, never>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/output.tsMultiVariant/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,74 @@
1
+ openapi: 3.0.0
2
+ info:
3
+ title: Cmaf Media Playlist Component
4
+ version: 1.0.0
5
+
6
+ paths:
7
+ /enable:
8
+ post:
9
+ summary: Enable HLS/TS output
10
+ description: Enables output of HLS/TS streams if currently disabled
11
+ responses:
12
+ 204:
13
+ description: Output successfully enabled
14
+ 400:
15
+ description: Output is already enabled
16
+ 500:
17
+ description: Server error while enabling output
18
+ /disable:
19
+ post:
20
+ summary: Disable HLS/TS output
21
+ description: Disables output of HLS/TS streams if currently enabled
22
+ responses:
23
+ 204:
24
+ description: Output successfully disabled
25
+ 400:
26
+ description: Output is already disabled
27
+ 500:
28
+ description: Server error while disabling output
29
+
30
+ components:
31
+ schemas:
32
+ InitialState:
33
+ type: string
34
+ enum: [enabled, disabled]
35
+
36
+ HlsTsConfig:
37
+ type: object
38
+ required:
39
+ - id
40
+ - displayName
41
+ - name
42
+ - destinations
43
+ - initialState
44
+ - __global
45
+ properties:
46
+ id:
47
+ type: string
48
+ displayName:
49
+ type: string
50
+ name:
51
+ type: string
52
+ publishingGroup:
53
+ type: string
54
+ destinations:
55
+ type: array
56
+ items:
57
+ $ref: '../shared/types.yaml#/components/schemas/AutoCmafDestination'
58
+ initialState:
59
+ $ref: '#/components/schemas/InitialState'
60
+ notes:
61
+ type: string
62
+ __global:
63
+ type: object
64
+ additionalProperties: false
65
+
66
+ HlsTsOutputState:
67
+ type: object
68
+ required:
69
+ - enabled
70
+ properties:
71
+ url:
72
+ type: string
73
+ enabled:
74
+ type: boolean
@@ -2,14 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  const react_1 = require("react");
5
- const webrtc_client_1 = require("@norskvideo/webrtc-client");
5
+ const whep_1 = require("../shared/whep");
6
6
  function InlineView({ state, config, raise }) {
7
7
  const url = state.url;
8
8
  const id = config.id;
9
9
  const [showPreview, setShowPreview] = (0, react_1.useState)(config.showPreview ?? true);
10
10
  const [client, setClient] = (0, react_1.useState)(null);
11
11
  const createClient = (url) => {
12
- const newClient = new webrtc_client_1.WhepClient({
12
+ const newClient = new whep_1.NorskWhepClient({
13
13
  url,
14
14
  container: document.getElementById(`whep-${id}`) ?? undefined,
15
15
  });
@@ -1 +1 @@
1
- {"version":3,"file":"inline-view.js","sourceRoot":"","sources":["../../src/output.whep/inline-view.tsx"],"names":[],"mappings":";;;AAAA,iCAA4C;AAE5C,6DAAuD;AAGvD,SAAS,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAqE;IAC7G,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;IACtB,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;IACrB,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,MAAM,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC;IAC3E,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAoB,IAAI,CAAC,CAAC;IAE9D,MAAM,YAAY,GAAG,CAAC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@ export declare const rungNames: RungName[];
9
9
  export declare function createSoftwareRung(rung: RungName): {
10
10
  width: number;
11
11
  height: number;
12
- codec: components["schemas"]["x264Codec"];
12
+ codec: components["schemas"]["x264Codec"] | components["schemas"]["x265Codec"];
13
13
  frameRate: components["schemas"]["frameRate"];
14
14
  };
15
15
  export declare function createNvidiaRung(rung: RungName): {
16
16
  width: number;
17
17
  height: number;
18
- codec: components["schemas"]["nvidiaH264Codec"];
18
+ codec: components["schemas"]["nvidiaH264Codec"] | components["schemas"]["nvidiaHEVCCodec"];
19
19
  frameRate: components["schemas"]["frameRate"];
20
20
  };
21
21
  export declare function createQuadraRung(rung: RungName): {
@@ -25,7 +25,7 @@ export declare function createQuadraRung(rung: RungName): {
25
25
  type: "quadra";
26
26
  rescaler: "default" | "filterblit" | "bicubic";
27
27
  };
28
- codec: components["schemas"]["quadraH264Codec"];
28
+ codec: components["schemas"]["quadraH264Codec"] | components["schemas"]["quadraHEVCCodec"] | components["schemas"]["quadraAV1Codec"];
29
29
  frameRate: components["schemas"]["frameRate"];
30
30
  };
31
31
  export {};