moqtail 0.15.0 → 0.17.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.
- package/README.md +153 -473
- package/dist/client-CjdF7_cL.d.cts +1928 -0
- package/dist/{client-BviQ20Lc.cjs → client-FnSNJocV.cjs} +1102 -1192
- package/dist/client-I8mDg-Ls.d.mts +1928 -0
- package/dist/{client-zi0lmuIL.mjs → client-MXn-lkAA.mjs} +940 -1018
- package/dist/client.cjs +202 -7
- package/dist/client.d.cts +23 -1944
- package/dist/client.d.mts +23 -1944
- package/dist/client.mjs +195 -2
- package/dist/emitter-UbeRcbuf.mjs +109 -0
- package/dist/{logger-c2NoQqtx.cjs → emitter-qNJYD3yQ.cjs} +61 -2
- package/dist/{index-BY6e1obL.d.cts → index-BaZgHZ8D.d.mts} +124 -324
- package/dist/index-Bn8VlVoN.d.cts +2261 -0
- package/dist/index-Ch5QUygw.d.mts +2261 -0
- package/dist/index.cjs +18 -14
- package/dist/index.d.cts +20 -4
- package/dist/index.d.mts +20 -4
- package/dist/index.mjs +5 -4
- package/dist/logger-B8IYkljn.d.cts +64 -0
- package/dist/logger-B8IYkljn.d.mts +64 -0
- package/dist/model.cjs +380 -572
- package/dist/model.d.cts +2901 -2
- package/dist/model.d.mts +17 -2
- package/dist/model.mjs +380 -572
- package/dist/player/component.cjs +364 -0
- package/dist/player/component.d.cts +59 -0
- package/dist/player/component.d.mts +59 -0
- package/dist/player/component.mjs +362 -0
- package/dist/player-C6y-qpHz.cjs +8488 -0
- package/dist/player-DfJB6vBH.mjs +8293 -0
- package/dist/player.cjs +31 -0
- package/dist/player.d.cts +17 -0
- package/dist/player.d.mts +17 -0
- package/dist/player.mjs +1 -0
- package/dist/util.cjs +9 -10
- package/dist/util.d.cts +20 -13
- package/dist/util.d.mts +20 -13
- package/dist/util.mjs +4 -6
- package/package.json +46 -5
- package/dist/index-BY6e1obL.d.mts +0 -3087
- package/dist/logger-ByDB8lYF.mjs +0 -56
- package/dist/logger-dEoueCj7.d.cts +0 -35
- package/dist/logger-dEoueCj7.d.mts +0 -35
|
@@ -0,0 +1,2261 @@
|
|
|
1
|
+
import { Location, MoqtObject, Setup, SetupOptions, Tuple } from "./model.cjs";
|
|
2
|
+
import { D as FetchOptions, J as DataEvent, M as SubscribeOptions, N as SubscribeResult, O as FetchResult, X as DataHeaderEvent, j as ObjectOrdering, k as MOQtailClientOptions, t as MOQtailClient } from "./client-CjdF7_cL.cjs";
|
|
3
|
+
import { o as Emitter } from "./logger-B8IYkljn.cjs";
|
|
4
|
+
import * as v from "valibot";
|
|
5
|
+
/** @public An inclusive range of MOQT Locations. */
|
|
6
|
+
interface LocationRange {
|
|
7
|
+
/** Start Object ID defaults to 0. */
|
|
8
|
+
start: Location;
|
|
9
|
+
/** No end: open range. No end object: the whole end group. */
|
|
10
|
+
end?: {
|
|
11
|
+
group: bigint;
|
|
12
|
+
object?: bigint;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/** @public An inclusive range in milliseconds. No end: open range. */
|
|
16
|
+
interface TimeRange {
|
|
17
|
+
start: number;
|
|
18
|
+
end?: number;
|
|
19
|
+
}
|
|
20
|
+
/** @public A parsed MSF URL. */
|
|
21
|
+
interface MsfSource {
|
|
22
|
+
/** `moqt://authority/path[?query]`, lowercase scheme, no fragment. */
|
|
23
|
+
url: string;
|
|
24
|
+
/** Namespace fields hold the decoded bytes. */
|
|
25
|
+
namespace: Tuple;
|
|
26
|
+
/** The track name decoded as UTF-8, for display and probing. */
|
|
27
|
+
track: string;
|
|
28
|
+
/** The track name bytes. Names are compared as bytes (MSF 11.2.2). */
|
|
29
|
+
trackBytes: Uint8Array;
|
|
30
|
+
locationRanges: LocationRange[];
|
|
31
|
+
mediaTimeRanges: TimeRange[];
|
|
32
|
+
wallclockRanges: TimeRange[];
|
|
33
|
+
cat?: string;
|
|
34
|
+
connection?: 'q' | 'wt';
|
|
35
|
+
/** Every fragment parameter, last value wins. Used for catalog variable substitution (MSF 5.4). */
|
|
36
|
+
variables: Record<string, string>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @public
|
|
40
|
+
* Parses an MSF URL (MSF 11.1). Ranges stay in their own domain and aren't merged.
|
|
41
|
+
* @throws PlayerError `UNSUPPORTED_SOURCE` for anything that isn't a valid `msf-uri`.
|
|
42
|
+
*/
|
|
43
|
+
declare function parseMsfUrl(uri: string): MsfSource;
|
|
44
|
+
/**
|
|
45
|
+
* @public
|
|
46
|
+
* Builds an MSF URL from a `moqt://authority/path[?query]` session URL and a full track name.
|
|
47
|
+
*/
|
|
48
|
+
declare function formatMsfUrl(url: string, namespace: Tuple, track: Uint8Array | string): string;
|
|
49
|
+
/**
|
|
50
|
+
* Copyright 2026 The MOQtail Authors
|
|
51
|
+
*
|
|
52
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
53
|
+
* you may not use this file except in compliance with the License.
|
|
54
|
+
* You may obtain a copy of the License at
|
|
55
|
+
*
|
|
56
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
57
|
+
*
|
|
58
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
59
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
60
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
61
|
+
* See the License for the specific language governing permissions and
|
|
62
|
+
* limitations under the License.
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
* Every error the player reports. The first group is fatal (`error` event), the
|
|
67
|
+
* second are warnings (`warning` event).
|
|
68
|
+
*/
|
|
69
|
+
type PlayerErrorCode = 'UNSUPPORTED_SOURCE' | 'UNSUPPORTED_ORIGIN' | 'CATALOG_TIMEOUT' | 'SESSION_LOST' | 'MEDIA_FAILURE' | 'SEEK_FAILED' | 'NO_MEDIA_SINK' | 'ABORTED' | 'PAD_UNLINKED' | 'TRACK_SKIPPED' | 'VARIABLE_SKIPPED' | 'INVALID_CATALOG_UPDATE';
|
|
70
|
+
/**
|
|
71
|
+
* @public
|
|
72
|
+
* Broad failure class, mapped to a `MediaError` code by the web component.
|
|
73
|
+
*/
|
|
74
|
+
type PlayerErrorCategory = 'source' | 'network' | 'media' | 'aborted';
|
|
75
|
+
/**
|
|
76
|
+
* @public
|
|
77
|
+
* The single error type of the player module. `element` names the element that
|
|
78
|
+
* raised it, when there is one.
|
|
79
|
+
*/
|
|
80
|
+
declare class PlayerError extends Error {
|
|
81
|
+
readonly code: PlayerErrorCode;
|
|
82
|
+
readonly category: PlayerErrorCategory;
|
|
83
|
+
readonly element?: string;
|
|
84
|
+
constructor(code: PlayerErrorCode, message: string, options?: {
|
|
85
|
+
element?: string;
|
|
86
|
+
cause?: unknown;
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/** @public Where a track's init data comes from (MSF 5.1.7, 12.2). */
|
|
90
|
+
type InitData = {
|
|
91
|
+
type: 'inline';
|
|
92
|
+
data: Uint8Array;
|
|
93
|
+
} | {
|
|
94
|
+
type: 'track-property' | 'object-property';
|
|
95
|
+
property: number;
|
|
96
|
+
};
|
|
97
|
+
/** An independent catalog (MSF 5.1) whose tracks without a namespace inherit `catalogNamespace`. */
|
|
98
|
+
declare const catalogSchema: (catalogNamespace: Tuple) => v.SchemaWithPipe<readonly [v.LooseObjectSchema<{
|
|
99
|
+
readonly version: v.PicklistSchema<readonly ["draft-01", "draft-02"], (issue: v.PicklistIssue) => string>;
|
|
100
|
+
readonly generatedAt: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
101
|
+
readonly isComplete: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
|
|
102
|
+
readonly tracks: v.ArraySchema<v.SchemaWithPipe<readonly [v.LooseObjectSchema<{
|
|
103
|
+
readonly namespace: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, Tuple>]>, undefined>;
|
|
104
|
+
readonly name: v.StringSchema<undefined>;
|
|
105
|
+
readonly packaging: v.StringSchema<undefined>;
|
|
106
|
+
readonly packagingMetadata: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, Record<string, string>>]>, undefined>;
|
|
107
|
+
readonly eventType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
108
|
+
readonly role: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
109
|
+
readonly isLive: v.BooleanSchema<undefined>;
|
|
110
|
+
readonly targetLatency: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
111
|
+
readonly buffers: v.OptionalSchema<v.LooseObjectSchema<{
|
|
112
|
+
readonly target: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
113
|
+
readonly min: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
114
|
+
readonly max: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
115
|
+
}, undefined>, undefined>;
|
|
116
|
+
readonly label: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
117
|
+
readonly renderGroup: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
118
|
+
readonly altGroup: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
119
|
+
readonly initRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
120
|
+
readonly depends: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>, undefined>;
|
|
121
|
+
readonly template: v.OptionalSchema<v.SchemaWithPipe<readonly [v.TupleSchema<[v.NumberSchema<undefined>, v.NumberSchema<undefined>, v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, v.NumberSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<[number, number, [number, number], [number, number], number, number], {
|
|
122
|
+
startMediaTime: number;
|
|
123
|
+
deltaMediaTime: number;
|
|
124
|
+
startLocation: [number, number];
|
|
125
|
+
deltaLocation: [number, number];
|
|
126
|
+
startWallclock: number;
|
|
127
|
+
deltaWallclock: number;
|
|
128
|
+
}>]>, undefined>;
|
|
129
|
+
readonly temporalId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
130
|
+
readonly spatialId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
131
|
+
readonly codec: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
132
|
+
readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
133
|
+
readonly framerate: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
134
|
+
readonly timescale: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
135
|
+
readonly bitrate: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
136
|
+
readonly avgBitrate: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
137
|
+
readonly maxGopDuration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
138
|
+
readonly maxGroupDuration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
139
|
+
readonly width: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
140
|
+
readonly height: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
141
|
+
readonly samplerate: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
142
|
+
readonly channelConfig: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
143
|
+
readonly displayWidth: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
144
|
+
readonly displayHeight: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
145
|
+
readonly lang: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
146
|
+
readonly parentName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
147
|
+
readonly parentNamespace: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
148
|
+
readonly trackDuration: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
149
|
+
readonly connectionUri: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
150
|
+
readonly token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
151
|
+
readonly authInfo: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
152
|
+
readonly accessibility: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
|
|
153
|
+
readonly scheme: v.StringSchema<undefined>;
|
|
154
|
+
readonly value: v.StringSchema<undefined>;
|
|
155
|
+
}, undefined>, undefined>, undefined>;
|
|
156
|
+
readonly accessibleWindowTime: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
157
|
+
readonly keyframeSpacing: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
158
|
+
readonly maxGrpSapStartingType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
159
|
+
readonly maxObjSapStartingType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
160
|
+
}, undefined>, v.CheckAction<{
|
|
161
|
+
namespace?: Tuple | undefined;
|
|
162
|
+
name: string;
|
|
163
|
+
packaging: string;
|
|
164
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
165
|
+
eventType?: string | undefined;
|
|
166
|
+
role?: string | undefined;
|
|
167
|
+
isLive: boolean;
|
|
168
|
+
targetLatency?: number | undefined;
|
|
169
|
+
buffers?: ({
|
|
170
|
+
target?: number | undefined;
|
|
171
|
+
min?: number | undefined;
|
|
172
|
+
max?: number | undefined;
|
|
173
|
+
} & {
|
|
174
|
+
[key: string]: unknown;
|
|
175
|
+
}) | undefined;
|
|
176
|
+
label?: string | undefined;
|
|
177
|
+
renderGroup?: number | undefined;
|
|
178
|
+
altGroup?: number | undefined;
|
|
179
|
+
initRef?: string | undefined;
|
|
180
|
+
depends?: (string | number)[] | undefined;
|
|
181
|
+
template?: {
|
|
182
|
+
startMediaTime: number;
|
|
183
|
+
deltaMediaTime: number;
|
|
184
|
+
startLocation: [number, number];
|
|
185
|
+
deltaLocation: [number, number];
|
|
186
|
+
startWallclock: number;
|
|
187
|
+
deltaWallclock: number;
|
|
188
|
+
} | undefined;
|
|
189
|
+
temporalId?: number | undefined;
|
|
190
|
+
spatialId?: number | undefined;
|
|
191
|
+
codec?: string | undefined;
|
|
192
|
+
mimeType?: string | undefined;
|
|
193
|
+
framerate?: number | undefined;
|
|
194
|
+
timescale?: number | undefined;
|
|
195
|
+
bitrate?: number | undefined;
|
|
196
|
+
avgBitrate?: number | undefined;
|
|
197
|
+
maxGopDuration?: number | undefined;
|
|
198
|
+
maxGroupDuration?: number | undefined;
|
|
199
|
+
width?: number | undefined;
|
|
200
|
+
height?: number | undefined;
|
|
201
|
+
samplerate?: number | undefined;
|
|
202
|
+
channelConfig?: string | undefined;
|
|
203
|
+
displayWidth?: number | undefined;
|
|
204
|
+
displayHeight?: number | undefined;
|
|
205
|
+
lang?: string | undefined;
|
|
206
|
+
parentName?: string | undefined;
|
|
207
|
+
parentNamespace?: string | undefined;
|
|
208
|
+
trackDuration?: number | undefined;
|
|
209
|
+
connectionUri?: string | undefined;
|
|
210
|
+
token?: string | undefined;
|
|
211
|
+
authInfo?: {
|
|
212
|
+
[x: string]: unknown;
|
|
213
|
+
} | undefined;
|
|
214
|
+
accessibility?: ({
|
|
215
|
+
scheme: string;
|
|
216
|
+
value: string;
|
|
217
|
+
} & {
|
|
218
|
+
[key: string]: unknown;
|
|
219
|
+
})[] | undefined;
|
|
220
|
+
accessibleWindowTime?: number | undefined;
|
|
221
|
+
keyframeSpacing?: number | undefined;
|
|
222
|
+
maxGrpSapStartingType?: number | undefined;
|
|
223
|
+
maxObjSapStartingType?: number | undefined;
|
|
224
|
+
} & {
|
|
225
|
+
[key: string]: unknown;
|
|
226
|
+
}, (issue: v.CheckIssue<{
|
|
227
|
+
namespace?: Tuple | undefined;
|
|
228
|
+
name: string;
|
|
229
|
+
packaging: string;
|
|
230
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
231
|
+
eventType?: string | undefined;
|
|
232
|
+
role?: string | undefined;
|
|
233
|
+
isLive: boolean;
|
|
234
|
+
targetLatency?: number | undefined;
|
|
235
|
+
buffers?: ({
|
|
236
|
+
target?: number | undefined;
|
|
237
|
+
min?: number | undefined;
|
|
238
|
+
max?: number | undefined;
|
|
239
|
+
} & {
|
|
240
|
+
[key: string]: unknown;
|
|
241
|
+
}) | undefined;
|
|
242
|
+
label?: string | undefined;
|
|
243
|
+
renderGroup?: number | undefined;
|
|
244
|
+
altGroup?: number | undefined;
|
|
245
|
+
initRef?: string | undefined;
|
|
246
|
+
depends?: (string | number)[] | undefined;
|
|
247
|
+
template?: {
|
|
248
|
+
startMediaTime: number;
|
|
249
|
+
deltaMediaTime: number;
|
|
250
|
+
startLocation: [number, number];
|
|
251
|
+
deltaLocation: [number, number];
|
|
252
|
+
startWallclock: number;
|
|
253
|
+
deltaWallclock: number;
|
|
254
|
+
} | undefined;
|
|
255
|
+
temporalId?: number | undefined;
|
|
256
|
+
spatialId?: number | undefined;
|
|
257
|
+
codec?: string | undefined;
|
|
258
|
+
mimeType?: string | undefined;
|
|
259
|
+
framerate?: number | undefined;
|
|
260
|
+
timescale?: number | undefined;
|
|
261
|
+
bitrate?: number | undefined;
|
|
262
|
+
avgBitrate?: number | undefined;
|
|
263
|
+
maxGopDuration?: number | undefined;
|
|
264
|
+
maxGroupDuration?: number | undefined;
|
|
265
|
+
width?: number | undefined;
|
|
266
|
+
height?: number | undefined;
|
|
267
|
+
samplerate?: number | undefined;
|
|
268
|
+
channelConfig?: string | undefined;
|
|
269
|
+
displayWidth?: number | undefined;
|
|
270
|
+
displayHeight?: number | undefined;
|
|
271
|
+
lang?: string | undefined;
|
|
272
|
+
parentName?: string | undefined;
|
|
273
|
+
parentNamespace?: string | undefined;
|
|
274
|
+
trackDuration?: number | undefined;
|
|
275
|
+
connectionUri?: string | undefined;
|
|
276
|
+
token?: string | undefined;
|
|
277
|
+
authInfo?: {
|
|
278
|
+
[x: string]: unknown;
|
|
279
|
+
} | undefined;
|
|
280
|
+
accessibility?: ({
|
|
281
|
+
scheme: string;
|
|
282
|
+
value: string;
|
|
283
|
+
} & {
|
|
284
|
+
[key: string]: unknown;
|
|
285
|
+
})[] | undefined;
|
|
286
|
+
accessibleWindowTime?: number | undefined;
|
|
287
|
+
keyframeSpacing?: number | undefined;
|
|
288
|
+
maxGrpSapStartingType?: number | undefined;
|
|
289
|
+
maxObjSapStartingType?: number | undefined;
|
|
290
|
+
} & {
|
|
291
|
+
[key: string]: unknown;
|
|
292
|
+
}>) => string>, v.CheckAction<{
|
|
293
|
+
namespace?: Tuple | undefined;
|
|
294
|
+
name: string;
|
|
295
|
+
packaging: string;
|
|
296
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
297
|
+
eventType?: string | undefined;
|
|
298
|
+
role?: string | undefined;
|
|
299
|
+
isLive: boolean;
|
|
300
|
+
targetLatency?: number | undefined;
|
|
301
|
+
buffers?: ({
|
|
302
|
+
target?: number | undefined;
|
|
303
|
+
min?: number | undefined;
|
|
304
|
+
max?: number | undefined;
|
|
305
|
+
} & {
|
|
306
|
+
[key: string]: unknown;
|
|
307
|
+
}) | undefined;
|
|
308
|
+
label?: string | undefined;
|
|
309
|
+
renderGroup?: number | undefined;
|
|
310
|
+
altGroup?: number | undefined;
|
|
311
|
+
initRef?: string | undefined;
|
|
312
|
+
depends?: (string | number)[] | undefined;
|
|
313
|
+
template?: {
|
|
314
|
+
startMediaTime: number;
|
|
315
|
+
deltaMediaTime: number;
|
|
316
|
+
startLocation: [number, number];
|
|
317
|
+
deltaLocation: [number, number];
|
|
318
|
+
startWallclock: number;
|
|
319
|
+
deltaWallclock: number;
|
|
320
|
+
} | undefined;
|
|
321
|
+
temporalId?: number | undefined;
|
|
322
|
+
spatialId?: number | undefined;
|
|
323
|
+
codec?: string | undefined;
|
|
324
|
+
mimeType?: string | undefined;
|
|
325
|
+
framerate?: number | undefined;
|
|
326
|
+
timescale?: number | undefined;
|
|
327
|
+
bitrate?: number | undefined;
|
|
328
|
+
avgBitrate?: number | undefined;
|
|
329
|
+
maxGopDuration?: number | undefined;
|
|
330
|
+
maxGroupDuration?: number | undefined;
|
|
331
|
+
width?: number | undefined;
|
|
332
|
+
height?: number | undefined;
|
|
333
|
+
samplerate?: number | undefined;
|
|
334
|
+
channelConfig?: string | undefined;
|
|
335
|
+
displayWidth?: number | undefined;
|
|
336
|
+
displayHeight?: number | undefined;
|
|
337
|
+
lang?: string | undefined;
|
|
338
|
+
parentName?: string | undefined;
|
|
339
|
+
parentNamespace?: string | undefined;
|
|
340
|
+
trackDuration?: number | undefined;
|
|
341
|
+
connectionUri?: string | undefined;
|
|
342
|
+
token?: string | undefined;
|
|
343
|
+
authInfo?: {
|
|
344
|
+
[x: string]: unknown;
|
|
345
|
+
} | undefined;
|
|
346
|
+
accessibility?: ({
|
|
347
|
+
scheme: string;
|
|
348
|
+
value: string;
|
|
349
|
+
} & {
|
|
350
|
+
[key: string]: unknown;
|
|
351
|
+
})[] | undefined;
|
|
352
|
+
accessibleWindowTime?: number | undefined;
|
|
353
|
+
keyframeSpacing?: number | undefined;
|
|
354
|
+
maxGrpSapStartingType?: number | undefined;
|
|
355
|
+
maxObjSapStartingType?: number | undefined;
|
|
356
|
+
} & {
|
|
357
|
+
[key: string]: unknown;
|
|
358
|
+
}, "eventType goes with, and only with, eventtimeline packaging (MSF 5.2.6)">, v.CheckAction<{
|
|
359
|
+
namespace?: Tuple | undefined;
|
|
360
|
+
name: string;
|
|
361
|
+
packaging: string;
|
|
362
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
363
|
+
eventType?: string | undefined;
|
|
364
|
+
role?: string | undefined;
|
|
365
|
+
isLive: boolean;
|
|
366
|
+
targetLatency?: number | undefined;
|
|
367
|
+
buffers?: ({
|
|
368
|
+
target?: number | undefined;
|
|
369
|
+
min?: number | undefined;
|
|
370
|
+
max?: number | undefined;
|
|
371
|
+
} & {
|
|
372
|
+
[key: string]: unknown;
|
|
373
|
+
}) | undefined;
|
|
374
|
+
label?: string | undefined;
|
|
375
|
+
renderGroup?: number | undefined;
|
|
376
|
+
altGroup?: number | undefined;
|
|
377
|
+
initRef?: string | undefined;
|
|
378
|
+
depends?: (string | number)[] | undefined;
|
|
379
|
+
template?: {
|
|
380
|
+
startMediaTime: number;
|
|
381
|
+
deltaMediaTime: number;
|
|
382
|
+
startLocation: [number, number];
|
|
383
|
+
deltaLocation: [number, number];
|
|
384
|
+
startWallclock: number;
|
|
385
|
+
deltaWallclock: number;
|
|
386
|
+
} | undefined;
|
|
387
|
+
temporalId?: number | undefined;
|
|
388
|
+
spatialId?: number | undefined;
|
|
389
|
+
codec?: string | undefined;
|
|
390
|
+
mimeType?: string | undefined;
|
|
391
|
+
framerate?: number | undefined;
|
|
392
|
+
timescale?: number | undefined;
|
|
393
|
+
bitrate?: number | undefined;
|
|
394
|
+
avgBitrate?: number | undefined;
|
|
395
|
+
maxGopDuration?: number | undefined;
|
|
396
|
+
maxGroupDuration?: number | undefined;
|
|
397
|
+
width?: number | undefined;
|
|
398
|
+
height?: number | undefined;
|
|
399
|
+
samplerate?: number | undefined;
|
|
400
|
+
channelConfig?: string | undefined;
|
|
401
|
+
displayWidth?: number | undefined;
|
|
402
|
+
displayHeight?: number | undefined;
|
|
403
|
+
lang?: string | undefined;
|
|
404
|
+
parentName?: string | undefined;
|
|
405
|
+
parentNamespace?: string | undefined;
|
|
406
|
+
trackDuration?: number | undefined;
|
|
407
|
+
connectionUri?: string | undefined;
|
|
408
|
+
token?: string | undefined;
|
|
409
|
+
authInfo?: {
|
|
410
|
+
[x: string]: unknown;
|
|
411
|
+
} | undefined;
|
|
412
|
+
accessibility?: ({
|
|
413
|
+
scheme: string;
|
|
414
|
+
value: string;
|
|
415
|
+
} & {
|
|
416
|
+
[key: string]: unknown;
|
|
417
|
+
})[] | undefined;
|
|
418
|
+
accessibleWindowTime?: number | undefined;
|
|
419
|
+
keyframeSpacing?: number | undefined;
|
|
420
|
+
maxGrpSapStartingType?: number | undefined;
|
|
421
|
+
maxObjSapStartingType?: number | undefined;
|
|
422
|
+
} & {
|
|
423
|
+
[key: string]: unknown;
|
|
424
|
+
}, "targetLatency and buffers are mutually exclusive (MSF 5.2.9)">, v.CheckAction<{
|
|
425
|
+
namespace?: Tuple | undefined;
|
|
426
|
+
name: string;
|
|
427
|
+
packaging: string;
|
|
428
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
429
|
+
eventType?: string | undefined;
|
|
430
|
+
role?: string | undefined;
|
|
431
|
+
isLive: boolean;
|
|
432
|
+
targetLatency?: number | undefined;
|
|
433
|
+
buffers?: ({
|
|
434
|
+
target?: number | undefined;
|
|
435
|
+
min?: number | undefined;
|
|
436
|
+
max?: number | undefined;
|
|
437
|
+
} & {
|
|
438
|
+
[key: string]: unknown;
|
|
439
|
+
}) | undefined;
|
|
440
|
+
label?: string | undefined;
|
|
441
|
+
renderGroup?: number | undefined;
|
|
442
|
+
altGroup?: number | undefined;
|
|
443
|
+
initRef?: string | undefined;
|
|
444
|
+
depends?: (string | number)[] | undefined;
|
|
445
|
+
template?: {
|
|
446
|
+
startMediaTime: number;
|
|
447
|
+
deltaMediaTime: number;
|
|
448
|
+
startLocation: [number, number];
|
|
449
|
+
deltaLocation: [number, number];
|
|
450
|
+
startWallclock: number;
|
|
451
|
+
deltaWallclock: number;
|
|
452
|
+
} | undefined;
|
|
453
|
+
temporalId?: number | undefined;
|
|
454
|
+
spatialId?: number | undefined;
|
|
455
|
+
codec?: string | undefined;
|
|
456
|
+
mimeType?: string | undefined;
|
|
457
|
+
framerate?: number | undefined;
|
|
458
|
+
timescale?: number | undefined;
|
|
459
|
+
bitrate?: number | undefined;
|
|
460
|
+
avgBitrate?: number | undefined;
|
|
461
|
+
maxGopDuration?: number | undefined;
|
|
462
|
+
maxGroupDuration?: number | undefined;
|
|
463
|
+
width?: number | undefined;
|
|
464
|
+
height?: number | undefined;
|
|
465
|
+
samplerate?: number | undefined;
|
|
466
|
+
channelConfig?: string | undefined;
|
|
467
|
+
displayWidth?: number | undefined;
|
|
468
|
+
displayHeight?: number | undefined;
|
|
469
|
+
lang?: string | undefined;
|
|
470
|
+
parentName?: string | undefined;
|
|
471
|
+
parentNamespace?: string | undefined;
|
|
472
|
+
trackDuration?: number | undefined;
|
|
473
|
+
connectionUri?: string | undefined;
|
|
474
|
+
token?: string | undefined;
|
|
475
|
+
authInfo?: {
|
|
476
|
+
[x: string]: unknown;
|
|
477
|
+
} | undefined;
|
|
478
|
+
accessibility?: ({
|
|
479
|
+
scheme: string;
|
|
480
|
+
value: string;
|
|
481
|
+
} & {
|
|
482
|
+
[key: string]: unknown;
|
|
483
|
+
})[] | undefined;
|
|
484
|
+
accessibleWindowTime?: number | undefined;
|
|
485
|
+
keyframeSpacing?: number | undefined;
|
|
486
|
+
maxGrpSapStartingType?: number | undefined;
|
|
487
|
+
maxObjSapStartingType?: number | undefined;
|
|
488
|
+
} & {
|
|
489
|
+
[key: string]: unknown;
|
|
490
|
+
}, "a live track has no trackDuration (MSF 5.2.36)">, v.TransformAction<{
|
|
491
|
+
namespace?: Tuple | undefined;
|
|
492
|
+
name: string;
|
|
493
|
+
packaging: string;
|
|
494
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
495
|
+
eventType?: string | undefined;
|
|
496
|
+
role?: string | undefined;
|
|
497
|
+
isLive: boolean;
|
|
498
|
+
targetLatency?: number | undefined;
|
|
499
|
+
buffers?: ({
|
|
500
|
+
target?: number | undefined;
|
|
501
|
+
min?: number | undefined;
|
|
502
|
+
max?: number | undefined;
|
|
503
|
+
} & {
|
|
504
|
+
[key: string]: unknown;
|
|
505
|
+
}) | undefined;
|
|
506
|
+
label?: string | undefined;
|
|
507
|
+
renderGroup?: number | undefined;
|
|
508
|
+
altGroup?: number | undefined;
|
|
509
|
+
initRef?: string | undefined;
|
|
510
|
+
depends?: (string | number)[] | undefined;
|
|
511
|
+
template?: {
|
|
512
|
+
startMediaTime: number;
|
|
513
|
+
deltaMediaTime: number;
|
|
514
|
+
startLocation: [number, number];
|
|
515
|
+
deltaLocation: [number, number];
|
|
516
|
+
startWallclock: number;
|
|
517
|
+
deltaWallclock: number;
|
|
518
|
+
} | undefined;
|
|
519
|
+
temporalId?: number | undefined;
|
|
520
|
+
spatialId?: number | undefined;
|
|
521
|
+
codec?: string | undefined;
|
|
522
|
+
mimeType?: string | undefined;
|
|
523
|
+
framerate?: number | undefined;
|
|
524
|
+
timescale?: number | undefined;
|
|
525
|
+
bitrate?: number | undefined;
|
|
526
|
+
avgBitrate?: number | undefined;
|
|
527
|
+
maxGopDuration?: number | undefined;
|
|
528
|
+
maxGroupDuration?: number | undefined;
|
|
529
|
+
width?: number | undefined;
|
|
530
|
+
height?: number | undefined;
|
|
531
|
+
samplerate?: number | undefined;
|
|
532
|
+
channelConfig?: string | undefined;
|
|
533
|
+
displayWidth?: number | undefined;
|
|
534
|
+
displayHeight?: number | undefined;
|
|
535
|
+
lang?: string | undefined;
|
|
536
|
+
parentName?: string | undefined;
|
|
537
|
+
parentNamespace?: string | undefined;
|
|
538
|
+
trackDuration?: number | undefined;
|
|
539
|
+
connectionUri?: string | undefined;
|
|
540
|
+
token?: string | undefined;
|
|
541
|
+
authInfo?: {
|
|
542
|
+
[x: string]: unknown;
|
|
543
|
+
} | undefined;
|
|
544
|
+
accessibility?: ({
|
|
545
|
+
scheme: string;
|
|
546
|
+
value: string;
|
|
547
|
+
} & {
|
|
548
|
+
[key: string]: unknown;
|
|
549
|
+
})[] | undefined;
|
|
550
|
+
accessibleWindowTime?: number | undefined;
|
|
551
|
+
keyframeSpacing?: number | undefined;
|
|
552
|
+
maxGrpSapStartingType?: number | undefined;
|
|
553
|
+
maxObjSapStartingType?: number | undefined;
|
|
554
|
+
} & {
|
|
555
|
+
[key: string]: unknown;
|
|
556
|
+
}, {
|
|
557
|
+
namespace?: Tuple | undefined;
|
|
558
|
+
name: string;
|
|
559
|
+
packaging: string;
|
|
560
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
561
|
+
eventType?: string | undefined;
|
|
562
|
+
role?: string | undefined;
|
|
563
|
+
isLive: boolean;
|
|
564
|
+
targetLatency?: number | undefined;
|
|
565
|
+
buffers?: ({
|
|
566
|
+
target?: number | undefined;
|
|
567
|
+
min?: number | undefined;
|
|
568
|
+
max?: number | undefined;
|
|
569
|
+
} & {
|
|
570
|
+
[key: string]: unknown;
|
|
571
|
+
}) | undefined;
|
|
572
|
+
label?: string | undefined;
|
|
573
|
+
renderGroup?: number | undefined;
|
|
574
|
+
altGroup?: number | undefined;
|
|
575
|
+
initRef?: string | undefined;
|
|
576
|
+
depends?: (string | number)[] | undefined;
|
|
577
|
+
template?: {
|
|
578
|
+
startMediaTime: number;
|
|
579
|
+
deltaMediaTime: number;
|
|
580
|
+
startLocation: [number, number];
|
|
581
|
+
deltaLocation: [number, number];
|
|
582
|
+
startWallclock: number;
|
|
583
|
+
deltaWallclock: number;
|
|
584
|
+
} | undefined;
|
|
585
|
+
temporalId?: number | undefined;
|
|
586
|
+
spatialId?: number | undefined;
|
|
587
|
+
codec?: string | undefined;
|
|
588
|
+
mimeType?: string | undefined;
|
|
589
|
+
framerate?: number | undefined;
|
|
590
|
+
timescale?: number | undefined;
|
|
591
|
+
bitrate?: number | undefined;
|
|
592
|
+
avgBitrate?: number | undefined;
|
|
593
|
+
maxGopDuration?: number | undefined;
|
|
594
|
+
maxGroupDuration?: number | undefined;
|
|
595
|
+
width?: number | undefined;
|
|
596
|
+
height?: number | undefined;
|
|
597
|
+
samplerate?: number | undefined;
|
|
598
|
+
channelConfig?: string | undefined;
|
|
599
|
+
displayWidth?: number | undefined;
|
|
600
|
+
displayHeight?: number | undefined;
|
|
601
|
+
lang?: string | undefined;
|
|
602
|
+
parentName?: string | undefined;
|
|
603
|
+
parentNamespace?: string | undefined;
|
|
604
|
+
trackDuration?: number | undefined;
|
|
605
|
+
connectionUri?: string | undefined;
|
|
606
|
+
token?: string | undefined;
|
|
607
|
+
authInfo?: {
|
|
608
|
+
[x: string]: unknown;
|
|
609
|
+
} | undefined;
|
|
610
|
+
accessibility?: ({
|
|
611
|
+
scheme: string;
|
|
612
|
+
value: string;
|
|
613
|
+
} & {
|
|
614
|
+
[key: string]: unknown;
|
|
615
|
+
})[] | undefined;
|
|
616
|
+
accessibleWindowTime?: number | undefined;
|
|
617
|
+
keyframeSpacing?: number | undefined;
|
|
618
|
+
maxGrpSapStartingType?: number | undefined;
|
|
619
|
+
maxObjSapStartingType?: number | undefined;
|
|
620
|
+
} & {
|
|
621
|
+
[key: string]: unknown;
|
|
622
|
+
} & {
|
|
623
|
+
nameBytes: Uint8Array;
|
|
624
|
+
namespace: Tuple;
|
|
625
|
+
init?: InitData;
|
|
626
|
+
}>]>, undefined>;
|
|
627
|
+
readonly publishTracks: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.LooseObjectSchema<{
|
|
628
|
+
readonly namespace: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, Tuple>]>, undefined>;
|
|
629
|
+
readonly name: v.StringSchema<undefined>;
|
|
630
|
+
readonly packaging: v.StringSchema<undefined>;
|
|
631
|
+
readonly packagingMetadata: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, Record<string, string>>]>, undefined>;
|
|
632
|
+
readonly eventType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
633
|
+
readonly role: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
634
|
+
readonly isLive: v.BooleanSchema<undefined>;
|
|
635
|
+
readonly targetLatency: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
636
|
+
readonly buffers: v.OptionalSchema<v.LooseObjectSchema<{
|
|
637
|
+
readonly target: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
638
|
+
readonly min: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
639
|
+
readonly max: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
640
|
+
}, undefined>, undefined>;
|
|
641
|
+
readonly label: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
642
|
+
readonly renderGroup: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
643
|
+
readonly altGroup: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
644
|
+
readonly initRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
645
|
+
readonly depends: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>, undefined>;
|
|
646
|
+
readonly template: v.OptionalSchema<v.SchemaWithPipe<readonly [v.TupleSchema<[v.NumberSchema<undefined>, v.NumberSchema<undefined>, v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, v.TupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, v.NumberSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<[number, number, [number, number], [number, number], number, number], {
|
|
647
|
+
startMediaTime: number;
|
|
648
|
+
deltaMediaTime: number;
|
|
649
|
+
startLocation: [number, number];
|
|
650
|
+
deltaLocation: [number, number];
|
|
651
|
+
startWallclock: number;
|
|
652
|
+
deltaWallclock: number;
|
|
653
|
+
}>]>, undefined>;
|
|
654
|
+
readonly temporalId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
655
|
+
readonly spatialId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
656
|
+
readonly codec: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
657
|
+
readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
658
|
+
readonly framerate: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
659
|
+
readonly timescale: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
660
|
+
readonly bitrate: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
661
|
+
readonly avgBitrate: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
662
|
+
readonly maxGopDuration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
663
|
+
readonly maxGroupDuration: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
664
|
+
readonly width: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
665
|
+
readonly height: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
666
|
+
readonly samplerate: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
667
|
+
readonly channelConfig: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
668
|
+
readonly displayWidth: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
669
|
+
readonly displayHeight: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
670
|
+
readonly lang: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
671
|
+
readonly parentName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
672
|
+
readonly parentNamespace: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
673
|
+
readonly trackDuration: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
674
|
+
readonly connectionUri: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
675
|
+
readonly token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
676
|
+
readonly authInfo: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
677
|
+
readonly accessibility: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
|
|
678
|
+
readonly scheme: v.StringSchema<undefined>;
|
|
679
|
+
readonly value: v.StringSchema<undefined>;
|
|
680
|
+
}, undefined>, undefined>, undefined>;
|
|
681
|
+
readonly accessibleWindowTime: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
682
|
+
readonly keyframeSpacing: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
683
|
+
readonly maxGrpSapStartingType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
684
|
+
readonly maxObjSapStartingType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
685
|
+
}, undefined>, v.CheckAction<{
|
|
686
|
+
namespace?: Tuple | undefined;
|
|
687
|
+
name: string;
|
|
688
|
+
packaging: string;
|
|
689
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
690
|
+
eventType?: string | undefined;
|
|
691
|
+
role?: string | undefined;
|
|
692
|
+
isLive: boolean;
|
|
693
|
+
targetLatency?: number | undefined;
|
|
694
|
+
buffers?: ({
|
|
695
|
+
target?: number | undefined;
|
|
696
|
+
min?: number | undefined;
|
|
697
|
+
max?: number | undefined;
|
|
698
|
+
} & {
|
|
699
|
+
[key: string]: unknown;
|
|
700
|
+
}) | undefined;
|
|
701
|
+
label?: string | undefined;
|
|
702
|
+
renderGroup?: number | undefined;
|
|
703
|
+
altGroup?: number | undefined;
|
|
704
|
+
initRef?: string | undefined;
|
|
705
|
+
depends?: (string | number)[] | undefined;
|
|
706
|
+
template?: {
|
|
707
|
+
startMediaTime: number;
|
|
708
|
+
deltaMediaTime: number;
|
|
709
|
+
startLocation: [number, number];
|
|
710
|
+
deltaLocation: [number, number];
|
|
711
|
+
startWallclock: number;
|
|
712
|
+
deltaWallclock: number;
|
|
713
|
+
} | undefined;
|
|
714
|
+
temporalId?: number | undefined;
|
|
715
|
+
spatialId?: number | undefined;
|
|
716
|
+
codec?: string | undefined;
|
|
717
|
+
mimeType?: string | undefined;
|
|
718
|
+
framerate?: number | undefined;
|
|
719
|
+
timescale?: number | undefined;
|
|
720
|
+
bitrate?: number | undefined;
|
|
721
|
+
avgBitrate?: number | undefined;
|
|
722
|
+
maxGopDuration?: number | undefined;
|
|
723
|
+
maxGroupDuration?: number | undefined;
|
|
724
|
+
width?: number | undefined;
|
|
725
|
+
height?: number | undefined;
|
|
726
|
+
samplerate?: number | undefined;
|
|
727
|
+
channelConfig?: string | undefined;
|
|
728
|
+
displayWidth?: number | undefined;
|
|
729
|
+
displayHeight?: number | undefined;
|
|
730
|
+
lang?: string | undefined;
|
|
731
|
+
parentName?: string | undefined;
|
|
732
|
+
parentNamespace?: string | undefined;
|
|
733
|
+
trackDuration?: number | undefined;
|
|
734
|
+
connectionUri?: string | undefined;
|
|
735
|
+
token?: string | undefined;
|
|
736
|
+
authInfo?: {
|
|
737
|
+
[x: string]: unknown;
|
|
738
|
+
} | undefined;
|
|
739
|
+
accessibility?: ({
|
|
740
|
+
scheme: string;
|
|
741
|
+
value: string;
|
|
742
|
+
} & {
|
|
743
|
+
[key: string]: unknown;
|
|
744
|
+
})[] | undefined;
|
|
745
|
+
accessibleWindowTime?: number | undefined;
|
|
746
|
+
keyframeSpacing?: number | undefined;
|
|
747
|
+
maxGrpSapStartingType?: number | undefined;
|
|
748
|
+
maxObjSapStartingType?: number | undefined;
|
|
749
|
+
} & {
|
|
750
|
+
[key: string]: unknown;
|
|
751
|
+
}, (issue: v.CheckIssue<{
|
|
752
|
+
namespace?: Tuple | undefined;
|
|
753
|
+
name: string;
|
|
754
|
+
packaging: string;
|
|
755
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
756
|
+
eventType?: string | undefined;
|
|
757
|
+
role?: string | undefined;
|
|
758
|
+
isLive: boolean;
|
|
759
|
+
targetLatency?: number | undefined;
|
|
760
|
+
buffers?: ({
|
|
761
|
+
target?: number | undefined;
|
|
762
|
+
min?: number | undefined;
|
|
763
|
+
max?: number | undefined;
|
|
764
|
+
} & {
|
|
765
|
+
[key: string]: unknown;
|
|
766
|
+
}) | undefined;
|
|
767
|
+
label?: string | undefined;
|
|
768
|
+
renderGroup?: number | undefined;
|
|
769
|
+
altGroup?: number | undefined;
|
|
770
|
+
initRef?: string | undefined;
|
|
771
|
+
depends?: (string | number)[] | undefined;
|
|
772
|
+
template?: {
|
|
773
|
+
startMediaTime: number;
|
|
774
|
+
deltaMediaTime: number;
|
|
775
|
+
startLocation: [number, number];
|
|
776
|
+
deltaLocation: [number, number];
|
|
777
|
+
startWallclock: number;
|
|
778
|
+
deltaWallclock: number;
|
|
779
|
+
} | undefined;
|
|
780
|
+
temporalId?: number | undefined;
|
|
781
|
+
spatialId?: number | undefined;
|
|
782
|
+
codec?: string | undefined;
|
|
783
|
+
mimeType?: string | undefined;
|
|
784
|
+
framerate?: number | undefined;
|
|
785
|
+
timescale?: number | undefined;
|
|
786
|
+
bitrate?: number | undefined;
|
|
787
|
+
avgBitrate?: number | undefined;
|
|
788
|
+
maxGopDuration?: number | undefined;
|
|
789
|
+
maxGroupDuration?: number | undefined;
|
|
790
|
+
width?: number | undefined;
|
|
791
|
+
height?: number | undefined;
|
|
792
|
+
samplerate?: number | undefined;
|
|
793
|
+
channelConfig?: string | undefined;
|
|
794
|
+
displayWidth?: number | undefined;
|
|
795
|
+
displayHeight?: number | undefined;
|
|
796
|
+
lang?: string | undefined;
|
|
797
|
+
parentName?: string | undefined;
|
|
798
|
+
parentNamespace?: string | undefined;
|
|
799
|
+
trackDuration?: number | undefined;
|
|
800
|
+
connectionUri?: string | undefined;
|
|
801
|
+
token?: string | undefined;
|
|
802
|
+
authInfo?: {
|
|
803
|
+
[x: string]: unknown;
|
|
804
|
+
} | undefined;
|
|
805
|
+
accessibility?: ({
|
|
806
|
+
scheme: string;
|
|
807
|
+
value: string;
|
|
808
|
+
} & {
|
|
809
|
+
[key: string]: unknown;
|
|
810
|
+
})[] | undefined;
|
|
811
|
+
accessibleWindowTime?: number | undefined;
|
|
812
|
+
keyframeSpacing?: number | undefined;
|
|
813
|
+
maxGrpSapStartingType?: number | undefined;
|
|
814
|
+
maxObjSapStartingType?: number | undefined;
|
|
815
|
+
} & {
|
|
816
|
+
[key: string]: unknown;
|
|
817
|
+
}>) => string>, v.CheckAction<{
|
|
818
|
+
namespace?: Tuple | undefined;
|
|
819
|
+
name: string;
|
|
820
|
+
packaging: string;
|
|
821
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
822
|
+
eventType?: string | undefined;
|
|
823
|
+
role?: string | undefined;
|
|
824
|
+
isLive: boolean;
|
|
825
|
+
targetLatency?: number | undefined;
|
|
826
|
+
buffers?: ({
|
|
827
|
+
target?: number | undefined;
|
|
828
|
+
min?: number | undefined;
|
|
829
|
+
max?: number | undefined;
|
|
830
|
+
} & {
|
|
831
|
+
[key: string]: unknown;
|
|
832
|
+
}) | undefined;
|
|
833
|
+
label?: string | undefined;
|
|
834
|
+
renderGroup?: number | undefined;
|
|
835
|
+
altGroup?: number | undefined;
|
|
836
|
+
initRef?: string | undefined;
|
|
837
|
+
depends?: (string | number)[] | undefined;
|
|
838
|
+
template?: {
|
|
839
|
+
startMediaTime: number;
|
|
840
|
+
deltaMediaTime: number;
|
|
841
|
+
startLocation: [number, number];
|
|
842
|
+
deltaLocation: [number, number];
|
|
843
|
+
startWallclock: number;
|
|
844
|
+
deltaWallclock: number;
|
|
845
|
+
} | undefined;
|
|
846
|
+
temporalId?: number | undefined;
|
|
847
|
+
spatialId?: number | undefined;
|
|
848
|
+
codec?: string | undefined;
|
|
849
|
+
mimeType?: string | undefined;
|
|
850
|
+
framerate?: number | undefined;
|
|
851
|
+
timescale?: number | undefined;
|
|
852
|
+
bitrate?: number | undefined;
|
|
853
|
+
avgBitrate?: number | undefined;
|
|
854
|
+
maxGopDuration?: number | undefined;
|
|
855
|
+
maxGroupDuration?: number | undefined;
|
|
856
|
+
width?: number | undefined;
|
|
857
|
+
height?: number | undefined;
|
|
858
|
+
samplerate?: number | undefined;
|
|
859
|
+
channelConfig?: string | undefined;
|
|
860
|
+
displayWidth?: number | undefined;
|
|
861
|
+
displayHeight?: number | undefined;
|
|
862
|
+
lang?: string | undefined;
|
|
863
|
+
parentName?: string | undefined;
|
|
864
|
+
parentNamespace?: string | undefined;
|
|
865
|
+
trackDuration?: number | undefined;
|
|
866
|
+
connectionUri?: string | undefined;
|
|
867
|
+
token?: string | undefined;
|
|
868
|
+
authInfo?: {
|
|
869
|
+
[x: string]: unknown;
|
|
870
|
+
} | undefined;
|
|
871
|
+
accessibility?: ({
|
|
872
|
+
scheme: string;
|
|
873
|
+
value: string;
|
|
874
|
+
} & {
|
|
875
|
+
[key: string]: unknown;
|
|
876
|
+
})[] | undefined;
|
|
877
|
+
accessibleWindowTime?: number | undefined;
|
|
878
|
+
keyframeSpacing?: number | undefined;
|
|
879
|
+
maxGrpSapStartingType?: number | undefined;
|
|
880
|
+
maxObjSapStartingType?: number | undefined;
|
|
881
|
+
} & {
|
|
882
|
+
[key: string]: unknown;
|
|
883
|
+
}, "eventType goes with, and only with, eventtimeline packaging (MSF 5.2.6)">, v.CheckAction<{
|
|
884
|
+
namespace?: Tuple | undefined;
|
|
885
|
+
name: string;
|
|
886
|
+
packaging: string;
|
|
887
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
888
|
+
eventType?: string | undefined;
|
|
889
|
+
role?: string | undefined;
|
|
890
|
+
isLive: boolean;
|
|
891
|
+
targetLatency?: number | undefined;
|
|
892
|
+
buffers?: ({
|
|
893
|
+
target?: number | undefined;
|
|
894
|
+
min?: number | undefined;
|
|
895
|
+
max?: number | undefined;
|
|
896
|
+
} & {
|
|
897
|
+
[key: string]: unknown;
|
|
898
|
+
}) | undefined;
|
|
899
|
+
label?: string | undefined;
|
|
900
|
+
renderGroup?: number | undefined;
|
|
901
|
+
altGroup?: number | undefined;
|
|
902
|
+
initRef?: string | undefined;
|
|
903
|
+
depends?: (string | number)[] | undefined;
|
|
904
|
+
template?: {
|
|
905
|
+
startMediaTime: number;
|
|
906
|
+
deltaMediaTime: number;
|
|
907
|
+
startLocation: [number, number];
|
|
908
|
+
deltaLocation: [number, number];
|
|
909
|
+
startWallclock: number;
|
|
910
|
+
deltaWallclock: number;
|
|
911
|
+
} | undefined;
|
|
912
|
+
temporalId?: number | undefined;
|
|
913
|
+
spatialId?: number | undefined;
|
|
914
|
+
codec?: string | undefined;
|
|
915
|
+
mimeType?: string | undefined;
|
|
916
|
+
framerate?: number | undefined;
|
|
917
|
+
timescale?: number | undefined;
|
|
918
|
+
bitrate?: number | undefined;
|
|
919
|
+
avgBitrate?: number | undefined;
|
|
920
|
+
maxGopDuration?: number | undefined;
|
|
921
|
+
maxGroupDuration?: number | undefined;
|
|
922
|
+
width?: number | undefined;
|
|
923
|
+
height?: number | undefined;
|
|
924
|
+
samplerate?: number | undefined;
|
|
925
|
+
channelConfig?: string | undefined;
|
|
926
|
+
displayWidth?: number | undefined;
|
|
927
|
+
displayHeight?: number | undefined;
|
|
928
|
+
lang?: string | undefined;
|
|
929
|
+
parentName?: string | undefined;
|
|
930
|
+
parentNamespace?: string | undefined;
|
|
931
|
+
trackDuration?: number | undefined;
|
|
932
|
+
connectionUri?: string | undefined;
|
|
933
|
+
token?: string | undefined;
|
|
934
|
+
authInfo?: {
|
|
935
|
+
[x: string]: unknown;
|
|
936
|
+
} | undefined;
|
|
937
|
+
accessibility?: ({
|
|
938
|
+
scheme: string;
|
|
939
|
+
value: string;
|
|
940
|
+
} & {
|
|
941
|
+
[key: string]: unknown;
|
|
942
|
+
})[] | undefined;
|
|
943
|
+
accessibleWindowTime?: number | undefined;
|
|
944
|
+
keyframeSpacing?: number | undefined;
|
|
945
|
+
maxGrpSapStartingType?: number | undefined;
|
|
946
|
+
maxObjSapStartingType?: number | undefined;
|
|
947
|
+
} & {
|
|
948
|
+
[key: string]: unknown;
|
|
949
|
+
}, "targetLatency and buffers are mutually exclusive (MSF 5.2.9)">, v.CheckAction<{
|
|
950
|
+
namespace?: Tuple | undefined;
|
|
951
|
+
name: string;
|
|
952
|
+
packaging: string;
|
|
953
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
954
|
+
eventType?: string | undefined;
|
|
955
|
+
role?: string | undefined;
|
|
956
|
+
isLive: boolean;
|
|
957
|
+
targetLatency?: number | undefined;
|
|
958
|
+
buffers?: ({
|
|
959
|
+
target?: number | undefined;
|
|
960
|
+
min?: number | undefined;
|
|
961
|
+
max?: number | undefined;
|
|
962
|
+
} & {
|
|
963
|
+
[key: string]: unknown;
|
|
964
|
+
}) | undefined;
|
|
965
|
+
label?: string | undefined;
|
|
966
|
+
renderGroup?: number | undefined;
|
|
967
|
+
altGroup?: number | undefined;
|
|
968
|
+
initRef?: string | undefined;
|
|
969
|
+
depends?: (string | number)[] | undefined;
|
|
970
|
+
template?: {
|
|
971
|
+
startMediaTime: number;
|
|
972
|
+
deltaMediaTime: number;
|
|
973
|
+
startLocation: [number, number];
|
|
974
|
+
deltaLocation: [number, number];
|
|
975
|
+
startWallclock: number;
|
|
976
|
+
deltaWallclock: number;
|
|
977
|
+
} | undefined;
|
|
978
|
+
temporalId?: number | undefined;
|
|
979
|
+
spatialId?: number | undefined;
|
|
980
|
+
codec?: string | undefined;
|
|
981
|
+
mimeType?: string | undefined;
|
|
982
|
+
framerate?: number | undefined;
|
|
983
|
+
timescale?: number | undefined;
|
|
984
|
+
bitrate?: number | undefined;
|
|
985
|
+
avgBitrate?: number | undefined;
|
|
986
|
+
maxGopDuration?: number | undefined;
|
|
987
|
+
maxGroupDuration?: number | undefined;
|
|
988
|
+
width?: number | undefined;
|
|
989
|
+
height?: number | undefined;
|
|
990
|
+
samplerate?: number | undefined;
|
|
991
|
+
channelConfig?: string | undefined;
|
|
992
|
+
displayWidth?: number | undefined;
|
|
993
|
+
displayHeight?: number | undefined;
|
|
994
|
+
lang?: string | undefined;
|
|
995
|
+
parentName?: string | undefined;
|
|
996
|
+
parentNamespace?: string | undefined;
|
|
997
|
+
trackDuration?: number | undefined;
|
|
998
|
+
connectionUri?: string | undefined;
|
|
999
|
+
token?: string | undefined;
|
|
1000
|
+
authInfo?: {
|
|
1001
|
+
[x: string]: unknown;
|
|
1002
|
+
} | undefined;
|
|
1003
|
+
accessibility?: ({
|
|
1004
|
+
scheme: string;
|
|
1005
|
+
value: string;
|
|
1006
|
+
} & {
|
|
1007
|
+
[key: string]: unknown;
|
|
1008
|
+
})[] | undefined;
|
|
1009
|
+
accessibleWindowTime?: number | undefined;
|
|
1010
|
+
keyframeSpacing?: number | undefined;
|
|
1011
|
+
maxGrpSapStartingType?: number | undefined;
|
|
1012
|
+
maxObjSapStartingType?: number | undefined;
|
|
1013
|
+
} & {
|
|
1014
|
+
[key: string]: unknown;
|
|
1015
|
+
}, "a live track has no trackDuration (MSF 5.2.36)">, v.TransformAction<{
|
|
1016
|
+
namespace?: Tuple | undefined;
|
|
1017
|
+
name: string;
|
|
1018
|
+
packaging: string;
|
|
1019
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
1020
|
+
eventType?: string | undefined;
|
|
1021
|
+
role?: string | undefined;
|
|
1022
|
+
isLive: boolean;
|
|
1023
|
+
targetLatency?: number | undefined;
|
|
1024
|
+
buffers?: ({
|
|
1025
|
+
target?: number | undefined;
|
|
1026
|
+
min?: number | undefined;
|
|
1027
|
+
max?: number | undefined;
|
|
1028
|
+
} & {
|
|
1029
|
+
[key: string]: unknown;
|
|
1030
|
+
}) | undefined;
|
|
1031
|
+
label?: string | undefined;
|
|
1032
|
+
renderGroup?: number | undefined;
|
|
1033
|
+
altGroup?: number | undefined;
|
|
1034
|
+
initRef?: string | undefined;
|
|
1035
|
+
depends?: (string | number)[] | undefined;
|
|
1036
|
+
template?: {
|
|
1037
|
+
startMediaTime: number;
|
|
1038
|
+
deltaMediaTime: number;
|
|
1039
|
+
startLocation: [number, number];
|
|
1040
|
+
deltaLocation: [number, number];
|
|
1041
|
+
startWallclock: number;
|
|
1042
|
+
deltaWallclock: number;
|
|
1043
|
+
} | undefined;
|
|
1044
|
+
temporalId?: number | undefined;
|
|
1045
|
+
spatialId?: number | undefined;
|
|
1046
|
+
codec?: string | undefined;
|
|
1047
|
+
mimeType?: string | undefined;
|
|
1048
|
+
framerate?: number | undefined;
|
|
1049
|
+
timescale?: number | undefined;
|
|
1050
|
+
bitrate?: number | undefined;
|
|
1051
|
+
avgBitrate?: number | undefined;
|
|
1052
|
+
maxGopDuration?: number | undefined;
|
|
1053
|
+
maxGroupDuration?: number | undefined;
|
|
1054
|
+
width?: number | undefined;
|
|
1055
|
+
height?: number | undefined;
|
|
1056
|
+
samplerate?: number | undefined;
|
|
1057
|
+
channelConfig?: string | undefined;
|
|
1058
|
+
displayWidth?: number | undefined;
|
|
1059
|
+
displayHeight?: number | undefined;
|
|
1060
|
+
lang?: string | undefined;
|
|
1061
|
+
parentName?: string | undefined;
|
|
1062
|
+
parentNamespace?: string | undefined;
|
|
1063
|
+
trackDuration?: number | undefined;
|
|
1064
|
+
connectionUri?: string | undefined;
|
|
1065
|
+
token?: string | undefined;
|
|
1066
|
+
authInfo?: {
|
|
1067
|
+
[x: string]: unknown;
|
|
1068
|
+
} | undefined;
|
|
1069
|
+
accessibility?: ({
|
|
1070
|
+
scheme: string;
|
|
1071
|
+
value: string;
|
|
1072
|
+
} & {
|
|
1073
|
+
[key: string]: unknown;
|
|
1074
|
+
})[] | undefined;
|
|
1075
|
+
accessibleWindowTime?: number | undefined;
|
|
1076
|
+
keyframeSpacing?: number | undefined;
|
|
1077
|
+
maxGrpSapStartingType?: number | undefined;
|
|
1078
|
+
maxObjSapStartingType?: number | undefined;
|
|
1079
|
+
} & {
|
|
1080
|
+
[key: string]: unknown;
|
|
1081
|
+
}, {
|
|
1082
|
+
namespace?: Tuple | undefined;
|
|
1083
|
+
name: string;
|
|
1084
|
+
packaging: string;
|
|
1085
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
1086
|
+
eventType?: string | undefined;
|
|
1087
|
+
role?: string | undefined;
|
|
1088
|
+
isLive: boolean;
|
|
1089
|
+
targetLatency?: number | undefined;
|
|
1090
|
+
buffers?: ({
|
|
1091
|
+
target?: number | undefined;
|
|
1092
|
+
min?: number | undefined;
|
|
1093
|
+
max?: number | undefined;
|
|
1094
|
+
} & {
|
|
1095
|
+
[key: string]: unknown;
|
|
1096
|
+
}) | undefined;
|
|
1097
|
+
label?: string | undefined;
|
|
1098
|
+
renderGroup?: number | undefined;
|
|
1099
|
+
altGroup?: number | undefined;
|
|
1100
|
+
initRef?: string | undefined;
|
|
1101
|
+
depends?: (string | number)[] | undefined;
|
|
1102
|
+
template?: {
|
|
1103
|
+
startMediaTime: number;
|
|
1104
|
+
deltaMediaTime: number;
|
|
1105
|
+
startLocation: [number, number];
|
|
1106
|
+
deltaLocation: [number, number];
|
|
1107
|
+
startWallclock: number;
|
|
1108
|
+
deltaWallclock: number;
|
|
1109
|
+
} | undefined;
|
|
1110
|
+
temporalId?: number | undefined;
|
|
1111
|
+
spatialId?: number | undefined;
|
|
1112
|
+
codec?: string | undefined;
|
|
1113
|
+
mimeType?: string | undefined;
|
|
1114
|
+
framerate?: number | undefined;
|
|
1115
|
+
timescale?: number | undefined;
|
|
1116
|
+
bitrate?: number | undefined;
|
|
1117
|
+
avgBitrate?: number | undefined;
|
|
1118
|
+
maxGopDuration?: number | undefined;
|
|
1119
|
+
maxGroupDuration?: number | undefined;
|
|
1120
|
+
width?: number | undefined;
|
|
1121
|
+
height?: number | undefined;
|
|
1122
|
+
samplerate?: number | undefined;
|
|
1123
|
+
channelConfig?: string | undefined;
|
|
1124
|
+
displayWidth?: number | undefined;
|
|
1125
|
+
displayHeight?: number | undefined;
|
|
1126
|
+
lang?: string | undefined;
|
|
1127
|
+
parentName?: string | undefined;
|
|
1128
|
+
parentNamespace?: string | undefined;
|
|
1129
|
+
trackDuration?: number | undefined;
|
|
1130
|
+
connectionUri?: string | undefined;
|
|
1131
|
+
token?: string | undefined;
|
|
1132
|
+
authInfo?: {
|
|
1133
|
+
[x: string]: unknown;
|
|
1134
|
+
} | undefined;
|
|
1135
|
+
accessibility?: ({
|
|
1136
|
+
scheme: string;
|
|
1137
|
+
value: string;
|
|
1138
|
+
} & {
|
|
1139
|
+
[key: string]: unknown;
|
|
1140
|
+
})[] | undefined;
|
|
1141
|
+
accessibleWindowTime?: number | undefined;
|
|
1142
|
+
keyframeSpacing?: number | undefined;
|
|
1143
|
+
maxGrpSapStartingType?: number | undefined;
|
|
1144
|
+
maxObjSapStartingType?: number | undefined;
|
|
1145
|
+
} & {
|
|
1146
|
+
[key: string]: unknown;
|
|
1147
|
+
} & {
|
|
1148
|
+
nameBytes: Uint8Array;
|
|
1149
|
+
namespace: Tuple;
|
|
1150
|
+
init?: InitData;
|
|
1151
|
+
}>]>, undefined>, undefined>;
|
|
1152
|
+
readonly initDataList: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1153
|
+
readonly id: v.StringSchema<undefined>;
|
|
1154
|
+
readonly type: v.PicklistSchema<["inline", "track-property", "object-property"], undefined>;
|
|
1155
|
+
readonly data: v.StringSchema<undefined>;
|
|
1156
|
+
}, undefined>, v.CheckAction<{
|
|
1157
|
+
id: string;
|
|
1158
|
+
type: "inline" | "track-property" | "object-property";
|
|
1159
|
+
data: string;
|
|
1160
|
+
}, "initDataList data must be base64, or a property type in hex (MSF 5.1.7)">, v.TransformAction<{
|
|
1161
|
+
id: string;
|
|
1162
|
+
type: "inline" | "track-property" | "object-property";
|
|
1163
|
+
data: string;
|
|
1164
|
+
}, {
|
|
1165
|
+
id: string;
|
|
1166
|
+
init: InitData;
|
|
1167
|
+
}>]>, undefined>, undefined>;
|
|
1168
|
+
}, undefined>, v.CheckAction<{
|
|
1169
|
+
version: "draft-01" | "draft-02";
|
|
1170
|
+
generatedAt?: number | undefined;
|
|
1171
|
+
isComplete?: true | undefined;
|
|
1172
|
+
tracks: ({
|
|
1173
|
+
namespace?: Tuple | undefined;
|
|
1174
|
+
name: string;
|
|
1175
|
+
packaging: string;
|
|
1176
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
1177
|
+
eventType?: string | undefined;
|
|
1178
|
+
role?: string | undefined;
|
|
1179
|
+
isLive: boolean;
|
|
1180
|
+
targetLatency?: number | undefined;
|
|
1181
|
+
buffers?: ({
|
|
1182
|
+
target?: number | undefined;
|
|
1183
|
+
min?: number | undefined;
|
|
1184
|
+
max?: number | undefined;
|
|
1185
|
+
} & {
|
|
1186
|
+
[key: string]: unknown;
|
|
1187
|
+
}) | undefined;
|
|
1188
|
+
label?: string | undefined;
|
|
1189
|
+
renderGroup?: number | undefined;
|
|
1190
|
+
altGroup?: number | undefined;
|
|
1191
|
+
initRef?: string | undefined;
|
|
1192
|
+
depends?: (string | number)[] | undefined;
|
|
1193
|
+
template?: {
|
|
1194
|
+
startMediaTime: number;
|
|
1195
|
+
deltaMediaTime: number;
|
|
1196
|
+
startLocation: [number, number];
|
|
1197
|
+
deltaLocation: [number, number];
|
|
1198
|
+
startWallclock: number;
|
|
1199
|
+
deltaWallclock: number;
|
|
1200
|
+
} | undefined;
|
|
1201
|
+
temporalId?: number | undefined;
|
|
1202
|
+
spatialId?: number | undefined;
|
|
1203
|
+
codec?: string | undefined;
|
|
1204
|
+
mimeType?: string | undefined;
|
|
1205
|
+
framerate?: number | undefined;
|
|
1206
|
+
timescale?: number | undefined;
|
|
1207
|
+
bitrate?: number | undefined;
|
|
1208
|
+
avgBitrate?: number | undefined;
|
|
1209
|
+
maxGopDuration?: number | undefined;
|
|
1210
|
+
maxGroupDuration?: number | undefined;
|
|
1211
|
+
width?: number | undefined;
|
|
1212
|
+
height?: number | undefined;
|
|
1213
|
+
samplerate?: number | undefined;
|
|
1214
|
+
channelConfig?: string | undefined;
|
|
1215
|
+
displayWidth?: number | undefined;
|
|
1216
|
+
displayHeight?: number | undefined;
|
|
1217
|
+
lang?: string | undefined;
|
|
1218
|
+
parentName?: string | undefined;
|
|
1219
|
+
parentNamespace?: string | undefined;
|
|
1220
|
+
trackDuration?: number | undefined;
|
|
1221
|
+
connectionUri?: string | undefined;
|
|
1222
|
+
token?: string | undefined;
|
|
1223
|
+
authInfo?: {
|
|
1224
|
+
[x: string]: unknown;
|
|
1225
|
+
} | undefined;
|
|
1226
|
+
accessibility?: ({
|
|
1227
|
+
scheme: string;
|
|
1228
|
+
value: string;
|
|
1229
|
+
} & {
|
|
1230
|
+
[key: string]: unknown;
|
|
1231
|
+
})[] | undefined;
|
|
1232
|
+
accessibleWindowTime?: number | undefined;
|
|
1233
|
+
keyframeSpacing?: number | undefined;
|
|
1234
|
+
maxGrpSapStartingType?: number | undefined;
|
|
1235
|
+
maxObjSapStartingType?: number | undefined;
|
|
1236
|
+
} & {
|
|
1237
|
+
[key: string]: unknown;
|
|
1238
|
+
} & {
|
|
1239
|
+
nameBytes: Uint8Array;
|
|
1240
|
+
namespace: Tuple;
|
|
1241
|
+
init?: InitData;
|
|
1242
|
+
})[];
|
|
1243
|
+
publishTracks?: ({
|
|
1244
|
+
namespace?: Tuple | undefined;
|
|
1245
|
+
name: string;
|
|
1246
|
+
packaging: string;
|
|
1247
|
+
packagingMetadata?: Record<string, string> | undefined;
|
|
1248
|
+
eventType?: string | undefined;
|
|
1249
|
+
role?: string | undefined;
|
|
1250
|
+
isLive: boolean;
|
|
1251
|
+
targetLatency?: number | undefined;
|
|
1252
|
+
buffers?: ({
|
|
1253
|
+
target?: number | undefined;
|
|
1254
|
+
min?: number | undefined;
|
|
1255
|
+
max?: number | undefined;
|
|
1256
|
+
} & {
|
|
1257
|
+
[key: string]: unknown;
|
|
1258
|
+
}) | undefined;
|
|
1259
|
+
label?: string | undefined;
|
|
1260
|
+
renderGroup?: number | undefined;
|
|
1261
|
+
altGroup?: number | undefined;
|
|
1262
|
+
initRef?: string | undefined;
|
|
1263
|
+
depends?: (string | number)[] | undefined;
|
|
1264
|
+
template?: {
|
|
1265
|
+
startMediaTime: number;
|
|
1266
|
+
deltaMediaTime: number;
|
|
1267
|
+
startLocation: [number, number];
|
|
1268
|
+
deltaLocation: [number, number];
|
|
1269
|
+
startWallclock: number;
|
|
1270
|
+
deltaWallclock: number;
|
|
1271
|
+
} | undefined;
|
|
1272
|
+
temporalId?: number | undefined;
|
|
1273
|
+
spatialId?: number | undefined;
|
|
1274
|
+
codec?: string | undefined;
|
|
1275
|
+
mimeType?: string | undefined;
|
|
1276
|
+
framerate?: number | undefined;
|
|
1277
|
+
timescale?: number | undefined;
|
|
1278
|
+
bitrate?: number | undefined;
|
|
1279
|
+
avgBitrate?: number | undefined;
|
|
1280
|
+
maxGopDuration?: number | undefined;
|
|
1281
|
+
maxGroupDuration?: number | undefined;
|
|
1282
|
+
width?: number | undefined;
|
|
1283
|
+
height?: number | undefined;
|
|
1284
|
+
samplerate?: number | undefined;
|
|
1285
|
+
channelConfig?: string | undefined;
|
|
1286
|
+
displayWidth?: number | undefined;
|
|
1287
|
+
displayHeight?: number | undefined;
|
|
1288
|
+
lang?: string | undefined;
|
|
1289
|
+
parentName?: string | undefined;
|
|
1290
|
+
parentNamespace?: string | undefined;
|
|
1291
|
+
trackDuration?: number | undefined;
|
|
1292
|
+
connectionUri?: string | undefined;
|
|
1293
|
+
token?: string | undefined;
|
|
1294
|
+
authInfo?: {
|
|
1295
|
+
[x: string]: unknown;
|
|
1296
|
+
} | undefined;
|
|
1297
|
+
accessibility?: ({
|
|
1298
|
+
scheme: string;
|
|
1299
|
+
value: string;
|
|
1300
|
+
} & {
|
|
1301
|
+
[key: string]: unknown;
|
|
1302
|
+
})[] | undefined;
|
|
1303
|
+
accessibleWindowTime?: number | undefined;
|
|
1304
|
+
keyframeSpacing?: number | undefined;
|
|
1305
|
+
maxGrpSapStartingType?: number | undefined;
|
|
1306
|
+
maxObjSapStartingType?: number | undefined;
|
|
1307
|
+
} & {
|
|
1308
|
+
[key: string]: unknown;
|
|
1309
|
+
} & {
|
|
1310
|
+
nameBytes: Uint8Array;
|
|
1311
|
+
namespace: Tuple;
|
|
1312
|
+
init?: InitData;
|
|
1313
|
+
})[] | undefined;
|
|
1314
|
+
initDataList?: {
|
|
1315
|
+
id: string;
|
|
1316
|
+
init: InitData;
|
|
1317
|
+
}[] | undefined;
|
|
1318
|
+
} & {
|
|
1319
|
+
[key: string]: unknown;
|
|
1320
|
+
}, "an initRef names no initDataList entry (MSF 5.2.14)">]>;
|
|
1321
|
+
type CatalogSchema = ReturnType<typeof catalogSchema>;
|
|
1322
|
+
/** @public A catalog as a publisher writes it (MSF 5.1). */
|
|
1323
|
+
type CatalogJson = v.InferInput<CatalogSchema>;
|
|
1324
|
+
/** @public A parsed, validated catalog. */
|
|
1325
|
+
type Catalog = v.InferOutput<CatalogSchema> & {
|
|
1326
|
+
/** The document after variable substitution, which delta updates apply to (MSF 5.3). */
|
|
1327
|
+
json: CatalogDocument;
|
|
1328
|
+
};
|
|
1329
|
+
/**
|
|
1330
|
+
* @public
|
|
1331
|
+
* A parsed catalog track. Field names follow MSF 5.2 and CMSF 3.5.2, unknown fields are kept.
|
|
1332
|
+
* `nameBytes` and `namespace` are the MOQT bytes (MSF 11.2), the namespace inherited from the
|
|
1333
|
+
* catalog track when the track has none, and `init` is resolved from `initRef`.
|
|
1334
|
+
*/
|
|
1335
|
+
type CatalogTrack = Catalog['tracks'][number];
|
|
1336
|
+
/** @public The media timeline template of MSF 7.4.1, with named fields. */
|
|
1337
|
+
type MediaTimelineTemplate = NonNullable<CatalogTrack['template']>;
|
|
1338
|
+
/** A valid catalog document, as JSON. */
|
|
1339
|
+
interface CatalogDocument {
|
|
1340
|
+
tracks: Record<string, unknown>[];
|
|
1341
|
+
[field: string]: unknown;
|
|
1342
|
+
}
|
|
1343
|
+
/** @public Key of {@link MediaSinkElement}. */
|
|
1344
|
+
declare const MEDIA_SINK: unique symbol;
|
|
1345
|
+
/** @public Key of {@link MediaSourceElement}. */
|
|
1346
|
+
declare const MEDIA_SOURCE: unique symbol;
|
|
1347
|
+
/** @public Marks a {@link MediaSourceElement} that switches among its selected renditions itself (ABR). */
|
|
1348
|
+
declare const ABR: unique symbol;
|
|
1349
|
+
/** @public Maps each interface key to its interface. New interfaces add a line here. */
|
|
1350
|
+
interface ElementInterfaces {
|
|
1351
|
+
[MEDIA_SINK]: MediaSinkElement;
|
|
1352
|
+
[MEDIA_SOURCE]: MediaSourceElement;
|
|
1353
|
+
[ABR]: MediaSourceElement;
|
|
1354
|
+
}
|
|
1355
|
+
/** @public */
|
|
1356
|
+
type InterfaceKey = keyof ElementInterfaces;
|
|
1357
|
+
/**
|
|
1358
|
+
* @public
|
|
1359
|
+
* Implemented by sinks that drive a display backend. Times are in seconds.
|
|
1360
|
+
* Dispatches `playing`, `pause`, `stalled`, `waiting`, `ended`, and `timeupdate`.
|
|
1361
|
+
*/
|
|
1362
|
+
interface MediaSinkElement extends EventTarget {
|
|
1363
|
+
readonly currentTime: number;
|
|
1364
|
+
readonly buffered: TimeRanges;
|
|
1365
|
+
readonly paused: boolean;
|
|
1366
|
+
readonly seeking: boolean;
|
|
1367
|
+
readonly ended: boolean;
|
|
1368
|
+
readonly playbackRate: number;
|
|
1369
|
+
/** Where the live edge starts (media-ui-extensions proposal 0007); `NaN` on demand. */
|
|
1370
|
+
readonly liveEdgeStart: number;
|
|
1371
|
+
/** Live with an accessible window (MSF 5.2.46): the seconds it covers. Undefined without DVR. */
|
|
1372
|
+
readonly dvrRange: {
|
|
1373
|
+
start: number;
|
|
1374
|
+
end: number;
|
|
1375
|
+
} | undefined;
|
|
1376
|
+
setPlaybackRate(rate: number): void;
|
|
1377
|
+
play(): Promise<void>;
|
|
1378
|
+
pause(): Promise<void>;
|
|
1379
|
+
seek(mediaTime: number): Promise<void>;
|
|
1380
|
+
}
|
|
1381
|
+
/** @public Implemented by sources that deliver media and handle a switching set. */
|
|
1382
|
+
interface MediaSourceElement {
|
|
1383
|
+
getRenditions(): Rendition[];
|
|
1384
|
+
switch(renditionId: string): Promise<void>;
|
|
1385
|
+
/** Sets which renditions ABR may choose from. */
|
|
1386
|
+
selectRenditions(renditionIds: string[]): Promise<void>;
|
|
1387
|
+
/** Called by the catalog element when an update changes this source's switching set. */
|
|
1388
|
+
setTracks(tracks: readonly CatalogTrack[]): void;
|
|
1389
|
+
}
|
|
1390
|
+
/** @public One track of a media source's switching set. */
|
|
1391
|
+
interface Rendition {
|
|
1392
|
+
/** Track name, with the namespace when it differs from the catalog's. */
|
|
1393
|
+
id: string;
|
|
1394
|
+
src: string;
|
|
1395
|
+
bitrate: number;
|
|
1396
|
+
codec: string;
|
|
1397
|
+
width?: number;
|
|
1398
|
+
height?: number;
|
|
1399
|
+
frameRate?: number;
|
|
1400
|
+
/** Currently playing. */
|
|
1401
|
+
active: boolean;
|
|
1402
|
+
/** Considered for ABR. */
|
|
1403
|
+
selected: boolean;
|
|
1404
|
+
/** Track names of its fast switching GoP ladder, itself included: they all deliver this rendition. */
|
|
1405
|
+
ladder?: string[];
|
|
1406
|
+
}
|
|
1407
|
+
/** @public What the catalog element offers the elements it loads. Updates arrive with the player's `catalog` event. */
|
|
1408
|
+
interface CatalogReader {
|
|
1409
|
+
/** The catalog's session URL, `moqt://authority/path[?query]` without a fragment. */
|
|
1410
|
+
readonly url: string;
|
|
1411
|
+
/** The catalog track's namespace. */
|
|
1412
|
+
readonly namespace: Tuple;
|
|
1413
|
+
/** The last good catalog. */
|
|
1414
|
+
readonly tracks: readonly CatalogTrack[];
|
|
1415
|
+
readonly isComplete: boolean;
|
|
1416
|
+
/** Loads (shared) the media timeline element for the track, or wraps its template. Undefined if neither exists. */
|
|
1417
|
+
timeline(track: CatalogTrack): Promise<TimelineReader | undefined>;
|
|
1418
|
+
}
|
|
1419
|
+
/** @public Translates between media time, wallclock time, and locations. Times in milliseconds. */
|
|
1420
|
+
interface TimelineReader {
|
|
1421
|
+
/** The group containing that time. */
|
|
1422
|
+
timeToLocation(mediaTimeMs: number): Location | undefined;
|
|
1423
|
+
locationToTime(location: Location): number | undefined;
|
|
1424
|
+
wallclockToLocation(wallclockMs: number): Location | undefined;
|
|
1425
|
+
/** When that media time was produced (MSF 11.6). Undefined without wallclock values. */
|
|
1426
|
+
timeToWallclock(mediaTimeMs: number): number | undefined;
|
|
1427
|
+
/** Media time, after `accessibleWindowTime`. */
|
|
1428
|
+
readonly range: {
|
|
1429
|
+
start: number;
|
|
1430
|
+
end: number;
|
|
1431
|
+
} | undefined;
|
|
1432
|
+
}
|
|
1433
|
+
/**
|
|
1434
|
+
* @public
|
|
1435
|
+
* Load options every media source takes. The catalog element, and wrapping sources such as
|
|
1436
|
+
* the SSTS one, pass them to whichever source the probe picks.
|
|
1437
|
+
*/
|
|
1438
|
+
interface MediaSourceOptions {
|
|
1439
|
+
/** From the catalog source options: switch with `SWITCH_FROM`. */
|
|
1440
|
+
switchFrom?: boolean;
|
|
1441
|
+
/** From the catalog URL. */
|
|
1442
|
+
ranges?: Pick<MsfSource, 'locationRanges' | 'mediaTimeRanges' | 'wallclockRanges'>;
|
|
1443
|
+
/** How a parent adds to every SUBSCRIBE and FETCH the source sends. */
|
|
1444
|
+
requests?: RequestHooks;
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* @public
|
|
1448
|
+
* What an extension's switching set source is loaded with: the media source options, and the
|
|
1449
|
+
* definition the probe picked for the set's tracks.
|
|
1450
|
+
*/
|
|
1451
|
+
interface SwitchingSetOptions extends MediaSourceOptions {
|
|
1452
|
+
child: SourceElementDefinition;
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* @public
|
|
1456
|
+
* Called for every SUBSCRIBE and FETCH a media source sends: start, retry, reconnect,
|
|
1457
|
+
* seek, switch, ranges. How a parent such as an SSTS source adds to the requests. The
|
|
1458
|
+
* hooks run last, after the source built its own options, and `subscribed` and `fetched`
|
|
1459
|
+
* get the options that were actually sent. They aren't called for rejected requests.
|
|
1460
|
+
*/
|
|
1461
|
+
interface RequestHooks {
|
|
1462
|
+
subscribe?(track: CatalogTrack, options: SubscribeOptions): SubscribeOptions;
|
|
1463
|
+
subscribed?(track: CatalogTrack, result: SubscribeResult, options: SubscribeOptions): void;
|
|
1464
|
+
fetch?(track: CatalogTrack, options: FetchOptions): FetchOptions;
|
|
1465
|
+
fetched?(track: CatalogTrack, result: FetchResult, options: FetchOptions): void;
|
|
1466
|
+
}
|
|
1467
|
+
/** @public What a capability describes. */
|
|
1468
|
+
declare enum CapabilityCode {
|
|
1469
|
+
PACKAGING = 0,
|
|
1470
|
+
ROLE = 1,
|
|
1471
|
+
CODEC = 2,
|
|
1472
|
+
MIME_TYPE = 3,
|
|
1473
|
+
EVENT_TYPE = 4
|
|
1474
|
+
}
|
|
1475
|
+
/** @public `in` describes a sink pad, `out` a source pad. */
|
|
1476
|
+
interface Capability {
|
|
1477
|
+
direction: 'in' | 'out';
|
|
1478
|
+
code: CapabilityCode;
|
|
1479
|
+
value: string;
|
|
1480
|
+
}
|
|
1481
|
+
/** @public */
|
|
1482
|
+
type Capabilities = Capability[];
|
|
1483
|
+
/** @public Each bundle describes one pad the element can create. */
|
|
1484
|
+
type CapabilityBundles = Capabilities[];
|
|
1485
|
+
type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends ((x: infer I) => void) ? I : never;
|
|
1486
|
+
/** @public The intersection of every interface listed in `provides`. */
|
|
1487
|
+
type Provided<P extends readonly InterfaceKey[]> = [P[number]] extends [never] ? unknown : UnionToIntersection<ElementInterfaces[P[number]]>;
|
|
1488
|
+
/**
|
|
1489
|
+
* @public
|
|
1490
|
+
* What identifies a track: `MsfSource` fields from the URI, plus catalog fields (MSF 5.2)
|
|
1491
|
+
* once a catalog exists.
|
|
1492
|
+
*/
|
|
1493
|
+
type Identifiers = Partial<MsfSource> & Partial<CatalogTrack>;
|
|
1494
|
+
/** @public Among the probes that accept a track, the lowest priority wins. */
|
|
1495
|
+
declare const DEFAULT_PRIORITY = 100;
|
|
1496
|
+
/** @public What the registry stores. */
|
|
1497
|
+
interface ElementDefinition<E extends BaseElement = BaseElement, P extends readonly InterfaceKey[] = readonly InterfaceKey[]> {
|
|
1498
|
+
readonly type: 'source' | 'transform' | 'sink';
|
|
1499
|
+
readonly name: string;
|
|
1500
|
+
readonly capabilities: CapabilityBundles;
|
|
1501
|
+
/**
|
|
1502
|
+
* Ranks the probes that accept a track: lower wins, then the earlier definition. Default selection
|
|
1503
|
+
* also keeps only the lowest of the sets sharing an `altGroup` and `lang`. Default 100.
|
|
1504
|
+
*/
|
|
1505
|
+
readonly priority?: number;
|
|
1506
|
+
/** The optional interfaces this element implements. */
|
|
1507
|
+
readonly provides?: P;
|
|
1508
|
+
/** Rejection might mean a browser API or a peer dependency is missing. */
|
|
1509
|
+
init(context: ElementContext, options?: Record<string, any>): Promise<E>;
|
|
1510
|
+
}
|
|
1511
|
+
/** @public */
|
|
1512
|
+
interface SourceElementDefinition<E extends SourceElement = SourceElement, P extends readonly InterfaceKey[] = readonly InterfaceKey[]> extends ElementDefinition<E, P> {
|
|
1513
|
+
readonly type: 'source';
|
|
1514
|
+
/** Whether this element handles the track. */
|
|
1515
|
+
probe(identifiers: Identifiers): boolean;
|
|
1516
|
+
}
|
|
1517
|
+
/** @public */
|
|
1518
|
+
interface TransformElementDefinition<E extends TransformElement = TransformElement, P extends readonly InterfaceKey[] = readonly InterfaceKey[]> extends ElementDefinition<E, P> {
|
|
1519
|
+
readonly type: 'transform';
|
|
1520
|
+
}
|
|
1521
|
+
/** @public */
|
|
1522
|
+
interface SinkElementDefinition<E extends SinkElement = SinkElement, P extends readonly InterfaceKey[] = readonly InterfaceKey[]> extends ElementDefinition<E, P> {
|
|
1523
|
+
readonly type: 'sink';
|
|
1524
|
+
}
|
|
1525
|
+
/**
|
|
1526
|
+
* @public
|
|
1527
|
+
* Checks an element definition and returns it with its types preserved. The instance
|
|
1528
|
+
* `init` returns gets a read-only `definition` property pointing at the returned object.
|
|
1529
|
+
* Invalid definitions throw `TypeError`, since they're programming errors.
|
|
1530
|
+
*/
|
|
1531
|
+
declare function defineElement<E extends SourceElement & Provided<P>, const P extends readonly InterfaceKey[] = []>(definition: SourceElementDefinition<E, P>): SourceElementDefinition<E, P>;
|
|
1532
|
+
declare function defineElement<E extends TransformElement & Provided<P>, const P extends readonly InterfaceKey[] = []>(definition: TransformElementDefinition<E, P>): TransformElementDefinition<E, P>;
|
|
1533
|
+
declare function defineElement<E extends SinkElement & Provided<P>, const P extends readonly InterfaceKey[] = []>(definition: SinkElementDefinition<E, P>): SinkElementDefinition<E, P>;
|
|
1534
|
+
/** @public Narrows an element to an interface it lists in `provides`. */
|
|
1535
|
+
declare function hasInterface<E extends BaseElement, K extends InterfaceKey>(element: E, key: K): element is E & ElementInterfaces[K];
|
|
1536
|
+
/** @public What elements see of the player: its events and options. */
|
|
1537
|
+
type PlayerHandle = Emitter<PlayerEvents> & Pick<MOQtailPlayer, 'options' | 'bufferController'>;
|
|
1538
|
+
/** @public Given to `init`, one per element instance. */
|
|
1539
|
+
interface ElementContext {
|
|
1540
|
+
readonly player: PlayerHandle;
|
|
1541
|
+
/** Always the current client, it changes after a reconnect. */
|
|
1542
|
+
readonly client: MOQtailClient;
|
|
1543
|
+
/** Aborted when the instance is destroyed. */
|
|
1544
|
+
readonly signal: AbortSignal;
|
|
1545
|
+
/** The tracks this instance was loaded for, empty without a catalog. */
|
|
1546
|
+
readonly tracks: readonly CatalogTrack[];
|
|
1547
|
+
/** Set for elements the catalog loads, and inherited by what they load. */
|
|
1548
|
+
readonly catalog?: CatalogReader;
|
|
1549
|
+
/** Called by the `BaseElement` constructor, so the player hears what the instance emits. */
|
|
1550
|
+
attach(element: BaseElement): void;
|
|
1551
|
+
/** Returns the existing instance when the same definition and tracks are already loaded. */
|
|
1552
|
+
load<E extends BaseElement>(definition: ElementDefinition<E>, request?: ElementLoadRequest): Promise<E>;
|
|
1553
|
+
/** Drops this element's reference to one it loaded; it's destroyed once no holder is left. */
|
|
1554
|
+
release(element: BaseElement): Promise<void>;
|
|
1555
|
+
/** The source definition the player would pick for `identifiers`, as `source()` does. */
|
|
1556
|
+
probe(identifiers: Identifiers): SourceElementDefinition | undefined;
|
|
1557
|
+
/** The active plugins' switch source that ranks first for `identifiers`, as `probe()` ranks. */
|
|
1558
|
+
switchSource(identifiers: Identifiers): SourceElementDefinition | undefined;
|
|
1559
|
+
}
|
|
1560
|
+
/** @public */
|
|
1561
|
+
interface ElementLoadRequest {
|
|
1562
|
+
tracks?: readonly CatalogTrack[];
|
|
1563
|
+
/** The first load's options apply; a later load with different options is an error. */
|
|
1564
|
+
options?: Record<string, any>;
|
|
1565
|
+
/** Defaults to the caller's catalog. */
|
|
1566
|
+
catalog?: CatalogReader;
|
|
1567
|
+
/** `false` always creates a new instance that later loads never find, so its options aren't compared. */
|
|
1568
|
+
shared?: false;
|
|
1569
|
+
}
|
|
1570
|
+
/** @public What an element receives on a sink pad. */
|
|
1571
|
+
type PadItem = {
|
|
1572
|
+
type: 'packet';
|
|
1573
|
+
object: MoqtObject;
|
|
1574
|
+
} | {
|
|
1575
|
+
type: 'properties';
|
|
1576
|
+
properties: Partial<PadProperties>;
|
|
1577
|
+
};
|
|
1578
|
+
/** @public What an element can write to a source pad. */
|
|
1579
|
+
type PadOutput = PadItem | {
|
|
1580
|
+
type: 'event';
|
|
1581
|
+
event: PadEvent;
|
|
1582
|
+
};
|
|
1583
|
+
/** @public Well-known pad properties. Elements add their own by augmenting this interface. */
|
|
1584
|
+
interface PadProperties {
|
|
1585
|
+
/** The active track of the switching set. */
|
|
1586
|
+
track?: string;
|
|
1587
|
+
/** Including codec, e.g. `video/mp4; codecs="avc1.64001f"`. */
|
|
1588
|
+
mimeType?: string;
|
|
1589
|
+
initData?: Uint8Array;
|
|
1590
|
+
live?: boolean;
|
|
1591
|
+
/** Seconds, for VOD `MediaSource.duration`. */
|
|
1592
|
+
duration?: number;
|
|
1593
|
+
/** Seconds: the catalog's `targetLatency`, else `buffers.target`. */
|
|
1594
|
+
targetLatency?: number;
|
|
1595
|
+
/** Seconds: the catalog's `maxGroupDuration`, else the observed group duration. */
|
|
1596
|
+
groupDuration?: number;
|
|
1597
|
+
/** Seconds: the media timeline's range, after `accessibleWindowTime`. */
|
|
1598
|
+
seekable?: {
|
|
1599
|
+
start: number;
|
|
1600
|
+
end: number;
|
|
1601
|
+
};
|
|
1602
|
+
/** Seconds: the catalog's `accessibleWindowTime` (MSF 5.2.46). Live only; absent means no DVR. */
|
|
1603
|
+
accessibleWindow?: number;
|
|
1604
|
+
}
|
|
1605
|
+
/** @public Written to a source pad, delivered in order with the packets around it. */
|
|
1606
|
+
type PadEvent = {
|
|
1607
|
+
type: 'discontinuity';
|
|
1608
|
+
reason: 'seek' | 'gap';
|
|
1609
|
+
mediaTime?: number;
|
|
1610
|
+
failed?: boolean;
|
|
1611
|
+
} | {
|
|
1612
|
+
type: 'eos';
|
|
1613
|
+
};
|
|
1614
|
+
/** @public Sent with `signal()`, delivered immediately ahead of anything written. */
|
|
1615
|
+
type PadSignal = {
|
|
1616
|
+
type: 'seek';
|
|
1617
|
+
mediaTime: number;
|
|
1618
|
+
} | {
|
|
1619
|
+
type: 'flush';
|
|
1620
|
+
};
|
|
1621
|
+
/** @public Items a connection holds before `write()` waits. */
|
|
1622
|
+
declare const CONNECTION_CAPACITY = 32;
|
|
1623
|
+
/** A transform, a sink, or a source taking a pad of an element it loaded. */
|
|
1624
|
+
type Consumer = BaseElement & {
|
|
1625
|
+
receive(pad: Pad, item: PadItem): void | Promise<void>;
|
|
1626
|
+
};
|
|
1627
|
+
type ErrorHandler = (error: unknown, destination: Pad) => void;
|
|
1628
|
+
/** @public One end of a connection between two elements. */
|
|
1629
|
+
declare class Pad {
|
|
1630
|
+
#private;
|
|
1631
|
+
readonly direction: 'src' | 'sink';
|
|
1632
|
+
readonly element: BaseElement;
|
|
1633
|
+
readonly capabilities: Capabilities;
|
|
1634
|
+
/** Connected pads: sink pads for a source pad, source pads for a sink pad. */
|
|
1635
|
+
readonly peers: Pad[];
|
|
1636
|
+
constructor(direction: 'src' | 'sink', element: BaseElement, capabilities: Capabilities);
|
|
1637
|
+
/** Source pads only. Resolves once every connection has room, await it to apply backpressure. */
|
|
1638
|
+
write(item: PadOutput): Promise<void>;
|
|
1639
|
+
/**
|
|
1640
|
+
* Delivers `signal` immediately to the connected pads: upstream from a sink pad, downstream
|
|
1641
|
+
* from a source pad, ahead of anything written. An element that doesn't handle it passes it
|
|
1642
|
+
* on through its other pads. Returns whether any element handled it.
|
|
1643
|
+
*/
|
|
1644
|
+
signal(signal: PadSignal): boolean;
|
|
1645
|
+
/** Sink pads only. Return true when the event is handled; false forwards it past this pad's element. */
|
|
1646
|
+
onEvent(listener: (event: PadEvent) => boolean): () => void;
|
|
1647
|
+
/** Return true when the signal is handled; false forwards it past this pad's element. */
|
|
1648
|
+
onSignal(listener: (signal: PadSignal) => boolean): () => void;
|
|
1649
|
+
/** @internal Delivers an event; unhandled ones land behind what the element already wrote. */
|
|
1650
|
+
deliverEvent(event: PadEvent): Promise<void>;
|
|
1651
|
+
/** @internal Holds writes until the returned function is called, once the pad is routed. */
|
|
1652
|
+
holdWrites(): () => void;
|
|
1653
|
+
/** @internal Connects this source pad to a new sink pad on `element`, which then emits `padadded`. */
|
|
1654
|
+
connect(element: Consumer, onError: ErrorHandler): void;
|
|
1655
|
+
/** @internal */
|
|
1656
|
+
unlink(peer: Pad): void;
|
|
1657
|
+
}
|
|
1658
|
+
/** @public Signals between an element and the player. */
|
|
1659
|
+
interface ElementEvents {
|
|
1660
|
+
padadded: (pad: Pad) => void;
|
|
1661
|
+
/** `failed` is true when the pad was lost to a failure rather than, say, a catalog update. */
|
|
1662
|
+
padremoved: (pad: Pad, failed: boolean) => void;
|
|
1663
|
+
/** Sources emit it once every expected pad exists; the player then emits it on sinks. */
|
|
1664
|
+
nomorepads: () => void;
|
|
1665
|
+
/** Sinks emit it once they can play. */
|
|
1666
|
+
ready: () => void;
|
|
1667
|
+
}
|
|
1668
|
+
/** @public Base of every element instance. */
|
|
1669
|
+
declare abstract class BaseElement extends Emitter<ElementEvents> {
|
|
1670
|
+
protected readonly context: ElementContext;
|
|
1671
|
+
/** Set by `defineElement` once `init` resolves, so it can't be used from a constructor. */
|
|
1672
|
+
readonly definition: ElementDefinition;
|
|
1673
|
+
readonly pads: Pad[];
|
|
1674
|
+
/** Calls `context.attach(this)`, so the player hears everything the instance emits. */
|
|
1675
|
+
constructor(context: ElementContext);
|
|
1676
|
+
/**
|
|
1677
|
+
* Removes the element's pads. The runtime aborts `context.signal` before and releases the
|
|
1678
|
+
* elements this one loaded after. Override for your own cleanup and call `super.destroy()`.
|
|
1679
|
+
*/
|
|
1680
|
+
destroy(): Promise<void>;
|
|
1681
|
+
/** True if the pad matches one of the definition's `in` capability bundles. */
|
|
1682
|
+
protected matchesCapabilities(pad: Pad): boolean;
|
|
1683
|
+
/** Creates a pad and emits `padadded`. */
|
|
1684
|
+
protected createPad(direction: 'src' | 'sink', capabilities: Capabilities): Pad;
|
|
1685
|
+
/** Removes a pad and emits `padremoved`. Pass `failed` when a failure, not a catalog update, lost it. */
|
|
1686
|
+
protected removePad(pad: Pad, failed?: boolean): void;
|
|
1687
|
+
}
|
|
1688
|
+
/** @public Writes to its source pads from anywhere, and emits `nomorepads` once every expected pad exists. */
|
|
1689
|
+
declare abstract class SourceElement extends BaseElement {
|
|
1690
|
+
/**
|
|
1691
|
+
* Optional: whether to take a source pad of an element this one loaded. A taken pad
|
|
1692
|
+
* connects to a new sink pad here instead of reaching the sinks, and its items arrive
|
|
1693
|
+
* through `receive()`.
|
|
1694
|
+
*/
|
|
1695
|
+
negotiate?(pad: Pad): boolean;
|
|
1696
|
+
/** Called once per item on a taken pad; the pad's next item waits for the returned promise. */
|
|
1697
|
+
receive?(pad: Pad, item: PadItem): void | Promise<void>;
|
|
1698
|
+
}
|
|
1699
|
+
/** @public Takes pads from upstream and writes its output to source pads it creates. */
|
|
1700
|
+
declare abstract class TransformElement extends BaseElement {
|
|
1701
|
+
/** Whether to take this upstream source pad. */
|
|
1702
|
+
abstract negotiate(pad: Pad): boolean;
|
|
1703
|
+
/** Called once per item; the pad's next item waits for the returned promise. */
|
|
1704
|
+
abstract receive(pad: Pad, item: PadItem): void | Promise<void>;
|
|
1705
|
+
}
|
|
1706
|
+
/** @public Consumes pads. Listens for `nomorepads` to learn every source has reported, and emits `ready`. */
|
|
1707
|
+
declare abstract class SinkElement extends BaseElement {
|
|
1708
|
+
/** Whether to take this upstream source pad. */
|
|
1709
|
+
abstract negotiate(pad: Pad): boolean;
|
|
1710
|
+
/** Called once per item; the pad's next item waits for the returned promise. */
|
|
1711
|
+
abstract receive(pad: Pad, item: PadItem): void | Promise<void>;
|
|
1712
|
+
}
|
|
1713
|
+
/** @public One event timeline record (MSF 8.2): exactly one of `T` (wallclock), `L`, or `M` (media time, ms). */
|
|
1714
|
+
interface TimelineRecord {
|
|
1715
|
+
T?: number;
|
|
1716
|
+
L?: Location;
|
|
1717
|
+
M?: number;
|
|
1718
|
+
data: unknown;
|
|
1719
|
+
}
|
|
1720
|
+
/** @public What the player's `timelineevent` event carries. */
|
|
1721
|
+
interface TimelineEvent {
|
|
1722
|
+
track: CatalogTrack;
|
|
1723
|
+
eventType: string;
|
|
1724
|
+
record: TimelineRecord;
|
|
1725
|
+
}
|
|
1726
|
+
interface CatalogOptions {
|
|
1727
|
+
/** Passed to the media sources: switch with `SWITCH_FROM`. */
|
|
1728
|
+
switchFrom?: boolean;
|
|
1729
|
+
/** The parsed catalog URL, from the player. */
|
|
1730
|
+
source?: MsfSource;
|
|
1731
|
+
}
|
|
1732
|
+
/** @public The catalog element, emitted with the player's `catalog` event. */
|
|
1733
|
+
declare class CatalogElement extends SourceElement implements CatalogReader {
|
|
1734
|
+
#private;
|
|
1735
|
+
readonly url: string;
|
|
1736
|
+
readonly namespace: Tuple;
|
|
1737
|
+
constructor(context: ElementContext, options: CatalogOptions & {
|
|
1738
|
+
source: MsfSource;
|
|
1739
|
+
});
|
|
1740
|
+
/** The last good catalog's tracks, roles inferred. */
|
|
1741
|
+
get tracks(): readonly CatalogTrack[];
|
|
1742
|
+
get publishTracks(): readonly CatalogTrack[];
|
|
1743
|
+
get isComplete(): boolean;
|
|
1744
|
+
/** The last good catalog document, deltas applied and variables substituted. */
|
|
1745
|
+
get json(): CatalogJson | undefined;
|
|
1746
|
+
/** An update was missed or rejected since the last good catalog. */
|
|
1747
|
+
get stale(): boolean;
|
|
1748
|
+
/** From the tracks of the loaded sources. */
|
|
1749
|
+
get streamType(): StreamType;
|
|
1750
|
+
/** Seconds: the longest `trackDuration` of the loaded sources' tracks, `Infinity` while live, `NaN` unknown. */
|
|
1751
|
+
get duration(): number;
|
|
1752
|
+
/** A track by name bytes, in the catalog's namespace unless given (MSF 11.2.2). */
|
|
1753
|
+
find(name: string | Uint8Array, namespace?: Tuple): CatalogTrack | undefined;
|
|
1754
|
+
byRole(role: string): CatalogTrack[];
|
|
1755
|
+
/** Tracks referencing other catalogs (MSF 5.6.16); loading one is up to the user. */
|
|
1756
|
+
references(): CatalogTrack[];
|
|
1757
|
+
/**
|
|
1758
|
+
* The track's `template`, which needs no subscription; else the media timeline track whose
|
|
1759
|
+
* `depends` names the track or its render group (MSF 7.2), loaded once and shared; else
|
|
1760
|
+
* undefined. A media timeline that can't be read is a warning, and undefined from then on,
|
|
1761
|
+
* so seeks don't wait for it again.
|
|
1762
|
+
*/
|
|
1763
|
+
timeline(track: CatalogTrack): Promise<TimelineReader | undefined>;
|
|
1764
|
+
/**
|
|
1765
|
+
* Subscribes, waits for the first catalog with tracks or `isComplete`, loads the default
|
|
1766
|
+
* sources, and emits `nomorepads`.
|
|
1767
|
+
* @throws PlayerError `CATALOG_TIMEOUT` without a usable catalog in time, `UNSUPPORTED_SOURCE`
|
|
1768
|
+
* for an invalid first catalog or one with nothing playable.
|
|
1769
|
+
*/
|
|
1770
|
+
start(): Promise<void>;
|
|
1771
|
+
destroy(): Promise<void>;
|
|
1772
|
+
}
|
|
1773
|
+
/** @public Options of the `MSE` sink, given through `player.sink(video, options)`. Seconds. */
|
|
1774
|
+
interface MSEOptions {
|
|
1775
|
+
video: HTMLVideoElement;
|
|
1776
|
+
/** Kept behind `currentTime`. Default 90. */
|
|
1777
|
+
backBuffer?: number;
|
|
1778
|
+
/** VOD only: most buffered ahead of `currentTime`, more than 0; appends wait for room. Live keeps everything ahead. Default 60. */
|
|
1779
|
+
forwardCap?: number;
|
|
1780
|
+
/** How far behind the end of the buffer the sink's live jumps land. Default 0.75. */
|
|
1781
|
+
liveEdgeDelay?: number;
|
|
1782
|
+
}
|
|
1783
|
+
/**
|
|
1784
|
+
* Drives an `HTMLVideoElement` through `ManagedMediaSource` or `MediaSource`: one
|
|
1785
|
+
* source buffer per pad, created together once negotiation is over, appends through
|
|
1786
|
+
* one queue per buffer, retention, seeking, gap jumping, and end of stream.
|
|
1787
|
+
*/
|
|
1788
|
+
declare class MSESink extends SinkElement implements MediaSinkElement {
|
|
1789
|
+
#private;
|
|
1790
|
+
readonly addEventListener: {
|
|
1791
|
+
(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
|
|
1792
|
+
(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
|
|
1793
|
+
};
|
|
1794
|
+
readonly removeEventListener: {
|
|
1795
|
+
(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
|
|
1796
|
+
(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
|
|
1797
|
+
};
|
|
1798
|
+
readonly dispatchEvent: {
|
|
1799
|
+
(event: Event): boolean;
|
|
1800
|
+
(event: Event): boolean;
|
|
1801
|
+
};
|
|
1802
|
+
constructor(context: ElementContext, options: MSEOptions, Backend: typeof MediaSource, managed: boolean);
|
|
1803
|
+
get currentTime(): number;
|
|
1804
|
+
get buffered(): TimeRanges;
|
|
1805
|
+
get paused(): boolean;
|
|
1806
|
+
get seeking(): boolean;
|
|
1807
|
+
get ended(): boolean;
|
|
1808
|
+
get playbackRate(): number;
|
|
1809
|
+
get liveEdgeStart(): number;
|
|
1810
|
+
get dvrRange(): {
|
|
1811
|
+
start: number;
|
|
1812
|
+
end: number;
|
|
1813
|
+
} | undefined;
|
|
1814
|
+
setPlaybackRate(rate: number): void;
|
|
1815
|
+
play(): Promise<void>;
|
|
1816
|
+
pause(): Promise<void>;
|
|
1817
|
+
/** Only sets `currentTime`; the element's `seeking` listener does the rest. */
|
|
1818
|
+
seek(mediaTime: number): Promise<void>;
|
|
1819
|
+
/** One pad per role. */
|
|
1820
|
+
negotiate(pad: Pad): boolean;
|
|
1821
|
+
receive(pad: Pad, item: PadItem): Promise<void>;
|
|
1822
|
+
destroy(): Promise<void>;
|
|
1823
|
+
}
|
|
1824
|
+
/**
|
|
1825
|
+
* @public
|
|
1826
|
+
* The player attaches it once a live stream is ready, and detaches it on `destroy()` and when
|
|
1827
|
+
* the stream turns on-demand. Times are in seconds.
|
|
1828
|
+
*/
|
|
1829
|
+
interface BufferController {
|
|
1830
|
+
attach(player: MOQtailPlayer, sink: MediaSinkElement): void;
|
|
1831
|
+
detach(): void;
|
|
1832
|
+
/** Seconds kept behind `currentTime`; replaces the sink's own `backBuffer` while attached. */
|
|
1833
|
+
backBuffer?(): number;
|
|
1834
|
+
}
|
|
1835
|
+
/**
|
|
1836
|
+
* @public
|
|
1837
|
+
* Picks renditions for the media sources that don't switch themselves. The player attaches it
|
|
1838
|
+
* once a live stream is ready, and detaches it on `destroy()`, when the stream turns on-demand,
|
|
1839
|
+
* while a media source provides `ABR`, and while a rendition is picked manually.
|
|
1840
|
+
*/
|
|
1841
|
+
interface AbrController {
|
|
1842
|
+
attach(player: MOQtailPlayer, sink: MediaSinkElement): void;
|
|
1843
|
+
detach(): void;
|
|
1844
|
+
}
|
|
1845
|
+
/** @public What a plugin offers. */
|
|
1846
|
+
type Feature =
|
|
1847
|
+
/** Loaded by the catalog for a media switching set whose first track it accepts, with `{ child }` (`SwitchingSetOptions`). */
|
|
1848
|
+
{
|
|
1849
|
+
type: 'switch-source';
|
|
1850
|
+
item: SourceElementDefinition;
|
|
1851
|
+
} | {
|
|
1852
|
+
type: 'buffer-controller';
|
|
1853
|
+
item: BufferController;
|
|
1854
|
+
} | {
|
|
1855
|
+
type: 'abr-controller';
|
|
1856
|
+
item: AbrController;
|
|
1857
|
+
} |
|
|
1858
|
+
/** A source, transform, or sink, registered like `registerElement`. */
|
|
1859
|
+
{
|
|
1860
|
+
type: 'element';
|
|
1861
|
+
item: ElementDefinition;
|
|
1862
|
+
};
|
|
1863
|
+
/** @public Every hook is optional: no `init` means ctx is `undefined`, no `setup` or `negotiated` means true. */
|
|
1864
|
+
interface PluginDefinition<Config = void, Ctx = undefined> {
|
|
1865
|
+
readonly name: string;
|
|
1866
|
+
/** Lower wins, like `ElementDefinition.priority`. Default 100. Ties go to the earlier entry in `opts.plugins`. */
|
|
1867
|
+
readonly priority?: number;
|
|
1868
|
+
/** Once per player, in the constructor. The config comes from `opts.plugins`. */
|
|
1869
|
+
init?(config: Config): Ctx;
|
|
1870
|
+
/** Synchronous, in the constructor. Adds setup parameters to its own `clientSetup`; false drops the plugin. */
|
|
1871
|
+
setup?(ctx: Ctx, clientSetup: SetupOptions): boolean;
|
|
1872
|
+
/** After SERVER_SETUP. False means none of its features are used (its parameters were already sent). */
|
|
1873
|
+
negotiated?(ctx: Ctx, serverSetup: Setup): boolean;
|
|
1874
|
+
/** What the plugin offers, once per player after `init`. */
|
|
1875
|
+
features?(ctx: Ctx): Feature[];
|
|
1876
|
+
}
|
|
1877
|
+
/** @public An entry for `opts.plugins`, from calling what `definePlugin` returns. */
|
|
1878
|
+
interface Plugin {
|
|
1879
|
+
readonly definition: PluginDefinition<any, any>;
|
|
1880
|
+
readonly config: unknown;
|
|
1881
|
+
}
|
|
1882
|
+
/**
|
|
1883
|
+
* @public
|
|
1884
|
+
* Checks a plugin definition and returns a factory: calling it with the config gives an entry
|
|
1885
|
+
* for `opts.plugins`. A plugin whose config is all optional can be called with no arguments.
|
|
1886
|
+
*/
|
|
1887
|
+
declare function definePlugin<Config = void, Ctx = undefined>(definition: PluginDefinition<Config, Ctx>): (...config: [Config] extends [void] ? [] : {} extends Config ? [config?: Config] : [config: Config]) => Plugin;
|
|
1888
|
+
/**
|
|
1889
|
+
* Copyright 2026 The MOQtail Authors
|
|
1890
|
+
*
|
|
1891
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1892
|
+
* you may not use this file except in compliance with the License.
|
|
1893
|
+
* You may obtain a copy of the License at
|
|
1894
|
+
*
|
|
1895
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1896
|
+
*
|
|
1897
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1898
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1899
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1900
|
+
* See the License for the specific language governing permissions and
|
|
1901
|
+
* limitations under the License.
|
|
1902
|
+
*/
|
|
1903
|
+
/** @public The player's lifecycle state. */
|
|
1904
|
+
type PlayerState = 'idle' | 'connecting' | 'ready' | 'playing' | 'paused' | 'stalled' | 'reconnecting' | 'ended' | 'error' | 'destroyed';
|
|
1905
|
+
/** @public */
|
|
1906
|
+
interface MOQtailPlayerOptions {
|
|
1907
|
+
/** Shared by every player on the client, compared for `UNSUPPORTED_ORIGIN`. */
|
|
1908
|
+
client?: {
|
|
1909
|
+
setupOptions?: SetupOptions;
|
|
1910
|
+
transportOptions?: MOQtailClientOptions['transportOptions'];
|
|
1911
|
+
/** Default 5. */
|
|
1912
|
+
reconnectAttempts?: number;
|
|
1913
|
+
};
|
|
1914
|
+
/** Entries made with `definePlugin`. Their setup parameters are shared; their features apply to this player. */
|
|
1915
|
+
plugins?: Plugin[];
|
|
1916
|
+
preferredLanguage?: string;
|
|
1917
|
+
eventTimelines?: string[] | 'all';
|
|
1918
|
+
/** Default 10 000. */
|
|
1919
|
+
catalogTimeoutMs?: number;
|
|
1920
|
+
/** Default 16 MiB. */
|
|
1921
|
+
maxCatalogBytes?: number;
|
|
1922
|
+
/** How media sources order each request's objects. Default: a 150 ms window. */
|
|
1923
|
+
objectOrdering?: ObjectOrdering;
|
|
1924
|
+
}
|
|
1925
|
+
/** @public The media-ui-extensions stream type (proposal 0010). */
|
|
1926
|
+
type StreamType = 'unknown' | 'live' | 'on-demand';
|
|
1927
|
+
/** @public */
|
|
1928
|
+
interface PlayerEvents {
|
|
1929
|
+
statechange: (state: PlayerState, previous: PlayerState) => void;
|
|
1930
|
+
error: (error: PlayerError) => void;
|
|
1931
|
+
warning: (warning: PlayerError) => void;
|
|
1932
|
+
playing: () => void;
|
|
1933
|
+
pause: () => void;
|
|
1934
|
+
stalled: () => void;
|
|
1935
|
+
ended: () => void;
|
|
1936
|
+
/** The catalog element, after the first catalog and every applied update. */
|
|
1937
|
+
catalog: (catalog: CatalogElement) => void;
|
|
1938
|
+
reconnecting: (attempt: number) => void;
|
|
1939
|
+
reconnected: () => void;
|
|
1940
|
+
/** The client this player uses, once connected and again before each `reconnected`. */
|
|
1941
|
+
client: (client: MOQtailClient) => void;
|
|
1942
|
+
/** A record of an opted-in event timeline, on arrival (`opts.eventTimelines`). */
|
|
1943
|
+
timelineevent: (event: TimelineEvent) => void;
|
|
1944
|
+
autoplayblocked: () => void;
|
|
1945
|
+
/** A source switched to another rendition. Not emitted for the one it starts with: read `active` from `getRenditions()`. */
|
|
1946
|
+
renditionchange: (source: MediaSourceElement, rendition: Rendition) => void;
|
|
1947
|
+
/** A source's selected renditions were set (`selectRenditions`). */
|
|
1948
|
+
selectionchange: (source: MediaSourceElement) => void;
|
|
1949
|
+
/** The catalog element's `streamType` changed. */
|
|
1950
|
+
streamtypechange: (type: StreamType) => void;
|
|
1951
|
+
}
|
|
1952
|
+
/** @public */
|
|
1953
|
+
declare class MOQtailPlayer extends Emitter<PlayerEvents> {
|
|
1954
|
+
#private;
|
|
1955
|
+
readonly options: Readonly<MOQtailPlayerOptions>;
|
|
1956
|
+
/**
|
|
1957
|
+
* Runs each plugin's `init` and `setup`.
|
|
1958
|
+
* @throws PlayerError `UNSUPPORTED_ORIGIN` when two plugins set a setup parameter differently.
|
|
1959
|
+
* @throws TypeError for a plugin listed twice, or a config its `init` rejects.
|
|
1960
|
+
*/
|
|
1961
|
+
constructor(options?: MOQtailPlayerOptions);
|
|
1962
|
+
get state(): PlayerState;
|
|
1963
|
+
get sources(): readonly SourceElement[];
|
|
1964
|
+
/** Sources that provide `MEDIA_SOURCE`, except those loaded by another media source. */
|
|
1965
|
+
get mediaSources(): readonly (SourceElement & MediaSourceElement)[];
|
|
1966
|
+
/** The first sink in chain order that provides `MEDIA_SINK`. */
|
|
1967
|
+
get mediaSink(): (SinkElement & MediaSinkElement) | undefined;
|
|
1968
|
+
/** The shared client while this player holds it; a reconnect replaces it (see the `client` event). */
|
|
1969
|
+
get client(): MOQtailClient | undefined;
|
|
1970
|
+
/** The active plugins' buffer controller while it's attached. */
|
|
1971
|
+
get bufferController(): BufferController | undefined;
|
|
1972
|
+
/** The active plugins' ABR controller while it's attached. */
|
|
1973
|
+
get abrController(): AbrController | undefined;
|
|
1974
|
+
/**
|
|
1975
|
+
* Whether `source` switches renditions automatically: it provides `ABR`, or an ABR controller can
|
|
1976
|
+
* drive it, since the stream is live and no media source provides `ABR`. A rendition picked
|
|
1977
|
+
* manually detaches the controller but leaves this true, so selecting every rendition again resumes it.
|
|
1978
|
+
*/
|
|
1979
|
+
isAbrAvailable(source: SourceElement): boolean;
|
|
1980
|
+
/** Registers an element on this player only. Call it before `source()`. */
|
|
1981
|
+
registerElement(definition: ElementDefinition): this;
|
|
1982
|
+
/**
|
|
1983
|
+
* Adds a top-level source for a moqt URI. `init()` picks its element, once the peer's SETUP
|
|
1984
|
+
* decided which plugins are active, and gives it `{ ...options, source }`.
|
|
1985
|
+
* @throws PlayerError `UNSUPPORTED_SOURCE` for a URI that can't be used here, `UNSUPPORTED_ORIGIN`
|
|
1986
|
+
* for another origin or client setup; the player stays `idle`.
|
|
1987
|
+
*/
|
|
1988
|
+
source(uri: string, options?: {
|
|
1989
|
+
switchFrom?: boolean;
|
|
1990
|
+
[key: string]: unknown;
|
|
1991
|
+
}): this;
|
|
1992
|
+
transform(element: TransformElement): this;
|
|
1993
|
+
/** A video element gets the `MSE` sink with `options`. */
|
|
1994
|
+
sink(video: HTMLVideoElement, options?: Omit<MSEOptions, 'video'>): this;
|
|
1995
|
+
sink(definition: SinkElementDefinition, options?: Record<string, unknown>): this;
|
|
1996
|
+
/** Connects and negotiates the chain; rejects with `UNSUPPORTED_SOURCE` when no element accepts a source. Idempotent. */
|
|
1997
|
+
init(): Promise<void>;
|
|
1998
|
+
/** `init()`, then `play()`. Idempotent. */
|
|
1999
|
+
start(): Promise<void>;
|
|
2000
|
+
/** A `NotAllowedError` moves the player to `paused` and emits `autoplayblocked`. */
|
|
2001
|
+
play(): Promise<void>;
|
|
2002
|
+
pause(): Promise<void>;
|
|
2003
|
+
/** Seconds. Resolves or rejects as the media sink's `seek()` does. */
|
|
2004
|
+
seek(mediaTime: number): Promise<void>;
|
|
2005
|
+
setPlaybackRate(rate: number): void;
|
|
2006
|
+
/** Aborts in-flight work, destroys sinks then sources, and releases the client last. Callable in any state. */
|
|
2007
|
+
destroy(): Promise<void>;
|
|
2008
|
+
}
|
|
2009
|
+
/**
|
|
2010
|
+
* @public
|
|
2011
|
+
* Plays CMAF video and audio pads on an `HTMLVideoElement`, through `ManagedMediaSource`
|
|
2012
|
+
* where it exists and `MediaSource` otherwise. `player.sink(video)` adds it with `{ video }`.
|
|
2013
|
+
*/
|
|
2014
|
+
declare const MSE: SinkElementDefinition<MSESink, readonly [typeof MEDIA_SINK]>;
|
|
2015
|
+
/** @public Index of the range containing `time`, or -1. */
|
|
2016
|
+
declare function rangeAt(time: number, ranges: TimeRanges): number;
|
|
2017
|
+
/**
|
|
2018
|
+
* @public
|
|
2019
|
+
* Runs `attach` on the player's current client and on every later one (reconnects replace it),
|
|
2020
|
+
* calling the cleanup `attach` returned for the one before. Returns the function that stops.
|
|
2021
|
+
*/
|
|
2022
|
+
declare function eachClient(player: MOQtailPlayer, attach: (client: MOQtailClient) => () => void): () => void;
|
|
2023
|
+
/**
|
|
2024
|
+
* @public
|
|
2025
|
+
* Calls `listener` with each incoming data event of the player's client, across reconnects, with
|
|
2026
|
+
* the name of the track its stream carries and the stream's header. A stream can open before the
|
|
2027
|
+
* response naming its track, so `track` stays undefined until a later event of that stream.
|
|
2028
|
+
* Streams opened before the call are skipped. Returns the function that stops listening.
|
|
2029
|
+
*/
|
|
2030
|
+
declare function followData(player: MOQtailPlayer, listener: (event: DataEvent, track: string | undefined, header: DataHeaderEvent) => void): () => void;
|
|
2031
|
+
/**
|
|
2032
|
+
* Copyright 2026 The MOQtail Authors
|
|
2033
|
+
*
|
|
2034
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2035
|
+
* you may not use this file except in compliance with the License.
|
|
2036
|
+
* You may obtain a copy of the License at
|
|
2037
|
+
*
|
|
2038
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2039
|
+
*
|
|
2040
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2041
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2042
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2043
|
+
* See the License for the specific language governing permissions and
|
|
2044
|
+
* limitations under the License.
|
|
2045
|
+
*/
|
|
2046
|
+
/** @public */
|
|
2047
|
+
interface LiveBufferConfig {
|
|
2048
|
+
/** The playback rate when behind the target latency; `2 - catchupRate` when ahead. Between 1 and 2, default 1.1. */
|
|
2049
|
+
catchupRate?: number;
|
|
2050
|
+
/**
|
|
2051
|
+
* Seconds of latency to hold when the catalog sets no `targetLatency` or `buffers`. Measured like the
|
|
2052
|
+
* catalog's: wallclock latency when the timeline has it, else the forward buffer. Above 0, default 1.
|
|
2053
|
+
*/
|
|
2054
|
+
targetLatency?: number;
|
|
2055
|
+
}
|
|
2056
|
+
/**
|
|
2057
|
+
* @public
|
|
2058
|
+
* A buffer controller that holds the catalog's target latency, else `targetLatency` (1 s), through the playback rate,
|
|
2059
|
+
* or on WebKit through jumps, where every rate change stalls playback.
|
|
2060
|
+
* Priority `Infinity`, so any other active buffer plugin wins over it.
|
|
2061
|
+
*/
|
|
2062
|
+
declare const liveBuffer: (config?: LiveBufferConfig | undefined) => Plugin;
|
|
2063
|
+
/**
|
|
2064
|
+
* Copyright 2026 The MOQtail Authors
|
|
2065
|
+
*
|
|
2066
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2067
|
+
* you may not use this file except in compliance with the License.
|
|
2068
|
+
* You may obtain a copy of the License at
|
|
2069
|
+
*
|
|
2070
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2071
|
+
*
|
|
2072
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2073
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2074
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2075
|
+
* See the License for the specific language governing permissions and
|
|
2076
|
+
* limitations under the License.
|
|
2077
|
+
*/
|
|
2078
|
+
/**
|
|
2079
|
+
* The observation contract between the controller and its model: what the controller reads each
|
|
2080
|
+
* tick, the features the model sees, and the actions it may take. A model is trained on exactly
|
|
2081
|
+
* these, so changing them takes a new model and a new `FEATURES_VERSION`.
|
|
2082
|
+
*/
|
|
2083
|
+
/** @public What the controller reads each tick, in seconds, bytes and bits per second. */
|
|
2084
|
+
interface Observation {
|
|
2085
|
+
/** Buffered ahead of the playhead. */
|
|
2086
|
+
forwardBuffer: number;
|
|
2087
|
+
/** 0 while stalled. */
|
|
2088
|
+
playbackRate: number;
|
|
2089
|
+
/** Time stalled within the last `WINDOW`. */
|
|
2090
|
+
stalledTime: number;
|
|
2091
|
+
/** The selectable bitrates, ascending. */
|
|
2092
|
+
ladder: readonly number[];
|
|
2093
|
+
/** Index in `ladder` of the rendition last asked for. */
|
|
2094
|
+
requested: number;
|
|
2095
|
+
/** The bitrate of the rendition being received. */
|
|
2096
|
+
activeBitrate: number;
|
|
2097
|
+
/** Live video bytes received within the last `WINDOW`. */
|
|
2098
|
+
receivedBytes: number;
|
|
2099
|
+
/**
|
|
2100
|
+
* Live video bytes per second: the slower of the last `RECENT` seconds and its second half, from the
|
|
2101
|
+
* last settled switch on. Under trouble, live delivery saturates the link, so this is what it carries.
|
|
2102
|
+
*/
|
|
2103
|
+
throughput: number;
|
|
2104
|
+
/**
|
|
2105
|
+
* Video objects received within the last `WINDOW` over what the frame rate delivers in it: about 1
|
|
2106
|
+
* while the link keeps up, whatever the scene costs, and less once it falls behind.
|
|
2107
|
+
*/
|
|
2108
|
+
arrivalRate: number;
|
|
2109
|
+
/**
|
|
2110
|
+
* Link capacity recent probes saw, in bytes per second: the median of the last `CONFIRMING`, so one
|
|
2111
|
+
* outlier can't swing it; null before a probe, or once contradicted.
|
|
2112
|
+
*/
|
|
2113
|
+
probeEstimate: number | null;
|
|
2114
|
+
/** Since the last probe ended with an estimate. */
|
|
2115
|
+
probeAge: number | null;
|
|
2116
|
+
/**
|
|
2117
|
+
* The median of the last `CONFIRMING` estimates when all of them are still evidence: each ages only
|
|
2118
|
+
* while the controller is free to act, and counts for `UP_EVIDENCE` seconds of that. Null otherwise.
|
|
2119
|
+
*/
|
|
2120
|
+
evidence: number | null;
|
|
2121
|
+
probing: boolean;
|
|
2122
|
+
/** Probes in a row that found no room for the next rendition. */
|
|
2123
|
+
probeFailures: number;
|
|
2124
|
+
/** Since the last probe ended; null before one. */
|
|
2125
|
+
sinceProbe: number | null;
|
|
2126
|
+
sinceSwitch: number;
|
|
2127
|
+
/** Between group starts; null until two are seen. */
|
|
2128
|
+
groupInterval: number | null;
|
|
2129
|
+
/** Whether a recent group is known well enough to plan a probe from. */
|
|
2130
|
+
probeable: boolean;
|
|
2131
|
+
/** A switch is taking effect: the old track still streams, or the new one hasn't arrived. */
|
|
2132
|
+
settling: boolean;
|
|
2133
|
+
/** Since the last switch settled; windowed signals count from then on. */
|
|
2134
|
+
sinceSettled: number;
|
|
2135
|
+
/** Since the last stall or the last time frames fell behind. */
|
|
2136
|
+
sinceTrouble: number;
|
|
2137
|
+
}
|
|
2138
|
+
/** @public What the controller does with a tick. */
|
|
2139
|
+
declare const Action: {
|
|
2140
|
+
readonly Down: 0;
|
|
2141
|
+
readonly Stay: 1;
|
|
2142
|
+
readonly Up: 2;
|
|
2143
|
+
readonly Probe: 3;
|
|
2144
|
+
};
|
|
2145
|
+
/** @public */
|
|
2146
|
+
type Action = (typeof Action)[keyof typeof Action];
|
|
2147
|
+
/** @public A model as shipped: base64 of the packed form, and whether it is compressed. */
|
|
2148
|
+
interface ModelBlob {
|
|
2149
|
+
data: string;
|
|
2150
|
+
codec: 'deflate-raw' | 'raw';
|
|
2151
|
+
}
|
|
2152
|
+
interface Layer {
|
|
2153
|
+
inputs: number;
|
|
2154
|
+
outputs: number;
|
|
2155
|
+
/** Row-major: `outputs` rows of `inputs` weights. */
|
|
2156
|
+
weights: Float64Array;
|
|
2157
|
+
biases: Float64Array;
|
|
2158
|
+
}
|
|
2159
|
+
/** A decoded model: logits over `Action` for a feature vector. */
|
|
2160
|
+
declare class Policy {
|
|
2161
|
+
#private;
|
|
2162
|
+
constructor(layers: readonly Layer[]);
|
|
2163
|
+
/**
|
|
2164
|
+
* Decodes a blob.
|
|
2165
|
+
* @throws TypeError for a model trained on another feature list, which would read the inputs wrong.
|
|
2166
|
+
*/
|
|
2167
|
+
static load(blob: ModelBlob): Promise<Policy>;
|
|
2168
|
+
logits(features: readonly number[]): number[];
|
|
2169
|
+
/**
|
|
2170
|
+
* Draws an allowed action by the model's odds instead of taking the likeliest: some choices, such
|
|
2171
|
+
* as an occasional probe on a calm link, it learned only as odds. `random` returns numbers in [0, 1).
|
|
2172
|
+
*/
|
|
2173
|
+
choose(features: readonly number[], legal: readonly boolean[], random?: () => number): Action;
|
|
2174
|
+
}
|
|
2175
|
+
/** @public What the controller decided on a tick, for logging. */
|
|
2176
|
+
interface Decision {
|
|
2177
|
+
action: Action;
|
|
2178
|
+
observation: Observation;
|
|
2179
|
+
features: number[];
|
|
2180
|
+
/** Set on the tick a probe ended: what it measured, in bytes per second. */
|
|
2181
|
+
probeResult?: number;
|
|
2182
|
+
/** Set on a switch: the index in `observation.ladder` it asked for. */
|
|
2183
|
+
switchedTo?: number;
|
|
2184
|
+
/** Set while too little live video arrived to judge the link; the action is then `Stay`. */
|
|
2185
|
+
warmingUp?: true;
|
|
2186
|
+
}
|
|
2187
|
+
/**
|
|
2188
|
+
* @public
|
|
2189
|
+
* ABR for live playback: every tick a small neural network picks a switch down, a switch up, a probe
|
|
2190
|
+
* or nothing, among the actions `legalActions` allows.
|
|
2191
|
+
*/
|
|
2192
|
+
declare class MlAbrController implements AbrController {
|
|
2193
|
+
#private;
|
|
2194
|
+
constructor(tickMs: number, policy: Promise<Policy>, onDecision?: (decision: Decision) => void);
|
|
2195
|
+
attach(player: MOQtailPlayer, sink: MediaSinkElement): void;
|
|
2196
|
+
detach(): void;
|
|
2197
|
+
}
|
|
2198
|
+
/** @public */
|
|
2199
|
+
interface MlAbrConfig {
|
|
2200
|
+
/** Milliseconds between decisions. Above 0, default 500, which the bundled model was trained at. */
|
|
2201
|
+
tickMs?: number;
|
|
2202
|
+
/** A model to use instead of the bundled one. */
|
|
2203
|
+
model?: ModelBlob;
|
|
2204
|
+
/** Called with every decision, for logging. */
|
|
2205
|
+
onDecision?: (decision: Decision) => void;
|
|
2206
|
+
}
|
|
2207
|
+
/**
|
|
2208
|
+
* @public
|
|
2209
|
+
* An ABR controller driven by a small neural network, for live streams. Priority `Infinity`, so any
|
|
2210
|
+
* other active ABR plugin wins over it.
|
|
2211
|
+
*/
|
|
2212
|
+
declare const abr: (config?: MlAbrConfig | undefined) => Plugin;
|
|
2213
|
+
/** @public The switching set source of the `ssts()` plugin. */
|
|
2214
|
+
declare class SstsSource extends SourceElement implements MediaSourceElement {
|
|
2215
|
+
#private;
|
|
2216
|
+
readonly options: SwitchingSetOptions;
|
|
2217
|
+
readonly pad: Pad;
|
|
2218
|
+
/** The negotiated algorithms (`sstsAlgorithms`), most preferred first, read at init. */
|
|
2219
|
+
readonly algorithms: readonly bigint[];
|
|
2220
|
+
/** `preferred` is the plugin's list, most preferred first; the source starts on the first negotiated one. */
|
|
2221
|
+
constructor(context: ElementContext, options: SwitchingSetOptions, preferred: readonly bigint[]);
|
|
2222
|
+
get algorithm(): bigint;
|
|
2223
|
+
/**
|
|
2224
|
+
* @internal Loads a child per track, in parallel: the publisher activates once all are assigned
|
|
2225
|
+
* (SSTS 6.3). The set plays on the children that loaded; it fails only when none did.
|
|
2226
|
+
*/
|
|
2227
|
+
start(): Promise<void>;
|
|
2228
|
+
/** The chain only offers pads of elements this one loaded: take them all. */
|
|
2229
|
+
negotiate(): boolean;
|
|
2230
|
+
receive(pad: Pad, item: PadItem): Promise<void>;
|
|
2231
|
+
getRenditions(): Rendition[];
|
|
2232
|
+
/** Pins the relay to one track: the same as selecting only it. */
|
|
2233
|
+
switch(renditionId: string): Promise<void>;
|
|
2234
|
+
/**
|
|
2235
|
+
* Changes the switching set (SSTS 6.2): a deselected track is unsubscribed, a selected one
|
|
2236
|
+
* subscribed again. A single selection keeps every track in the set and pins it by threshold.
|
|
2237
|
+
*/
|
|
2238
|
+
selectRenditions(renditionIds: string[]): Promise<void>;
|
|
2239
|
+
/** New tracks get a child, selected unless a track is pinned; removed ones are released. */
|
|
2240
|
+
setTracks(tracks: readonly CatalogTrack[]): void;
|
|
2241
|
+
/** Pauses automatic switching: `activate` 0 on the set (SSTS 6.2). */
|
|
2242
|
+
pauseSwitching(): Promise<void>;
|
|
2243
|
+
/** Resumes automatic switching: `activate` back to the set size. */
|
|
2244
|
+
resumeSwitching(): Promise<void>;
|
|
2245
|
+
/**
|
|
2246
|
+
* Moves the whole set to another negotiated algorithm with a REQUEST_UPDATE per subscription;
|
|
2247
|
+
* a rejected update rolls the others back, so the set never carries two algorithms.
|
|
2248
|
+
* With concurrent calls the latest wins and earlier ones reject with `ABORTED`.
|
|
2249
|
+
*/
|
|
2250
|
+
setAlgorithm(id: bigint): Promise<void>;
|
|
2251
|
+
}
|
|
2252
|
+
/** @public The algorithms `ssts()` offers by default: 0 (the draft's default) and demo-abr's 0xff01. */
|
|
2253
|
+
declare const SSTS_ALGORITHMS: readonly bigint[];
|
|
2254
|
+
/** @public */
|
|
2255
|
+
interface SstsConfig {
|
|
2256
|
+
/** Offered at setup, most preferred first; the source starts on the first negotiated one. Default `SSTS_ALGORITHMS`. */
|
|
2257
|
+
algorithms?: readonly bigint[];
|
|
2258
|
+
}
|
|
2259
|
+
/** @public The SSTS plugin, for `opts.plugins`. */
|
|
2260
|
+
declare const ssts: (config?: SstsConfig | undefined) => Plugin;
|
|
2261
|
+
export { ElementDefinition as $, CatalogElement as A, TimeRange as At, PadEvent as B, AbrController as C, MediaTimelineTemplate as Ct, PluginDefinition as D, PlayerErrorCode as Dt, Plugin as E, PlayerErrorCategory as Et, SinkElement as F, ElementContext as G, PadOutput as H, SourceElement as I, Capabilities as J, ElementLoadRequest as K, TransformElement as L, TimelineRecord as M, parseMsfUrl as Mt, BaseElement as N, definePlugin as O, LocationRange as Ot, ElementEvents as P, DEFAULT_PRIORITY as Q, CONNECTION_CAPACITY as R, PlayerState as S, CatalogTrack as St, Feature as T, PlayerError as Tt, PadProperties as U, PadItem as V, PadSignal as W, CapabilityBundles as X, Capability as Y, CapabilityCode as Z, MSE as _, RequestHooks as _t, MlAbrConfig as a, defineElement as at, PlayerEvents as b, Catalog as bt, MlAbrController as c, CatalogReader as ct, Observation as d, MEDIA_SINK as dt, Identifiers as et, LiveBufferConfig as f, MEDIA_SOURCE as ft, rangeAt as g, Rendition as gt, followData as h, MediaSourceOptions as ht, SstsSource as i, TransformElementDefinition as it, TimelineEvent as j, formatMsfUrl as jt, MSEOptions as k, MsfSource as kt, ModelBlob as l, ElementInterfaces as lt, eachClient as m, MediaSourceElement as mt, ssts as n, SinkElementDefinition as nt, abr as o, hasInterface as ot, liveBuffer as p, MediaSinkElement as pt, PlayerHandle as q, SSTS_ALGORITHMS as r, SourceElementDefinition as rt, Decision as s, ABR as st, SstsConfig as t, Provided as tt, Action as u, InterfaceKey as ut, MOQtailPlayer as v, SwitchingSetOptions as vt, BufferController as w, InitData as wt, StreamType as x, CatalogJson as xt, MOQtailPlayerOptions as y, TimelineReader as yt, Pad as z };
|