moqtail 0.9.0 → 0.10.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 +8 -16
- package/dist/client.cjs +4274 -4230
- package/dist/client.d.cts +159 -93
- package/dist/client.d.ts +159 -93
- package/dist/client.js +4274 -4231
- package/dist/index.cjs +4752 -4639
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +4497 -4435
- package/dist/logger-C6QS408Z.d.cts +34 -0
- package/dist/logger-C6QS408Z.d.ts +34 -0
- package/dist/model.cjs +2055 -1982
- package/dist/model.d.cts +83 -52
- package/dist/model.d.ts +83 -52
- package/dist/model.js +2021 -1953
- package/dist/{version_parameter-DXBOBueW.d.cts → setup_parameter-BOeGq6Mv.d.cts} +840 -759
- package/dist/{version_parameter-DXBOBueW.d.ts → setup_parameter-BOeGq6Mv.d.ts} +840 -759
- package/dist/util.cjs +45 -0
- package/dist/util.d.cts +2 -0
- package/dist/util.d.ts +2 -0
- package/dist/util.js +41 -1
- package/package.json +1 -1
package/dist/model.d.cts
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AuthTokenVariant, a as AuthorizationToken,
|
|
1
|
+
import { u as FullTrackName, K as KeyValuePair, t as FrozenByteBuffer, B as BaseByteBuffer, L as LOCHeaderExtensionId, av as TrackExtensionType, b as ByteBuffer } from './setup_parameter-BOeGq6Mv.cjs';
|
|
2
|
+
export { A as AuthTokenVariant, a as AuthorizationToken, C as ClientSetup, c as ControlMessage, d as ControlMessageType, D as Datagram, e as DefaultPublisherGroupOrderExtension, f as DefaultPublisherPriorityExtension, g as DeliveryTimeout, h as DeliveryTimeoutExtension, i as DynamicGroupsExtension, E as EndOfRangeKind, j as Expires, F as Fetch, k as FetchCancel, l as FetchHeader, m as FetchHeaderType, n as FetchObject, o as FetchObjectContext, p as FetchOk, q as FetchType, r as FilterType, s as Forward, G as GoAway, v as GroupOrder, w as GroupOrderParam, H as Header, I as ImmutableExtensionsExtension, x as LargestObject, y as Location, M as MAX_FULL_TRACK_NAME_LENGTH, z as MAX_NAMESPACE_TUPLE_COUNT, J as MAX_REASON_PHRASE_LEN, N as MaxAuthTokenCacheSize, O as MaxCacheDurationExtension, P as MaxRequestId, Q as MaxRequestIdParameter, R as MessageParameter, S as MessageParameterType, T as MessageParameters, U as MoqtObject, V as Namespace, W as NamespaceDone, X as NamespaceSubscribeOptions, Y as NewGroupRequest, Z as ObjectDatagramType, _ as ObjectForwardingPreference, $ as ObjectStatus, a0 as Parameter, a1 as Path, a2 as Publish, a3 as PublishDone, a4 as PublishDoneStatusCode, a5 as PublishNamespace, a6 as PublishNamespaceCancel, a7 as PublishNamespaceDone, a8 as PublishOk, a9 as ReasonPhrase, aa as RequestError, ab as RequestErrorCode, ac as RequestIdMap, ad as RequestOk, ae as RequestUpdate, af as RequestsBlocked, ag as SUPPORTED_VERSIONS, ah as ServerSetup, ai as SetupParameter, aj as SetupParameterType, ak as SetupParameters, al as SubgroupHeader, am as SubgroupHeaderType, an as SubgroupObject, ao as Subscribe, ap as SubscribeNamespace, aq as SubscribeOk, ar as SubscriberPriority, as as SubscriptionFilter, at as TokenAliasType, au as TrackExtension, aw as TrackStatus, ax as TrackStatusCode, ay as Tuple, az as TupleField, aA as UnknownTrackExtension, aB as Unsubscribe, aC as UnsubscribeNamespace, aD as applyMessageParameterUpdate, aE as controlMessageTypeFromBigInt, aF as fetchTypeFromBigInt, aG as filterTypeFromBigInt, aH as groupOrderFromNumber, aI as isBytes, aJ as isVarInt, aK as locHeaderExtensionIdFromNumber, aL as messageParameterTypeFromNumber, aM as publishDoneStatusCodeFromBigInt, aN as requestErrorCodeFromBigInt, aO as setupParameterTypeFromNumber, aP as tokenAliasTypeFromNumber, aQ as trackStatusCodeFromBigInt } from './setup_parameter-BOeGq6Mv.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Copyright 2025 The MOQtail Authors
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
declare class Switch {
|
|
21
|
+
requestId: bigint;
|
|
22
|
+
fullTrackName: FullTrackName;
|
|
23
|
+
subscriptionRequestId: bigint;
|
|
24
|
+
parameters: KeyValuePair[];
|
|
25
|
+
constructor(requestId: bigint, fullTrackName: FullTrackName, subscriptionRequestId: bigint, parameters: KeyValuePair[]);
|
|
26
|
+
serialize(): FrozenByteBuffer;
|
|
27
|
+
static parsePayload(buf: BaseByteBuffer): Switch;
|
|
28
|
+
}
|
|
3
29
|
|
|
4
30
|
/**
|
|
5
31
|
* Copyright 2026 The MOQtail Authors
|
|
@@ -51,32 +77,6 @@ declare class CMSFCatalog {
|
|
|
51
77
|
private extractTrackName;
|
|
52
78
|
}
|
|
53
79
|
|
|
54
|
-
/**
|
|
55
|
-
* Copyright 2025 The MOQtail Authors
|
|
56
|
-
*
|
|
57
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
58
|
-
* you may not use this file except in compliance with the License.
|
|
59
|
-
* You may obtain a copy of the License at
|
|
60
|
-
*
|
|
61
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
62
|
-
*
|
|
63
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
64
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
65
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
66
|
-
* See the License for the specific language governing permissions and
|
|
67
|
-
* limitations under the License.
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
|
-
declare class Switch {
|
|
71
|
-
requestId: bigint;
|
|
72
|
-
fullTrackName: FullTrackName;
|
|
73
|
-
subscriptionRequestId: bigint;
|
|
74
|
-
parameters: KeyValuePair[];
|
|
75
|
-
constructor(requestId: bigint, fullTrackName: FullTrackName, subscriptionRequestId: bigint, parameters: KeyValuePair[]);
|
|
76
|
-
serialize(): FrozenByteBuffer;
|
|
77
|
-
static parsePayload(buf: BaseByteBuffer): Switch;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
80
|
/**
|
|
81
81
|
* Copyright 2025 The MOQtail Authors
|
|
82
82
|
*
|
|
@@ -253,29 +253,6 @@ declare namespace TerminationCode {
|
|
|
253
253
|
function tryFrom(code: number): TerminationCode;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
/**
|
|
257
|
-
* Copyright 2025 The MOQtail Authors
|
|
258
|
-
*
|
|
259
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
260
|
-
* you may not use this file except in compliance with the License.
|
|
261
|
-
* You may obtain a copy of the License at
|
|
262
|
-
*
|
|
263
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
264
|
-
*
|
|
265
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
266
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
267
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
268
|
-
* See the License for the specific language governing permissions and
|
|
269
|
-
* limitations under the License.
|
|
270
|
-
*/
|
|
271
|
-
declare enum LOCHeaderExtensionId {
|
|
272
|
-
CaptureTimestamp = 2,
|
|
273
|
-
VideoFrameMarking = 4,
|
|
274
|
-
AudioLevel = 6,
|
|
275
|
-
VideoConfig = 13
|
|
276
|
-
}
|
|
277
|
-
declare function locHeaderExtensionIdFromNumber(value: number): LOCHeaderExtensionId;
|
|
278
|
-
|
|
279
256
|
/**
|
|
280
257
|
* Copyright 2025 The MOQtail Authors
|
|
281
258
|
*
|
|
@@ -408,4 +385,58 @@ declare class ExtensionHeaders {
|
|
|
408
385
|
static fromKeyValuePairs(kvps: KeyValuePair[]): ExtensionHeader[];
|
|
409
386
|
}
|
|
410
387
|
|
|
411
|
-
|
|
388
|
+
/**
|
|
389
|
+
* Copyright 2026 The MOQtail Authors
|
|
390
|
+
*
|
|
391
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
392
|
+
* you may not use this file except in compliance with the License.
|
|
393
|
+
* You may obtain a copy of the License at
|
|
394
|
+
*
|
|
395
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
396
|
+
*
|
|
397
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
398
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
399
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
400
|
+
* See the License for the specific language governing permissions and
|
|
401
|
+
* limitations under the License.
|
|
402
|
+
*/
|
|
403
|
+
|
|
404
|
+
declare class ImmutableExtensionsObjectExtension {
|
|
405
|
+
readonly extensions: KeyValuePair[];
|
|
406
|
+
static readonly TYPE = TrackExtensionType.ImmutableExtensions;
|
|
407
|
+
constructor(extensions: KeyValuePair[]);
|
|
408
|
+
toKeyValuePair(): KeyValuePair;
|
|
409
|
+
static fromKeyValuePair(pair: KeyValuePair): ImmutableExtensionsObjectExtension | undefined;
|
|
410
|
+
}
|
|
411
|
+
declare class PriorGroupIdGapExtension {
|
|
412
|
+
readonly gap: bigint;
|
|
413
|
+
static readonly TYPE = TrackExtensionType.PriorGroupIdGap;
|
|
414
|
+
constructor(gap: bigint);
|
|
415
|
+
toKeyValuePair(): KeyValuePair;
|
|
416
|
+
static fromKeyValuePair(pair: KeyValuePair): PriorGroupIdGapExtension | undefined;
|
|
417
|
+
}
|
|
418
|
+
declare class PriorObjectIdGapExtension {
|
|
419
|
+
readonly gap: bigint;
|
|
420
|
+
static readonly TYPE = TrackExtensionType.PriorObjectIdGap;
|
|
421
|
+
constructor(gap: bigint);
|
|
422
|
+
toKeyValuePair(): KeyValuePair;
|
|
423
|
+
static fromKeyValuePair(pair: KeyValuePair): PriorObjectIdGapExtension | undefined;
|
|
424
|
+
}
|
|
425
|
+
declare class UnknownObjectExtension {
|
|
426
|
+
readonly kvp: KeyValuePair;
|
|
427
|
+
constructor(kvp: KeyValuePair);
|
|
428
|
+
toKeyValuePair(): KeyValuePair;
|
|
429
|
+
}
|
|
430
|
+
type ObjectExtension = ImmutableExtensionsObjectExtension | PriorGroupIdGapExtension | PriorObjectIdGapExtension | UnknownObjectExtension;
|
|
431
|
+
declare namespace ObjectExtension {
|
|
432
|
+
function fromKeyValuePair(pair: KeyValuePair): ObjectExtension;
|
|
433
|
+
function toKeyValuePair(ext: ObjectExtension): KeyValuePair;
|
|
434
|
+
function deserializeAll(buf: BaseByteBuffer): ObjectExtension[];
|
|
435
|
+
function serializeInto(exts: ObjectExtension[], payload: ByteBuffer): void;
|
|
436
|
+
function isImmutableExtensions(ext: ObjectExtension): ext is ImmutableExtensionsObjectExtension;
|
|
437
|
+
function isPriorGroupIdGap(ext: ObjectExtension): ext is PriorGroupIdGapExtension;
|
|
438
|
+
function isPriorObjectIdGap(ext: ObjectExtension): ext is PriorObjectIdGapExtension;
|
|
439
|
+
function isUnknown(ext: ObjectExtension): ext is UnknownObjectExtension;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export { AudioLevel, BaseByteBuffer, ByteBuffer, type CMSF, CMSFCatalog, type CMSFTrack, CaptureTimestamp, CastingError, ExtensionHeader, ExtensionHeaders, FrozenByteBuffer, FullTrackName, ImmutableExtensionsObjectExtension, InternalError, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCHeaderExtensionId, LengthExceedsMaxError, MOQtailError, NotEnoughBytesError, ObjectExtension, PriorGroupIdGapExtension, PriorObjectIdGapExtension, ProtocolViolationError, RequestIdError, Switch, TerminationCode, TerminationError, TimeoutError, TrackExtensionType, TrackNameError, UnknownObjectExtension, VarIntOverflowError, VideoConfig, VideoFrameMarking };
|
package/dist/model.d.ts
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AuthTokenVariant, a as AuthorizationToken,
|
|
1
|
+
import { u as FullTrackName, K as KeyValuePair, t as FrozenByteBuffer, B as BaseByteBuffer, L as LOCHeaderExtensionId, av as TrackExtensionType, b as ByteBuffer } from './setup_parameter-BOeGq6Mv.js';
|
|
2
|
+
export { A as AuthTokenVariant, a as AuthorizationToken, C as ClientSetup, c as ControlMessage, d as ControlMessageType, D as Datagram, e as DefaultPublisherGroupOrderExtension, f as DefaultPublisherPriorityExtension, g as DeliveryTimeout, h as DeliveryTimeoutExtension, i as DynamicGroupsExtension, E as EndOfRangeKind, j as Expires, F as Fetch, k as FetchCancel, l as FetchHeader, m as FetchHeaderType, n as FetchObject, o as FetchObjectContext, p as FetchOk, q as FetchType, r as FilterType, s as Forward, G as GoAway, v as GroupOrder, w as GroupOrderParam, H as Header, I as ImmutableExtensionsExtension, x as LargestObject, y as Location, M as MAX_FULL_TRACK_NAME_LENGTH, z as MAX_NAMESPACE_TUPLE_COUNT, J as MAX_REASON_PHRASE_LEN, N as MaxAuthTokenCacheSize, O as MaxCacheDurationExtension, P as MaxRequestId, Q as MaxRequestIdParameter, R as MessageParameter, S as MessageParameterType, T as MessageParameters, U as MoqtObject, V as Namespace, W as NamespaceDone, X as NamespaceSubscribeOptions, Y as NewGroupRequest, Z as ObjectDatagramType, _ as ObjectForwardingPreference, $ as ObjectStatus, a0 as Parameter, a1 as Path, a2 as Publish, a3 as PublishDone, a4 as PublishDoneStatusCode, a5 as PublishNamespace, a6 as PublishNamespaceCancel, a7 as PublishNamespaceDone, a8 as PublishOk, a9 as ReasonPhrase, aa as RequestError, ab as RequestErrorCode, ac as RequestIdMap, ad as RequestOk, ae as RequestUpdate, af as RequestsBlocked, ag as SUPPORTED_VERSIONS, ah as ServerSetup, ai as SetupParameter, aj as SetupParameterType, ak as SetupParameters, al as SubgroupHeader, am as SubgroupHeaderType, an as SubgroupObject, ao as Subscribe, ap as SubscribeNamespace, aq as SubscribeOk, ar as SubscriberPriority, as as SubscriptionFilter, at as TokenAliasType, au as TrackExtension, aw as TrackStatus, ax as TrackStatusCode, ay as Tuple, az as TupleField, aA as UnknownTrackExtension, aB as Unsubscribe, aC as UnsubscribeNamespace, aD as applyMessageParameterUpdate, aE as controlMessageTypeFromBigInt, aF as fetchTypeFromBigInt, aG as filterTypeFromBigInt, aH as groupOrderFromNumber, aI as isBytes, aJ as isVarInt, aK as locHeaderExtensionIdFromNumber, aL as messageParameterTypeFromNumber, aM as publishDoneStatusCodeFromBigInt, aN as requestErrorCodeFromBigInt, aO as setupParameterTypeFromNumber, aP as tokenAliasTypeFromNumber, aQ as trackStatusCodeFromBigInt } from './setup_parameter-BOeGq6Mv.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Copyright 2025 The MOQtail Authors
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
declare class Switch {
|
|
21
|
+
requestId: bigint;
|
|
22
|
+
fullTrackName: FullTrackName;
|
|
23
|
+
subscriptionRequestId: bigint;
|
|
24
|
+
parameters: KeyValuePair[];
|
|
25
|
+
constructor(requestId: bigint, fullTrackName: FullTrackName, subscriptionRequestId: bigint, parameters: KeyValuePair[]);
|
|
26
|
+
serialize(): FrozenByteBuffer;
|
|
27
|
+
static parsePayload(buf: BaseByteBuffer): Switch;
|
|
28
|
+
}
|
|
3
29
|
|
|
4
30
|
/**
|
|
5
31
|
* Copyright 2026 The MOQtail Authors
|
|
@@ -51,32 +77,6 @@ declare class CMSFCatalog {
|
|
|
51
77
|
private extractTrackName;
|
|
52
78
|
}
|
|
53
79
|
|
|
54
|
-
/**
|
|
55
|
-
* Copyright 2025 The MOQtail Authors
|
|
56
|
-
*
|
|
57
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
58
|
-
* you may not use this file except in compliance with the License.
|
|
59
|
-
* You may obtain a copy of the License at
|
|
60
|
-
*
|
|
61
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
62
|
-
*
|
|
63
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
64
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
65
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
66
|
-
* See the License for the specific language governing permissions and
|
|
67
|
-
* limitations under the License.
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
|
-
declare class Switch {
|
|
71
|
-
requestId: bigint;
|
|
72
|
-
fullTrackName: FullTrackName;
|
|
73
|
-
subscriptionRequestId: bigint;
|
|
74
|
-
parameters: KeyValuePair[];
|
|
75
|
-
constructor(requestId: bigint, fullTrackName: FullTrackName, subscriptionRequestId: bigint, parameters: KeyValuePair[]);
|
|
76
|
-
serialize(): FrozenByteBuffer;
|
|
77
|
-
static parsePayload(buf: BaseByteBuffer): Switch;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
80
|
/**
|
|
81
81
|
* Copyright 2025 The MOQtail Authors
|
|
82
82
|
*
|
|
@@ -253,29 +253,6 @@ declare namespace TerminationCode {
|
|
|
253
253
|
function tryFrom(code: number): TerminationCode;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
/**
|
|
257
|
-
* Copyright 2025 The MOQtail Authors
|
|
258
|
-
*
|
|
259
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
260
|
-
* you may not use this file except in compliance with the License.
|
|
261
|
-
* You may obtain a copy of the License at
|
|
262
|
-
*
|
|
263
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
264
|
-
*
|
|
265
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
266
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
267
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
268
|
-
* See the License for the specific language governing permissions and
|
|
269
|
-
* limitations under the License.
|
|
270
|
-
*/
|
|
271
|
-
declare enum LOCHeaderExtensionId {
|
|
272
|
-
CaptureTimestamp = 2,
|
|
273
|
-
VideoFrameMarking = 4,
|
|
274
|
-
AudioLevel = 6,
|
|
275
|
-
VideoConfig = 13
|
|
276
|
-
}
|
|
277
|
-
declare function locHeaderExtensionIdFromNumber(value: number): LOCHeaderExtensionId;
|
|
278
|
-
|
|
279
256
|
/**
|
|
280
257
|
* Copyright 2025 The MOQtail Authors
|
|
281
258
|
*
|
|
@@ -408,4 +385,58 @@ declare class ExtensionHeaders {
|
|
|
408
385
|
static fromKeyValuePairs(kvps: KeyValuePair[]): ExtensionHeader[];
|
|
409
386
|
}
|
|
410
387
|
|
|
411
|
-
|
|
388
|
+
/**
|
|
389
|
+
* Copyright 2026 The MOQtail Authors
|
|
390
|
+
*
|
|
391
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
392
|
+
* you may not use this file except in compliance with the License.
|
|
393
|
+
* You may obtain a copy of the License at
|
|
394
|
+
*
|
|
395
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
396
|
+
*
|
|
397
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
398
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
399
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
400
|
+
* See the License for the specific language governing permissions and
|
|
401
|
+
* limitations under the License.
|
|
402
|
+
*/
|
|
403
|
+
|
|
404
|
+
declare class ImmutableExtensionsObjectExtension {
|
|
405
|
+
readonly extensions: KeyValuePair[];
|
|
406
|
+
static readonly TYPE = TrackExtensionType.ImmutableExtensions;
|
|
407
|
+
constructor(extensions: KeyValuePair[]);
|
|
408
|
+
toKeyValuePair(): KeyValuePair;
|
|
409
|
+
static fromKeyValuePair(pair: KeyValuePair): ImmutableExtensionsObjectExtension | undefined;
|
|
410
|
+
}
|
|
411
|
+
declare class PriorGroupIdGapExtension {
|
|
412
|
+
readonly gap: bigint;
|
|
413
|
+
static readonly TYPE = TrackExtensionType.PriorGroupIdGap;
|
|
414
|
+
constructor(gap: bigint);
|
|
415
|
+
toKeyValuePair(): KeyValuePair;
|
|
416
|
+
static fromKeyValuePair(pair: KeyValuePair): PriorGroupIdGapExtension | undefined;
|
|
417
|
+
}
|
|
418
|
+
declare class PriorObjectIdGapExtension {
|
|
419
|
+
readonly gap: bigint;
|
|
420
|
+
static readonly TYPE = TrackExtensionType.PriorObjectIdGap;
|
|
421
|
+
constructor(gap: bigint);
|
|
422
|
+
toKeyValuePair(): KeyValuePair;
|
|
423
|
+
static fromKeyValuePair(pair: KeyValuePair): PriorObjectIdGapExtension | undefined;
|
|
424
|
+
}
|
|
425
|
+
declare class UnknownObjectExtension {
|
|
426
|
+
readonly kvp: KeyValuePair;
|
|
427
|
+
constructor(kvp: KeyValuePair);
|
|
428
|
+
toKeyValuePair(): KeyValuePair;
|
|
429
|
+
}
|
|
430
|
+
type ObjectExtension = ImmutableExtensionsObjectExtension | PriorGroupIdGapExtension | PriorObjectIdGapExtension | UnknownObjectExtension;
|
|
431
|
+
declare namespace ObjectExtension {
|
|
432
|
+
function fromKeyValuePair(pair: KeyValuePair): ObjectExtension;
|
|
433
|
+
function toKeyValuePair(ext: ObjectExtension): KeyValuePair;
|
|
434
|
+
function deserializeAll(buf: BaseByteBuffer): ObjectExtension[];
|
|
435
|
+
function serializeInto(exts: ObjectExtension[], payload: ByteBuffer): void;
|
|
436
|
+
function isImmutableExtensions(ext: ObjectExtension): ext is ImmutableExtensionsObjectExtension;
|
|
437
|
+
function isPriorGroupIdGap(ext: ObjectExtension): ext is PriorGroupIdGapExtension;
|
|
438
|
+
function isPriorObjectIdGap(ext: ObjectExtension): ext is PriorObjectIdGapExtension;
|
|
439
|
+
function isUnknown(ext: ObjectExtension): ext is UnknownObjectExtension;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export { AudioLevel, BaseByteBuffer, ByteBuffer, type CMSF, CMSFCatalog, type CMSFTrack, CaptureTimestamp, CastingError, ExtensionHeader, ExtensionHeaders, FrozenByteBuffer, FullTrackName, ImmutableExtensionsObjectExtension, InternalError, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCHeaderExtensionId, LengthExceedsMaxError, MOQtailError, NotEnoughBytesError, ObjectExtension, PriorGroupIdGapExtension, PriorObjectIdGapExtension, ProtocolViolationError, RequestIdError, Switch, TerminationCode, TerminationError, TimeoutError, TrackExtensionType, TrackNameError, UnknownObjectExtension, VarIntOverflowError, VideoConfig, VideoFrameMarking };
|