moqtail 0.15.0 → 0.16.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-BviQ20Lc.cjs → client-DQ5aGbLR.cjs} +1089 -1074
- package/dist/client-DUzLw_Y8.d.cts +1932 -0
- package/dist/{client-zi0lmuIL.mjs → client-DVi4Nh1J.mjs} +930 -921
- package/dist/client-epHqMdHm.d.mts +1932 -0
- package/dist/client.cjs +121 -4
- package/dist/client.d.cts +23 -1944
- package/dist/client.d.mts +23 -1944
- package/dist/client.mjs +117 -2
- package/dist/emitter-UbeRcbuf.mjs +109 -0
- package/dist/{logger-c2NoQqtx.cjs → emitter-qNJYD3yQ.cjs} +61 -2
- package/dist/index-B-BMK-b6.d.mts +2090 -0
- package/dist/index-BtemTtwe.d.cts +2090 -0
- package/dist/{index-BY6e1obL.d.cts → index-CNn9BgO6.d.mts} +119 -324
- package/dist/index.cjs +38 -34
- 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 +122 -340
- package/dist/model.d.cts +2896 -2
- package/dist/model.d.mts +17 -2
- package/dist/model.mjs +122 -340
- package/dist/player/component.cjs +317 -0
- package/dist/player/component.d.cts +50 -0
- package/dist/player/component.d.mts +50 -0
- package/dist/player/component.mjs +315 -0
- package/dist/player-CJayEzwt.cjs +6750 -0
- package/dist/player-DcctWhyM.mjs +6599 -0
- package/dist/player.cjs +27 -0
- package/dist/player.d.cts +17 -0
- package/dist/player.d.mts +17 -0
- package/dist/player.mjs +1 -0
- package/dist/rolldown-runtime-CmQyd0Gu.cjs +27 -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 +45 -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
package/dist/player.cjs
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_player = require("./player-CJayEzwt.cjs");
|
|
3
|
+
exports.ABR = require_player.ABR;
|
|
4
|
+
exports.BaseElement = require_player.BaseElement;
|
|
5
|
+
exports.CONNECTION_CAPACITY = require_player.CONNECTION_CAPACITY;
|
|
6
|
+
exports.CapabilityCode = require_player.CapabilityCode;
|
|
7
|
+
exports.DEFAULT_PRIORITY = require_player.DEFAULT_PRIORITY;
|
|
8
|
+
exports.DefaultAbrController = require_player.DefaultAbrController;
|
|
9
|
+
exports.MEDIA_SINK = require_player.MEDIA_SINK;
|
|
10
|
+
exports.MEDIA_SOURCE = require_player.MEDIA_SOURCE;
|
|
11
|
+
exports.MOQtailPlayer = require_player.MOQtailPlayer;
|
|
12
|
+
exports.MSE = require_player.MSE;
|
|
13
|
+
exports.Pad = require_player.Pad;
|
|
14
|
+
exports.PlayerError = require_player.PlayerError;
|
|
15
|
+
exports.SSTS_ALGORITHMS = require_player.SSTS_ALGORITHMS;
|
|
16
|
+
exports.SinkElement = require_player.SinkElement;
|
|
17
|
+
exports.SourceElement = require_player.SourceElement;
|
|
18
|
+
exports.SstsSource = require_player.SstsSource;
|
|
19
|
+
exports.TransformElement = require_player.TransformElement;
|
|
20
|
+
exports.abr = require_player.abr;
|
|
21
|
+
exports.defineElement = require_player.defineElement;
|
|
22
|
+
exports.definePlugin = require_player.definePlugin;
|
|
23
|
+
exports.formatMsfUrl = require_player.formatMsfUrl;
|
|
24
|
+
exports.hasInterface = require_player.hasInterface;
|
|
25
|
+
exports.liveBuffer = require_player.liveBuffer;
|
|
26
|
+
exports.parseMsfUrl = require_player.parseMsfUrl;
|
|
27
|
+
exports.ssts = require_player.ssts;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 The MOQtail Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { $ as ABR, A as CONNECTION_CAPACITY, B as Capabilities, C as TimelineEvent, Ct as formatMsfUrl, D as SinkElement, E as ElementEvents, F as PadProperties, G as ElementDefinition, H as CapabilityBundles, I as PadSignal, J as SinkElementDefinition, K as Identifiers, L as ElementContext, M as PadEvent, N as PadItem, O as SourceElement, P as PadOutput, Q as hasInterface, R as ElementLoadRequest, S as CatalogElement, St as TimeRange, T as BaseElement, U as CapabilityCode, V as Capability, W as DEFAULT_PRIORITY, X as TransformElementDefinition, Y as SourceElementDefinition, Z as defineElement, _ as Feature, _t as PlayerError, a as abr, at as MediaSinkElement, b as definePlugin, bt as LocationRange, c as liveBuffer, ct as Rendition, d as MOQtailPlayerOptions, dt as TimelineReader, et as CatalogReader, f as PlayerEvents, ft as Catalog, g as BufferController, gt as InitData, h as AbrController, ht as MediaTimelineTemplate, i as SstsSource, it as MEDIA_SOURCE, j as Pad, k as TransformElement, l as MSE, lt as RequestHooks, m as PlayerState, mt as CatalogTrack, n as ssts, nt as InterfaceKey, o as DefaultAbrController, ot as MediaSourceElement, p as StreamType, pt as CatalogJson, q as Provided, r as SSTS_ALGORITHMS, rt as MEDIA_SINK, s as LiveBufferConfig, st as MediaSourceOptions, t as SstsConfig, tt as ElementInterfaces, u as MOQtailPlayer, ut as SwitchingSetOptions, v as Plugin, vt as PlayerErrorCategory, w as TimelineRecord, wt as parseMsfUrl, x as MSEOptions, xt as MsfSource, y as PluginDefinition, yt as PlayerErrorCode, z as PlayerHandle } from "./index-BtemTtwe.cjs";
|
|
17
|
+
export { ABR, type AbrController, BaseElement, type BufferController, CONNECTION_CAPACITY, type Capabilities, type Capability, type CapabilityBundles, CapabilityCode, type Catalog, type CatalogElement, type CatalogJson, type CatalogReader, type CatalogTrack, DEFAULT_PRIORITY, DefaultAbrController, type ElementContext, type ElementDefinition, type ElementEvents, type ElementInterfaces, type ElementLoadRequest, type Feature, type Identifiers, type InitData, type InterfaceKey, type LiveBufferConfig, type LocationRange, MEDIA_SINK, MEDIA_SOURCE, MOQtailPlayer, type MOQtailPlayerOptions, MSE, type MSEOptions, type MediaSinkElement, type MediaSourceElement, type MediaSourceOptions, type MediaTimelineTemplate, type MsfSource, Pad, type PadEvent, type PadItem, type PadOutput, type PadProperties, type PadSignal, PlayerError, type PlayerErrorCategory, type PlayerErrorCode, type PlayerEvents, type PlayerHandle, type PlayerState, type Plugin, type PluginDefinition, type Provided, type Rendition, type RequestHooks, SSTS_ALGORITHMS, SinkElement, type SinkElementDefinition, SourceElement, type SourceElementDefinition, type SstsConfig, SstsSource, type StreamType, type SwitchingSetOptions, type TimeRange, type TimelineEvent, type TimelineReader, type TimelineRecord, TransformElement, type TransformElementDefinition, abr, defineElement, definePlugin, formatMsfUrl, hasInterface, liveBuffer, parseMsfUrl, ssts };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 The MOQtail Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { $ as ABR, A as CONNECTION_CAPACITY, B as Capabilities, C as TimelineEvent, Ct as formatMsfUrl, D as SinkElement, E as ElementEvents, F as PadProperties, G as ElementDefinition, H as CapabilityBundles, I as PadSignal, J as SinkElementDefinition, K as Identifiers, L as ElementContext, M as PadEvent, N as PadItem, O as SourceElement, P as PadOutput, Q as hasInterface, R as ElementLoadRequest, S as CatalogElement, St as TimeRange, T as BaseElement, U as CapabilityCode, V as Capability, W as DEFAULT_PRIORITY, X as TransformElementDefinition, Y as SourceElementDefinition, Z as defineElement, _ as Feature, _t as PlayerError, a as abr, at as MediaSinkElement, b as definePlugin, bt as LocationRange, c as liveBuffer, ct as Rendition, d as MOQtailPlayerOptions, dt as TimelineReader, et as CatalogReader, f as PlayerEvents, ft as Catalog, g as BufferController, gt as InitData, h as AbrController, ht as MediaTimelineTemplate, i as SstsSource, it as MEDIA_SOURCE, j as Pad, k as TransformElement, l as MSE, lt as RequestHooks, m as PlayerState, mt as CatalogTrack, n as ssts, nt as InterfaceKey, o as DefaultAbrController, ot as MediaSourceElement, p as StreamType, pt as CatalogJson, q as Provided, r as SSTS_ALGORITHMS, rt as MEDIA_SINK, s as LiveBufferConfig, st as MediaSourceOptions, t as SstsConfig, tt as ElementInterfaces, u as MOQtailPlayer, ut as SwitchingSetOptions, v as Plugin, vt as PlayerErrorCategory, w as TimelineRecord, wt as parseMsfUrl, x as MSEOptions, xt as MsfSource, y as PluginDefinition, yt as PlayerErrorCode, z as PlayerHandle } from "./index-B-BMK-b6.mjs";
|
|
17
|
+
export { ABR, type AbrController, BaseElement, type BufferController, CONNECTION_CAPACITY, type Capabilities, type Capability, type CapabilityBundles, CapabilityCode, type Catalog, type CatalogElement, type CatalogJson, type CatalogReader, type CatalogTrack, DEFAULT_PRIORITY, DefaultAbrController, type ElementContext, type ElementDefinition, type ElementEvents, type ElementInterfaces, type ElementLoadRequest, type Feature, type Identifiers, type InitData, type InterfaceKey, type LiveBufferConfig, type LocationRange, MEDIA_SINK, MEDIA_SOURCE, MOQtailPlayer, type MOQtailPlayerOptions, MSE, type MSEOptions, type MediaSinkElement, type MediaSourceElement, type MediaSourceOptions, type MediaTimelineTemplate, type MsfSource, Pad, type PadEvent, type PadItem, type PadOutput, type PadProperties, type PadSignal, PlayerError, type PlayerErrorCategory, type PlayerErrorCode, type PlayerEvents, type PlayerHandle, type PlayerState, type Plugin, type PluginDefinition, type Provided, type Rendition, type RequestHooks, SSTS_ALGORITHMS, SinkElement, type SinkElementDefinition, SourceElement, type SourceElementDefinition, type SstsConfig, SstsSource, type StreamType, type SwitchingSetOptions, type TimeRange, type TimelineEvent, type TimelineReader, type TimelineRecord, TransformElement, type TransformElementDefinition, abr, defineElement, definePlugin, formatMsfUrl, hasInterface, liveBuffer, parseMsfUrl, ssts };
|
package/dist/player.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { u as ABR, p as BaseElement, _ as CONNECTION_CAPACITY, y as CapabilityCode, b as DEFAULT_PRIORITY, a as DefaultAbrController, d as MEDIA_SINK, f as MEDIA_SOURCE, s as MOQtailPlayer, l as MSE, v as Pad, T as PlayerError, r as SSTS_ALGORITHMS, m as SinkElement, h as SourceElement, n as SstsSource, g as TransformElement, i as abr, x as defineElement, c as definePlugin, C as formatMsfUrl, S as hasInterface, o as liveBuffer, w as parseMsfUrl, t as ssts } from "./player-DcctWhyM.mjs";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
22
|
+
Object.defineProperty(exports, "__toESM", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function() {
|
|
25
|
+
return __toESM;
|
|
26
|
+
}
|
|
27
|
+
});
|
package/dist/util.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
|
|
2
|
+
const require_emitter = require("./emitter-qNJYD3yQ.cjs");
|
|
3
|
+
// src/util/telemetry.ts
|
|
4
4
|
/**
|
|
5
5
|
* Copyright 2025 The MOQtail Authors
|
|
6
6
|
*
|
|
@@ -44,8 +44,7 @@ var NetworkTelemetry = class {
|
|
|
44
44
|
return this.events.reduce((sum, e) => sum + e.latency, 0) / this.events.length;
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
|
|
48
|
-
//#region src/util/clock_normalizer.ts
|
|
47
|
+
// src/util/clock_normalizer.ts
|
|
49
48
|
/**
|
|
50
49
|
* Copyright 2025 The MOQtail Authors
|
|
51
50
|
*
|
|
@@ -118,11 +117,11 @@ var ClockNormalizer = class ClockNormalizer {
|
|
|
118
117
|
};
|
|
119
118
|
}
|
|
120
119
|
};
|
|
121
|
-
//#endregion
|
|
122
120
|
exports.ClockNormalizer = ClockNormalizer;
|
|
123
|
-
exports.
|
|
124
|
-
exports.
|
|
121
|
+
exports.Emitter = require_emitter.Emitter;
|
|
122
|
+
exports.LogLevel = require_emitter.LogLevel;
|
|
123
|
+
exports.Logger = require_emitter.Logger;
|
|
125
124
|
exports.NetworkTelemetry = NetworkTelemetry;
|
|
126
|
-
exports.logger =
|
|
127
|
-
exports.setLogEnabledModules =
|
|
128
|
-
exports.setLogLevel =
|
|
125
|
+
exports.logger = require_emitter.logger;
|
|
126
|
+
exports.setLogEnabledModules = require_emitter.setLogEnabledModules;
|
|
127
|
+
exports.setLogLevel = require_emitter.setLogLevel;
|
package/dist/util.d.cts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { a as setLogLevel, i as setLogEnabledModules, n as Logger, r as logger, t as LogLevel } from "./logger-dEoueCj7.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/util/telemetry.d.ts
|
|
4
1
|
/**
|
|
5
2
|
* Copyright 2025 The MOQtail Authors
|
|
6
3
|
*
|
|
@@ -16,14 +13,27 @@ import { a as setLogLevel, i as setLogEnabledModules, n as Logger, r as logger,
|
|
|
16
13
|
* See the License for the specific language governing permissions and
|
|
17
14
|
* limitations under the License.
|
|
18
15
|
*/
|
|
19
|
-
|
|
16
|
+
import { a as setLogLevel, i as setLogEnabledModules, n as Logger, o as Emitter, r as logger, t as LogLevel } from "./logger-B8IYkljn.cjs";
|
|
17
|
+
/**
|
|
18
|
+
* Copyright 2025 The MOQtail Authors
|
|
19
|
+
*
|
|
20
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
21
|
+
* you may not use this file except in compliance with the License.
|
|
22
|
+
* You may obtain a copy of the License at
|
|
23
|
+
*
|
|
24
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
25
|
+
*
|
|
26
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
28
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
29
|
+
* See the License for the specific language governing permissions and
|
|
30
|
+
* limitations under the License.
|
|
31
|
+
*/
|
|
32
|
+
export declare class NetworkTelemetry {
|
|
20
33
|
private events;
|
|
21
34
|
private windowMs;
|
|
22
35
|
constructor(windowMs?: number);
|
|
23
|
-
push({
|
|
24
|
-
latency,
|
|
25
|
-
size
|
|
26
|
-
}: {
|
|
36
|
+
push({ latency, size }: {
|
|
27
37
|
latency: number;
|
|
28
38
|
size: number;
|
|
29
39
|
}): void;
|
|
@@ -31,8 +41,6 @@ declare class NetworkTelemetry {
|
|
|
31
41
|
get throughput(): number;
|
|
32
42
|
get latency(): number;
|
|
33
43
|
}
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region src/util/clock_normalizer.d.ts
|
|
36
44
|
/**
|
|
37
45
|
* Copyright 2025 The MOQtail Authors
|
|
38
46
|
*
|
|
@@ -48,7 +56,7 @@ declare class NetworkTelemetry {
|
|
|
48
56
|
* See the License for the specific language governing permissions and
|
|
49
57
|
* limitations under the License.
|
|
50
58
|
*/
|
|
51
|
-
declare class ClockNormalizer {
|
|
59
|
+
export declare class ClockNormalizer {
|
|
52
60
|
private offset;
|
|
53
61
|
private timeServerUrl;
|
|
54
62
|
private numSamples;
|
|
@@ -60,5 +68,4 @@ declare class ClockNormalizer {
|
|
|
60
68
|
private static calculateSkew;
|
|
61
69
|
private static takeSingleSample;
|
|
62
70
|
}
|
|
63
|
-
|
|
64
|
-
export { ClockNormalizer, LogLevel, Logger, NetworkTelemetry, logger, setLogEnabledModules, setLogLevel };
|
|
71
|
+
export { Emitter, LogLevel, Logger, logger, setLogEnabledModules, setLogLevel };
|
package/dist/util.d.mts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { a as setLogLevel, i as setLogEnabledModules, n as Logger, r as logger, t as LogLevel } from "./logger-dEoueCj7.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/util/telemetry.d.ts
|
|
4
1
|
/**
|
|
5
2
|
* Copyright 2025 The MOQtail Authors
|
|
6
3
|
*
|
|
@@ -16,14 +13,27 @@ import { a as setLogLevel, i as setLogEnabledModules, n as Logger, r as logger,
|
|
|
16
13
|
* See the License for the specific language governing permissions and
|
|
17
14
|
* limitations under the License.
|
|
18
15
|
*/
|
|
19
|
-
|
|
16
|
+
import { a as setLogLevel, i as setLogEnabledModules, n as Logger, o as Emitter, r as logger, t as LogLevel } from "./logger-B8IYkljn.mjs";
|
|
17
|
+
/**
|
|
18
|
+
* Copyright 2025 The MOQtail Authors
|
|
19
|
+
*
|
|
20
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
21
|
+
* you may not use this file except in compliance with the License.
|
|
22
|
+
* You may obtain a copy of the License at
|
|
23
|
+
*
|
|
24
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
25
|
+
*
|
|
26
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
28
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
29
|
+
* See the License for the specific language governing permissions and
|
|
30
|
+
* limitations under the License.
|
|
31
|
+
*/
|
|
32
|
+
export declare class NetworkTelemetry {
|
|
20
33
|
private events;
|
|
21
34
|
private windowMs;
|
|
22
35
|
constructor(windowMs?: number);
|
|
23
|
-
push({
|
|
24
|
-
latency,
|
|
25
|
-
size
|
|
26
|
-
}: {
|
|
36
|
+
push({ latency, size }: {
|
|
27
37
|
latency: number;
|
|
28
38
|
size: number;
|
|
29
39
|
}): void;
|
|
@@ -31,8 +41,6 @@ declare class NetworkTelemetry {
|
|
|
31
41
|
get throughput(): number;
|
|
32
42
|
get latency(): number;
|
|
33
43
|
}
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region src/util/clock_normalizer.d.ts
|
|
36
44
|
/**
|
|
37
45
|
* Copyright 2025 The MOQtail Authors
|
|
38
46
|
*
|
|
@@ -48,7 +56,7 @@ declare class NetworkTelemetry {
|
|
|
48
56
|
* See the License for the specific language governing permissions and
|
|
49
57
|
* limitations under the License.
|
|
50
58
|
*/
|
|
51
|
-
declare class ClockNormalizer {
|
|
59
|
+
export declare class ClockNormalizer {
|
|
52
60
|
private offset;
|
|
53
61
|
private timeServerUrl;
|
|
54
62
|
private numSamples;
|
|
@@ -60,5 +68,4 @@ declare class ClockNormalizer {
|
|
|
60
68
|
private static calculateSkew;
|
|
61
69
|
private static takeSingleSample;
|
|
62
70
|
}
|
|
63
|
-
|
|
64
|
-
export { ClockNormalizer, LogLevel, Logger, NetworkTelemetry, logger, setLogEnabledModules, setLogLevel };
|
|
71
|
+
export { Emitter, LogLevel, Logger, logger, setLogEnabledModules, setLogLevel };
|
package/dist/util.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
1
|
+
import { a as setLogEnabledModules, i as logger, n as LogLevel, o as setLogLevel, r as Logger, t as Emitter } from "./emitter-UbeRcbuf.mjs";
|
|
2
|
+
// src/util/telemetry.ts
|
|
3
3
|
/**
|
|
4
4
|
* Copyright 2025 The MOQtail Authors
|
|
5
5
|
*
|
|
@@ -43,8 +43,7 @@ var NetworkTelemetry = class {
|
|
|
43
43
|
return this.events.reduce((sum, e) => sum + e.latency, 0) / this.events.length;
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
|
|
47
|
-
//#region src/util/clock_normalizer.ts
|
|
46
|
+
// src/util/clock_normalizer.ts
|
|
48
47
|
/**
|
|
49
48
|
* Copyright 2025 The MOQtail Authors
|
|
50
49
|
*
|
|
@@ -117,5 +116,4 @@ var ClockNormalizer = class ClockNormalizer {
|
|
|
117
116
|
};
|
|
118
117
|
}
|
|
119
118
|
};
|
|
120
|
-
|
|
121
|
-
export { ClockNormalizer, LogLevel, Logger, NetworkTelemetry, logger, setLogEnabledModules, setLogLevel };
|
|
119
|
+
export { ClockNormalizer, Emitter, LogLevel, Logger, NetworkTelemetry, logger, setLogEnabledModules, setLogLevel };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moqtail",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Media Over QUIC Transport client implementation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -63,6 +63,26 @@
|
|
|
63
63
|
"default": "./dist/model.cjs"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
+
"./player": {
|
|
67
|
+
"import": {
|
|
68
|
+
"types": "./dist/player.d.mts",
|
|
69
|
+
"default": "./dist/player.mjs"
|
|
70
|
+
},
|
|
71
|
+
"require": {
|
|
72
|
+
"types": "./dist/player.d.cts",
|
|
73
|
+
"default": "./dist/player.cjs"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"./player/component": {
|
|
77
|
+
"import": {
|
|
78
|
+
"types": "./dist/player/component.d.mts",
|
|
79
|
+
"default": "./dist/player/component.mjs"
|
|
80
|
+
},
|
|
81
|
+
"require": {
|
|
82
|
+
"types": "./dist/player/component.d.cts",
|
|
83
|
+
"default": "./dist/player/component.cjs"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
66
86
|
"./util": {
|
|
67
87
|
"import": {
|
|
68
88
|
"types": "./dist/util.d.mts",
|
|
@@ -81,15 +101,35 @@
|
|
|
81
101
|
"test": "vitest",
|
|
82
102
|
"format": "prettier --check .",
|
|
83
103
|
"test:run": "vitest run",
|
|
104
|
+
"test:browser": "vitest run --config vitest.browser.config.ts",
|
|
84
105
|
"docs": "typedoc"
|
|
85
106
|
},
|
|
86
107
|
"devDependencies": {
|
|
87
|
-
"@microsoft/api-extractor": "^7.
|
|
108
|
+
"@microsoft/api-extractor": "^7.60.1",
|
|
88
109
|
"@tsconfig/strictest": "^2.0.8",
|
|
89
|
-
"
|
|
90
|
-
"
|
|
110
|
+
"@vitest/browser-playwright": "5.1.0",
|
|
111
|
+
"custom-media-element": "^1.4.7",
|
|
112
|
+
"media-tracks": "^0.3.5",
|
|
113
|
+
"playwright": "^1.65.0",
|
|
114
|
+
"tsdown": "^0.23.7",
|
|
115
|
+
"tslib": "^2.9.1",
|
|
91
116
|
"typedoc": "^0.28.20",
|
|
92
117
|
"typescript": "^6.0.3",
|
|
93
|
-
"vitest": "^5.0
|
|
118
|
+
"vitest": "^5.1.0"
|
|
119
|
+
},
|
|
120
|
+
"peerDependencies": {
|
|
121
|
+
"custom-media-element": "^1.4.7",
|
|
122
|
+
"media-tracks": "^0.3.5"
|
|
123
|
+
},
|
|
124
|
+
"peerDependenciesMeta": {
|
|
125
|
+
"custom-media-element": {
|
|
126
|
+
"optional": true
|
|
127
|
+
},
|
|
128
|
+
"media-tracks": {
|
|
129
|
+
"optional": true
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"dependencies": {
|
|
133
|
+
"valibot": "^1.5.0"
|
|
94
134
|
}
|
|
95
135
|
}
|