@norskvideo/norsk-studio-source-switcher 1.27.0-2025-07-25-990c461b → 1.27.0-2025-07-26-e7ed77b9
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.
- package/lib/types.yaml +149 -63
- package/package.json +4 -4
package/lib/types.yaml
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# This file has been generated, please edit types.source.yaml instead
|
2
|
+
|
1
3
|
openapi: 3.0.0
|
2
4
|
components:
|
3
5
|
schemas:
|
@@ -17,21 +19,120 @@ components:
|
|
17
19
|
displayName:
|
18
20
|
type: string
|
19
21
|
resolution:
|
20
|
-
|
21
|
-
|
22
|
-
|
22
|
+
type: object
|
23
|
+
description: Video resolution with width and height dimensions
|
24
|
+
properties:
|
25
|
+
width:
|
26
|
+
type: integer
|
27
|
+
minimum: 1
|
28
|
+
description: Width in pixels
|
29
|
+
height:
|
30
|
+
type: integer
|
31
|
+
minimum: 1
|
32
|
+
description: Height in pixels
|
33
|
+
required:
|
34
|
+
- width
|
35
|
+
- height
|
36
|
+
frameRate: &a5
|
37
|
+
type: object
|
38
|
+
properties:
|
39
|
+
frames:
|
40
|
+
type: integer
|
41
|
+
seconds:
|
42
|
+
type: integer
|
43
|
+
required:
|
44
|
+
- frames
|
45
|
+
- seconds
|
23
46
|
enablePreviews:
|
24
47
|
type: boolean
|
25
48
|
sampleRate:
|
26
|
-
|
49
|
+
type: integer
|
50
|
+
enum:
|
51
|
+
- 8000
|
52
|
+
- 11025
|
53
|
+
- 12000
|
54
|
+
- 16000
|
55
|
+
- 22050
|
56
|
+
- 24000
|
57
|
+
- 32000
|
58
|
+
- 44100
|
59
|
+
- 48000
|
60
|
+
- 64000
|
61
|
+
- 88200
|
62
|
+
- 96000
|
63
|
+
description: Possible sample rates in Hz.
|
64
|
+
example: 48000
|
27
65
|
channelLayout:
|
28
|
-
|
66
|
+
description: Channel layout for an audio stream. Can be one of several string
|
67
|
+
presets, an array of channel names, or an object with a single
|
68
|
+
property.
|
69
|
+
oneOf:
|
70
|
+
- type: string
|
71
|
+
enum:
|
72
|
+
- mono
|
73
|
+
- stereo
|
74
|
+
- surround
|
75
|
+
- "4.0"
|
76
|
+
- "5.0"
|
77
|
+
- "5.1"
|
78
|
+
- "7.1"
|
79
|
+
- 5.1.4
|
80
|
+
- 7.1.4
|
81
|
+
- type: array
|
82
|
+
items: &a1
|
83
|
+
type: string
|
84
|
+
enum:
|
85
|
+
- l
|
86
|
+
- r
|
87
|
+
- c
|
88
|
+
- lfe
|
89
|
+
- ls
|
90
|
+
- rs
|
91
|
+
- lc
|
92
|
+
- rc
|
93
|
+
- lsr
|
94
|
+
- rsr
|
95
|
+
- cs
|
96
|
+
- lsd
|
97
|
+
- rsd
|
98
|
+
- lss
|
99
|
+
- rss
|
100
|
+
- lw
|
101
|
+
- rw
|
102
|
+
- lv
|
103
|
+
- rv
|
104
|
+
- cv
|
105
|
+
- lvr
|
106
|
+
- rvr
|
107
|
+
- cvr
|
108
|
+
- lvss
|
109
|
+
- rvss
|
110
|
+
- ts
|
111
|
+
- lfe2
|
112
|
+
- lb
|
113
|
+
- rb
|
114
|
+
- cb
|
115
|
+
- lvs
|
116
|
+
- rvs
|
117
|
+
- lfe3
|
118
|
+
- leos
|
119
|
+
- reos
|
120
|
+
- hwbcal
|
121
|
+
- hwbcar
|
122
|
+
- lbs
|
123
|
+
- rbs
|
124
|
+
- unknown
|
125
|
+
- type: object
|
126
|
+
properties:
|
127
|
+
single: *a1
|
128
|
+
required:
|
129
|
+
- single
|
29
130
|
notes:
|
30
131
|
type: string
|
31
|
-
stream:
|
132
|
+
stream: &a2
|
32
133
|
type: string
|
33
134
|
example: source1-stream
|
34
|
-
rect:
|
135
|
+
rect: &a3
|
35
136
|
type: object
|
36
137
|
required:
|
37
138
|
- x
|
@@ -41,60 +142,70 @@ components:
|
|
41
142
|
properties:
|
42
143
|
x:
|
43
144
|
type: number
|
44
|
-
|
145
|
+
y:
|
45
146
|
type: number
|
46
147
|
width:
|
47
148
|
type: number
|
48
149
|
height:
|
49
150
|
type: number
|
50
|
-
|
51
|
-
overlay:
|
151
|
+
overlay: &a4
|
52
152
|
type: object
|
53
153
|
required:
|
54
154
|
- source
|
55
155
|
properties:
|
56
|
-
source:
|
57
|
-
|
58
|
-
|
59
|
-
$ref: '#/components/schemas/rect'
|
60
|
-
destRect:
|
61
|
-
$ref: '#/components/schemas/rect'
|
62
|
-
|
156
|
+
source: *a2
|
157
|
+
sourceRect: *a3
|
158
|
+
destRect: *a3
|
63
159
|
status-update:
|
64
160
|
type: object
|
65
161
|
required:
|
66
162
|
- primary
|
67
163
|
properties:
|
68
|
-
primary:
|
69
|
-
|
70
|
-
|
71
|
-
|
164
|
+
primary: *a2
|
165
|
+
transition: &a7
|
166
|
+
discriminator:
|
167
|
+
propertyName: type
|
168
|
+
oneOf:
|
169
|
+
- type: object
|
170
|
+
properties:
|
171
|
+
type:
|
172
|
+
type: string
|
173
|
+
enum:
|
174
|
+
- fade
|
175
|
+
durationMs:
|
176
|
+
type: number
|
177
|
+
description: How long this transition should take
|
178
|
+
- type: object
|
179
|
+
properties:
|
180
|
+
type:
|
181
|
+
type: string
|
182
|
+
enum:
|
183
|
+
- animate
|
184
|
+
durationMs:
|
185
|
+
type: number
|
186
|
+
description: How long this transition should take
|
72
187
|
overlays:
|
73
188
|
type: array
|
74
|
-
items:
|
75
|
-
|
76
|
-
active-source:
|
189
|
+
items: *a4
|
190
|
+
active-source: &a6
|
77
191
|
type: object
|
78
192
|
required:
|
79
193
|
- source
|
80
194
|
- resolution
|
81
195
|
- age
|
82
196
|
properties:
|
83
|
-
source:
|
84
|
-
$ref: '#/components/schemas/stream'
|
197
|
+
source: *a2
|
85
198
|
resolution:
|
86
199
|
type: object
|
87
200
|
properties:
|
88
|
-
width:
|
89
|
-
type:
|
90
|
-
height:
|
91
|
-
type:
|
201
|
+
width:
|
202
|
+
type: number
|
203
|
+
height:
|
204
|
+
type: number
|
92
205
|
age:
|
93
206
|
type: number
|
94
|
-
description:
|
95
|
-
frameRate:
|
96
|
-
$ref: '../../core/src/types/base.yml#/components/schemas/FrameRate'
|
97
|
-
|
207
|
+
description: The number of milliseconds this source has been active
|
208
|
+
frameRate: *a5
|
98
209
|
status:
|
99
210
|
type: object
|
100
211
|
required:
|
@@ -107,36 +218,11 @@ components:
|
|
107
218
|
- primary
|
108
219
|
- overlays
|
109
220
|
properties:
|
110
|
-
primary:
|
111
|
-
$ref: '#/components/schemas/stream'
|
221
|
+
primary: *a2
|
112
222
|
overlays:
|
113
223
|
type: array
|
114
|
-
items:
|
115
|
-
$ref: '#/components/schemas/overlay'
|
224
|
+
items: *a4
|
116
225
|
available:
|
117
226
|
type: array
|
118
|
-
items:
|
119
|
-
|
120
|
-
|
121
|
-
transition:
|
122
|
-
discriminator:
|
123
|
-
propertyName: type
|
124
|
-
oneOf:
|
125
|
-
- type: object
|
126
|
-
properties:
|
127
|
-
type:
|
128
|
-
type: string
|
129
|
-
enum:
|
130
|
-
- fade
|
131
|
-
durationMs:
|
132
|
-
type: number
|
133
|
-
description: How long this transition should take
|
134
|
-
- type: object
|
135
|
-
properties:
|
136
|
-
type:
|
137
|
-
type: string
|
138
|
-
enum:
|
139
|
-
- animate
|
140
|
-
durationMs:
|
141
|
-
type: number
|
142
|
-
description: How long this transition should take
|
227
|
+
items: *a6
|
228
|
+
transition: *a7
|
package/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@norskvideo/norsk-studio-source-switcher",
|
3
|
-
"version": "1.27.0-2025-07-
|
3
|
+
"version": "1.27.0-2025-07-26-e7ed77b9",
|
4
4
|
"description": "",
|
5
5
|
"scripts": {
|
6
6
|
"clean": "rm -rf lib client build",
|
7
|
-
"types": "npx openapi-typescript src/types.yaml -o src/types.ts",
|
7
|
+
"types": "make && npx openapi-typescript src/types.yaml -o src/types.ts",
|
8
8
|
"build": "npm run types && npx npm-run-all build:* && rm -rf build",
|
9
9
|
"build:server": "npx tsc",
|
10
10
|
"build:client": "npx tsc -p tsconfig-client.json && npx studio-bundle build/info.js client/info.js",
|
@@ -25,8 +25,8 @@
|
|
25
25
|
"@aws-sdk/client-medialive": "^3.499.0",
|
26
26
|
"@aws-sdk/client-mediapackage": "^3.499.0",
|
27
27
|
"@aws-sdk/client-translate": "^3.535.0",
|
28
|
-
"@norskvideo/norsk-sdk": "^1.0.402-2025-07-
|
29
|
-
"@norskvideo/norsk-studio": "1.27.0-2025-07-
|
28
|
+
"@norskvideo/norsk-sdk": "^1.0.402-2025-07-26-75aaa965",
|
29
|
+
"@norskvideo/norsk-studio": "1.27.0-2025-07-26-e7ed77b9",
|
30
30
|
"@norskvideo/webrtc-client": "^0.1.2",
|
31
31
|
"chart.js": "^4.4.2",
|
32
32
|
"express": "^4.18.2",
|