mattebox 0.15.0 → 0.16.1
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/dist/cdn/mattebox.dash-drm.min.js +3 -3
- package/dist/cdn/mattebox.dash-ll.min.js +3 -3
- package/dist/cdn/mattebox.dash.min.js +3 -3
- package/dist/cdn/mattebox.dual-drm.min.js +3 -3
- package/dist/cdn/mattebox.dual-ll.min.js +3 -3
- package/dist/cdn/mattebox.dual-ts-drm.min.js +3 -3
- package/dist/cdn/mattebox.dual-ts.min.js +3 -3
- package/dist/cdn/mattebox.dual.min.js +3 -3
- package/dist/cdn/mattebox.hls-drm.min.js +3 -3
- package/dist/cdn/mattebox.hls-ll.min.js +3 -3
- package/dist/cdn/mattebox.hls-ts-drm.min.js +3 -3
- package/dist/cdn/mattebox.hls-ts.min.js +3 -3
- package/dist/cdn/mattebox.hls.min.js +3 -3
- package/dist/cdn/mattebox.kernel.min.js +1 -1
- package/dist/cdn/mattebox.min.js +6 -6
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/asyncToGenerator.js +1 -2
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/defineProperty.js +1 -2
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/objectSpread2.js +1 -2
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/objectWithoutProperties.js +1 -2
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/objectWithoutPropertiesLoose.js +1 -2
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPrimitive.js +1 -2
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPropertyKey.js +1 -2
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/typeof.js +1 -2
- package/dist/es2015/containers/adts.js +1 -2
- package/dist/es2015/containers/captions.js +1 -2
- package/dist/es2015/containers/codec-probe/index.js +1 -2
- package/dist/es2015/containers/emsg.js +1 -2
- package/dist/es2015/containers/fmp4/fit.js +1 -2
- package/dist/es2015/containers/fmp4/writer.js +1 -2
- package/dist/es2015/containers/id3.js +2 -3
- package/dist/es2015/containers/metadata.js +1 -2
- package/dist/es2015/containers/mp4-box/index.js +1 -2
- package/dist/es2015/containers/packed-audio/index.js +1 -2
- package/dist/es2015/containers/scte35.js +2 -3
- package/dist/es2015/containers/sei.js +1 -2
- package/dist/es2015/containers/ts-transmux/demux.js +1 -2
- package/dist/es2015/containers/ts-transmux/h264.js +2 -3
- package/dist/es2015/containers/ts-transmux/h265.js +2 -3
- package/dist/es2015/containers/ts-transmux/index.js +2 -3
- package/dist/es2015/containers/ts-transmux/runner.js +3 -4
- package/dist/es2015/containers/ts-transmux/serve.js +1 -2
- package/dist/es2015/containers/ts-transmux/sniff.js +0 -1
- package/dist/es2015/containers/ts-transmux/source.js +1 -2
- package/dist/es2015/containers/ts-transmux/transmux.js +2 -3
- package/dist/es2015/containers/ts-transmux/transmux.worker.js +1 -2
- package/dist/es2015/containers/webvtt.js +2 -3
- package/dist/es2015/containers/wvtt.js +2 -3
- package/dist/es2015/eme/index.js +3 -4
- package/dist/es2015/index.js +5 -6
- package/dist/es2015/kernel/append-queue.js +2 -3
- package/dist/es2015/kernel/base64.js +1 -2
- package/dist/es2015/kernel/bus.js +1 -2
- package/dist/es2015/kernel/characteristics.js +20 -3
- package/dist/es2015/kernel/context.js +1 -2
- package/dist/es2015/kernel/dry-run.js +2 -3
- package/dist/es2015/kernel/effects.js +1 -2
- package/dist/es2015/kernel/evictor.js +1 -2
- package/dist/es2015/kernel/lifecycle.js +1 -2
- package/dist/es2015/kernel/loader.js +1 -2
- package/dist/es2015/kernel/mime.js +1 -2
- package/dist/es2015/kernel/mse.js +2 -3
- package/dist/es2015/kernel/prepare.js +3 -4
- package/dist/es2015/kernel/presentation.js +11 -3
- package/dist/es2015/kernel/reducer.js +5 -6
- package/dist/es2015/kernel/refresh.js +2 -3
- package/dist/es2015/kernel/rendition-select.js +3 -4
- package/dist/es2015/kernel/scheduler.js +2 -3
- package/dist/es2015/kernel/sinks/caption-tracks.js +1 -2
- package/dist/es2015/kernel/sinks/metadata-sink.js +1 -2
- package/dist/es2015/kernel/sinks/mse-sink.js +1 -2
- package/dist/es2015/kernel/sinks/native-sync.js +1 -2
- package/dist/es2015/kernel/sinks/text-formats.js +1 -2
- package/dist/es2015/kernel/sinks/text-track-sink.js +1 -2
- package/dist/es2015/kernel/timeline.js +2 -3
- package/dist/es2015/kernel/trace.js +1 -2
- package/dist/es2015/kernel/track-registry.js +1 -2
- package/dist/es2015/kernel/transport.js +9 -9
- package/dist/es2015/kernel/url.js +1 -2
- package/dist/es2015/kernel/watchdog.js +1 -2
- package/dist/es2015/presets/dash/index.js +1 -2
- package/dist/es2015/presets/dash-drm/index.js +1 -2
- package/dist/es2015/presets/dash-ll/index.js +1 -2
- package/dist/es2015/presets/define.js +3 -4
- package/dist/es2015/presets/dual/index.js +1 -2
- package/dist/es2015/presets/dual-drm/index.js +1 -2
- package/dist/es2015/presets/dual-ll/index.js +1 -2
- package/dist/es2015/presets/dual-ts/index.js +1 -2
- package/dist/es2015/presets/dual-ts-drm/index.js +1 -2
- package/dist/es2015/presets/full/index.js +1 -2
- package/dist/es2015/presets/hls/index.js +1 -2
- package/dist/es2015/presets/hls-drm/index.js +1 -2
- package/dist/es2015/presets/hls-ll/index.js +1 -2
- package/dist/es2015/presets/hls-ts/index.js +1 -2
- package/dist/es2015/presets/hls-ts-drm/index.js +1 -2
- package/dist/es2015/presets/kernel/index.js +1 -2
- package/dist/es2015/presets/tiers.js +1 -2
- package/dist/es2015/protocols/adapter-shared.js +1 -2
- package/dist/es2015/protocols/dash-cmaf/index.js +4 -4
- package/dist/es2015/protocols/dash-cmaf/parse.js +2 -3
- package/dist/es2015/protocols/dash-cmaf/periods-runtime.js +2 -3
- package/dist/es2015/protocols/dash-cmaf/periods.js +2 -3
- package/dist/es2015/protocols/dash-live/index.js +5 -4
- package/dist/es2015/protocols/dash-ll/index.js +1 -2
- package/dist/es2015/protocols/dimensions.js +1 -2
- package/dist/es2015/protocols/hls-cmaf/index.js +6 -5
- package/dist/es2015/protocols/hls-cmaf/lexer.js +1 -2
- package/dist/es2015/protocols/hls-cmaf/parse.js +65 -18
- package/dist/es2015/protocols/hls-cmaf/unavailable.js +5 -5
- package/dist/es2015/protocols/hls-live/index.js +5 -5
- package/dist/es2015/protocols/hls-ll/index.js +1 -2
- package/dist/es2015/protocols/hls-ll/parse.js +2 -3
- package/dist/es2015/protocols/live-shared.js +1 -2
- package/dist/es2015/stages/abr/index.js +2 -3
- package/dist/es2015/stages/abr-cap-size/index.js +1 -2
- package/dist/es2015/stages/aes-128/index.js +2 -3
- package/dist/es2015/stages/alt-audio/index.js +1 -2
- package/dist/es2015/stages/chapters/index.js +3 -4
- package/dist/es2015/stages/chapters/parse.js +3 -4
- package/dist/es2015/stages/cmaf-timing/index.js +1 -2
- package/dist/es2015/stages/cmcd/index.js +1 -2
- package/dist/es2015/stages/cmsd/index.js +1 -2
- package/dist/es2015/stages/codec-probe/index.js +2 -3
- package/dist/es2015/stages/codec-switch/index.js +1 -2
- package/dist/es2015/stages/content-steering/index.js +2 -3
- package/dist/es2015/stages/drm-shared.js +1 -2
- package/dist/es2015/stages/eme-cenc/index.js +1 -2
- package/dist/es2015/stages/eme-core/index.js +16 -10
- package/dist/es2015/stages/eme-fairplay/index.js +2 -3
- package/dist/es2015/stages/forced-subtitles/index.js +1 -2
- package/dist/es2015/stages/hdr/index.js +2 -3
- package/dist/es2015/stages/live-catchup/index.js +1 -2
- package/dist/es2015/stages/meta-id3/index.js +1 -2
- package/dist/es2015/stages/mp4-box/index.js +1 -2
- package/dist/es2015/stages/nal-scan/index.js +1 -2
- package/dist/es2015/stages/pdt/index.js +1 -2
- package/dist/es2015/stages/qoe/index.js +2 -3
- package/dist/es2015/stages/recovery/index.js +2 -3
- package/dist/es2015/stages/rendition-names/index.js +2 -3
- package/dist/es2015/stages/text-cea608/decode.js +2 -3
- package/dist/es2015/stages/text-cea608/index.js +1 -2
- package/dist/es2015/stages/text-cea708/decode.js +3 -4
- package/dist/es2015/stages/text-cea708/index.js +2 -3
- package/dist/es2015/stages/text-ttml/images.js +1 -2
- package/dist/es2015/stages/text-ttml/index.js +2 -3
- package/dist/es2015/stages/text-ttml/parse.js +2 -3
- package/dist/es2015/stages/text-webvtt/index.js +1 -2
- package/dist/es2015/stages/text-webvtt-segmented/index.js +1 -2
- package/dist/es2015/stages/thumbnails/index.js +2 -3
- package/dist/es2015/stages/timed-metadata/index.js +2 -3
- package/dist/es2015/stages/trick-play/index.js +2 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/kernel/characteristics.d.ts +8 -1
- package/dist/kernel/characteristics.d.ts.map +1 -1
- package/dist/kernel/characteristics.js +23 -0
- package/dist/kernel/characteristics.js.map +1 -1
- package/dist/kernel/presentation.d.ts +5 -0
- package/dist/kernel/presentation.d.ts.map +1 -1
- package/dist/kernel/presentation.js +9 -0
- package/dist/kernel/presentation.js.map +1 -1
- package/dist/kernel/reducer.d.ts.map +1 -1
- package/dist/kernel/reducer.js +13 -9
- package/dist/kernel/reducer.js.map +1 -1
- package/dist/kernel/transport.d.ts +3 -1
- package/dist/kernel/transport.d.ts.map +1 -1
- package/dist/kernel/transport.js +5 -1
- package/dist/kernel/transport.js.map +1 -1
- package/dist/protocols/dash-cmaf/index.d.ts.map +1 -1
- package/dist/protocols/dash-cmaf/index.js +3 -1
- package/dist/protocols/dash-cmaf/index.js.map +1 -1
- package/dist/protocols/dash-live/index.d.ts.map +1 -1
- package/dist/protocols/dash-live/index.js +3 -1
- package/dist/protocols/dash-live/index.js.map +1 -1
- package/dist/protocols/hls-cmaf/index.d.ts.map +1 -1
- package/dist/protocols/hls-cmaf/index.js +4 -2
- package/dist/protocols/hls-cmaf/index.js.map +1 -1
- package/dist/protocols/hls-cmaf/parse.d.ts.map +1 -1
- package/dist/protocols/hls-cmaf/parse.js +64 -5
- package/dist/protocols/hls-cmaf/parse.js.map +1 -1
- package/dist/protocols/hls-cmaf/unavailable.d.ts +1 -1
- package/dist/protocols/hls-cmaf/unavailable.d.ts.map +1 -1
- package/dist/protocols/hls-cmaf/unavailable.js +8 -2
- package/dist/protocols/hls-cmaf/unavailable.js.map +1 -1
- package/dist/protocols/hls-live/index.d.ts.map +1 -1
- package/dist/protocols/hls-live/index.js +4 -2
- package/dist/protocols/hls-live/index.js.map +1 -1
- package/dist/stages/eme-core/index.d.ts.map +1 -1
- package/dist/stages/eme-core/index.js +14 -3
- package/dist/stages/eme-core/index.js.map +1 -1
- package/dist/types/ir.d.ts +7 -0
- package/dist/types/ir.d.ts.map +1 -1
- package/dist/types/messages.d.ts +6 -0
- package/dist/types/messages.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/asyncToGenerator.js
|
|
2
2
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
3
3
|
try {
|
|
4
4
|
var i = n[a](c), u = i.value;
|
|
@@ -23,5 +23,4 @@ function _asyncToGenerator(n) {
|
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
//#endregion
|
|
27
26
|
export { _asyncToGenerator as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import toPropertyKey from "./toPropertyKey.js";
|
|
2
|
-
|
|
2
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/defineProperty.js
|
|
3
3
|
function _defineProperty(e, r, t) {
|
|
4
4
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
5
5
|
value: t,
|
|
@@ -8,5 +8,4 @@ function _defineProperty(e, r, t) {
|
|
|
8
8
|
writable: !0
|
|
9
9
|
}) : e[r] = t, e;
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { _defineProperty as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "./defineProperty.js";
|
|
2
|
-
|
|
2
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/objectSpread2.js
|
|
3
3
|
function ownKeys(e, r) {
|
|
4
4
|
var t = Object.keys(e);
|
|
5
5
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -21,5 +21,4 @@ function _objectSpread2(e) {
|
|
|
21
21
|
}
|
|
22
22
|
return e;
|
|
23
23
|
}
|
|
24
|
-
//#endregion
|
|
25
24
|
export { _objectSpread2 as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js";
|
|
2
|
-
|
|
2
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/objectWithoutProperties.js
|
|
3
3
|
function _objectWithoutProperties(e, t) {
|
|
4
4
|
if (null == e) return {};
|
|
5
5
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -9,5 +9,4 @@ function _objectWithoutProperties(e, t) {
|
|
|
9
9
|
}
|
|
10
10
|
return i;
|
|
11
11
|
}
|
|
12
|
-
//#endregion
|
|
13
12
|
export { _objectWithoutProperties as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/objectWithoutPropertiesLoose.js
|
|
2
2
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
3
3
|
if (null == r) return {};
|
|
4
4
|
var t = {};
|
|
@@ -8,5 +8,4 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
8
8
|
}
|
|
9
9
|
return t;
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { _objectWithoutPropertiesLoose as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _typeof from "./typeof.js";
|
|
2
|
-
|
|
2
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/toPrimitive.js
|
|
3
3
|
function toPrimitive(t, r) {
|
|
4
4
|
if ("object" != _typeof(t) || !t) return t;
|
|
5
5
|
var e = t[Symbol.toPrimitive];
|
|
@@ -10,5 +10,4 @@ function toPrimitive(t, r) {
|
|
|
10
10
|
}
|
|
11
11
|
return ("string" === r ? String : Number)(t);
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { toPrimitive as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _typeof from "./typeof.js";
|
|
2
2
|
import toPrimitive from "./toPrimitive.js";
|
|
3
|
-
|
|
3
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/toPropertyKey.js
|
|
4
4
|
function toPropertyKey(t) {
|
|
5
5
|
var i = toPrimitive(t, "string");
|
|
6
6
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { toPropertyKey as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/typeof.js
|
|
2
2
|
function _typeof(o) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -7,5 +7,4 @@ function _typeof(o) {
|
|
|
7
7
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
8
|
}, _typeof(o);
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
10
|
export { _typeof as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/containers/adts.ts
|
|
2
2
|
/** The MPEG-4 sampling frequency table, indexed by samplingFrequencyIndex. */
|
|
3
3
|
const SAMPLE_RATES = [
|
|
4
4
|
96e3,
|
|
@@ -93,5 +93,4 @@ function adtsFragment(adts, trackId, presentationStart) {
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
//#endregion
|
|
97
96
|
export { SAMPLES_PER_FRAME, SAMPLE_RATES, adtsFragment, parseAdts };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/containers/captions.ts
|
|
2
2
|
const consumers = /* @__PURE__ */ new Set();
|
|
3
3
|
let lastFingerprint = "";
|
|
4
4
|
/** Registers a caption decoder. Returns an unregister for stage teardown. */
|
|
@@ -32,5 +32,4 @@ function deliverCaptions(packets) {
|
|
|
32
32
|
lastFingerprint = print;
|
|
33
33
|
for (const consumer of consumers) consumer(packets);
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { captionsWanted, deliverCaptions, registerCaptionConsumer };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { typeString } from "../../kernel/mime.js";
|
|
2
2
|
import { findBoxes, fourcc, fullBox, sampleEntries, viewOf, walkBoxes } from "../mp4-box/index.js";
|
|
3
3
|
import { byteToHex } from "../../kernel/base64.js";
|
|
4
|
-
|
|
4
|
+
// src/containers/codec-probe/index.ts
|
|
5
5
|
/**
|
|
6
6
|
* Derives the exact codecs= string from an init segment's moov. Manifests
|
|
7
7
|
* routinely omit or misstate CODECS, and isTypeSupported wants exact
|
|
@@ -306,5 +306,4 @@ function codecMismatch(declared, probed) {
|
|
|
306
306
|
}
|
|
307
307
|
return null;
|
|
308
308
|
}
|
|
309
|
-
//#endregion
|
|
310
309
|
export { codecMismatch, probeInitSegment, reconcileCodecs };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fourcc, viewOf } from "./mp4-box/index.js";
|
|
2
|
-
|
|
2
|
+
// src/containers/emsg.ts
|
|
3
3
|
/**
|
|
4
4
|
* The DASH event message box (ISO/IEC 23009-1 §5.10.3.3), read from the top
|
|
5
5
|
* level of a media segment, where it sits before the moof. Version 0 times an
|
|
@@ -77,5 +77,4 @@ function readEmsg(segment) {
|
|
|
77
77
|
}
|
|
78
78
|
return out;
|
|
79
79
|
}
|
|
80
|
-
//#endregion
|
|
81
80
|
export { readEmsg };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { findBox, fragmentSamples, fullBox, viewOf } from "../mp4-box/index.js";
|
|
2
2
|
import { writeMediaSegment } from "./writer.js";
|
|
3
|
-
|
|
3
|
+
// src/containers/fmp4/fit.ts
|
|
4
4
|
/** A fragment already filling this share of its slot is left as it is. */
|
|
5
5
|
const FILLED = .9;
|
|
6
6
|
/**
|
|
@@ -42,5 +42,4 @@ function fitFragment(data, timescale, duration, defaults = /* @__PURE__ */ new M
|
|
|
42
42
|
samples
|
|
43
43
|
}]);
|
|
44
44
|
}
|
|
45
|
-
//#endregion
|
|
46
45
|
export { fitFragment };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/containers/fmp4/writer.ts
|
|
2
2
|
function fourcc(type) {
|
|
3
3
|
return [
|
|
4
4
|
type.charCodeAt(0),
|
|
@@ -170,5 +170,4 @@ function writeMediaSegment(sequenceNumber, fragments) {
|
|
|
170
170
|
}
|
|
171
171
|
return concat(moof, mdat);
|
|
172
172
|
}
|
|
173
|
-
//#endregion
|
|
174
173
|
export { concat, sequenceNumberFor, writeInitSegment, writeMediaSegment };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { fourcc } from "./mp4-box/index.js";
|
|
3
|
-
|
|
3
|
+
// src/containers/id3.ts
|
|
4
4
|
const HEADER_SIZE = 10;
|
|
5
5
|
function isId3(data, offset) {
|
|
6
6
|
return data[offset] === 73 && data[offset + 1] === 68 && data[offset + 2] === 51;
|
|
@@ -118,5 +118,4 @@ function id3Events(tags) {
|
|
|
118
118
|
};
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
|
-
//#endregion
|
|
122
121
|
export { id3Cues, id3Events, id3Frames, id3TagLength, parseId3Frames };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/containers/metadata.ts
|
|
2
2
|
let consumer = null;
|
|
3
3
|
/** Registers the metadata consumer. Returns an unregister for stage teardown. */
|
|
4
4
|
function registerMetadataConsumer(fn) {
|
|
@@ -16,5 +16,4 @@ function deliverMetadata(events) {
|
|
|
16
16
|
if (events.length === 0 || consumer === null) return;
|
|
17
17
|
consumer(events);
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { deliverMetadata, metadataWanted, registerMetadataConsumer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/containers/mp4-box/index.ts
|
|
2
2
|
/** Container boxes the walker descends into. Only ancestors of consumed boxes. */
|
|
3
3
|
const CONTAINERS = /* @__PURE__ */ new Set([
|
|
4
4
|
"moov",
|
|
@@ -439,5 +439,4 @@ function decoderConfigBox(init) {
|
|
|
439
439
|
}
|
|
440
440
|
return null;
|
|
441
441
|
}
|
|
442
|
-
//#endregion
|
|
443
442
|
export { VISUAL_ENTRY_HEADER, completeChunks, decoderConfigBox, earliestDecodeTime, findBox, findBoxes, fourcc, fragmentSamples, fullBox, parseSidx, parseTfdt, sampleEntries, timedSamples, trackInfo, trackTimescales, trexDefaults, viewOf, walkBoxes };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { concat, sequenceNumberFor, writeInitSegment, writeMediaSegment } from "../fmp4/writer.js";
|
|
2
2
|
import { id3TagLength } from "../id3.js";
|
|
3
3
|
import { adtsFragment, parseAdts } from "../adts.js";
|
|
4
|
-
|
|
4
|
+
// src/containers/packed-audio/index.ts
|
|
5
5
|
const AUDIO_TRACK_ID = 1;
|
|
6
6
|
const PACK_ORDER = 100;
|
|
7
7
|
/** True when the bytes are bare ADTS AAC, past any leading ID3 tag. */
|
|
@@ -36,5 +36,4 @@ function packedAudio() {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
//#endregion
|
|
40
39
|
export { packedAudio as default, looksLikePackedAudio, packAudio };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
-
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
// src/containers/scte35.ts
|
|
3
3
|
const TABLE_ID = 252;
|
|
4
4
|
const SPLICE_INSERT = 5;
|
|
5
5
|
const SEGMENTATION_DESCRIPTOR = 2;
|
|
@@ -110,5 +110,4 @@ function scte35Summary(bytes) {
|
|
|
110
110
|
}
|
|
111
111
|
return _objectSpread2(_objectSpread2({ commandType }, command), {}, { segmentations });
|
|
112
112
|
}
|
|
113
|
-
//#endregion
|
|
114
113
|
export { scte35Summary };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/containers/sei.ts
|
|
2
2
|
/**
|
|
3
3
|
* Strips emulation-prevention bytes (00 00 03 -> 00 00) from a NAL unit
|
|
4
4
|
* past its `start`-byte header, so payload sizes and bit reads come out true.
|
|
@@ -80,5 +80,4 @@ function appendAtscCc(payload, out) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
//#endregion
|
|
84
83
|
export { ccTriplesFromSei, toRbsp };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { concat } from "../fmp4/writer.js";
|
|
2
2
|
import { looksLikeTransportStream } from "./sniff.js";
|
|
3
|
-
|
|
3
|
+
// src/containers/ts-transmux/demux.ts
|
|
4
4
|
/**
|
|
5
5
|
* MPEG-TS demux: 188-byte packets into PES payloads, grouped by elementary
|
|
6
6
|
* stream. PAT names the PMT, the PMT names the elementary PIDs and their
|
|
@@ -216,5 +216,4 @@ function unrollTimestamps(values) {
|
|
|
216
216
|
}
|
|
217
217
|
return out;
|
|
218
218
|
}
|
|
219
|
-
//#endregion
|
|
220
219
|
export { STREAM_TYPE, demux, looksLikeTransportStream, programTables, unrollTimestamps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/defineProperty.js";
|
|
2
2
|
import { toRbsp } from "../sei.js";
|
|
3
|
-
|
|
3
|
+
// src/containers/ts-transmux/h264.ts
|
|
4
4
|
/**
|
|
5
5
|
* H.264 Annex B to AVCC. The elementary stream separates NAL units with
|
|
6
6
|
* start codes; MSE wants them length-prefixed, with the parameter sets moved
|
|
@@ -184,5 +184,4 @@ function spsDimensions(sps) {
|
|
|
184
184
|
height: Math.max(0, height)
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
|
-
//#endregion
|
|
188
187
|
export { NAL_TYPE, accessUnitFromNals, nalType, splitNalUnits, spsDimensions, toAccessUnit };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/defineProperty.js";
|
|
2
2
|
import { toRbsp } from "../sei.js";
|
|
3
|
-
|
|
3
|
+
// src/containers/ts-transmux/h265.ts
|
|
4
4
|
/**
|
|
5
5
|
* H.265 Annex B to the hvc1 sample format. The NAL units split on start
|
|
6
6
|
* codes as in H.264 (splitNalUnits applies); the header is two bytes and
|
|
@@ -171,5 +171,4 @@ function hevcDecoderConfiguration(vps, sps, pps) {
|
|
|
171
171
|
}
|
|
172
172
|
return out;
|
|
173
173
|
}
|
|
174
|
-
//#endregion
|
|
175
174
|
export { HEVC_NAL_TYPE, hevcAccessUnitFromNals, hevcDecoderConfiguration, hevcNalType, hevcSpsInfo };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/asyncToGenerator.js";
|
|
2
2
|
import { looksLikeTransportStream } from "./sniff.js";
|
|
3
3
|
import { id3Events } from "../id3.js";
|
|
4
4
|
import { deliverMetadata, metadataWanted } from "../metadata.js";
|
|
5
5
|
import { captionsWanted, deliverCaptions } from "../captions.js";
|
|
6
6
|
import { createTransmuxRunner } from "./runner.js";
|
|
7
7
|
import { transmuxSource } from "./source.js";
|
|
8
|
-
|
|
8
|
+
// src/containers/ts-transmux/index.ts
|
|
9
9
|
/** Runs after decrypt-class steps (lower order) and before caption extraction. */
|
|
10
10
|
const TRANSMUX_ORDER = 100;
|
|
11
11
|
/**
|
|
@@ -61,5 +61,4 @@ function tsTransmux(options = {}) {
|
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
//#endregion
|
|
65
64
|
export { tsTransmux as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
-
import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/asyncToGenerator.js";
|
|
3
|
+
// src/containers/ts-transmux/runner.ts
|
|
4
4
|
function createTransmuxRunner(options, source) {
|
|
5
5
|
let worker = null;
|
|
6
6
|
let workerBroken = options.disableWorker === true;
|
|
@@ -101,5 +101,4 @@ function createTransmuxRunner(options, source) {
|
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
//#endregion
|
|
105
104
|
export { createTransmuxRunner };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { transmux } from "./transmux.js";
|
|
2
|
-
|
|
2
|
+
// src/containers/ts-transmux/serve.ts
|
|
3
3
|
/** Answers transmux requests on a Worker's scope. */
|
|
4
4
|
function serveTransmux(scope) {
|
|
5
5
|
scope.onmessage = (event) => {
|
|
@@ -32,5 +32,4 @@ function serveTransmux(scope) {
|
|
|
32
32
|
}, [buffer]);
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { serveTransmux };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// src/containers/ts-transmux/source.ts
|
|
2
2
|
const transmuxSource = {
|
|
3
3
|
load: () => import("./transmux.js").then((module) => module.transmux),
|
|
4
4
|
worker: () => new Worker(new URL("./transmux.worker.js", import.meta.url), { type: "module" })
|
|
5
5
|
};
|
|
6
|
-
//#endregion
|
|
7
6
|
export { transmuxSource };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { concat, sequenceNumberFor, writeInitSegment, writeMediaSegment } from "../fmp4/writer.js";
|
|
3
3
|
import { STREAM_TYPE, demux, unrollTimestamps } from "./demux.js";
|
|
4
4
|
import { ccTriplesFromSei } from "../sei.js";
|
|
5
5
|
import { adtsFragment, parseAdts } from "../adts.js";
|
|
6
6
|
import { NAL_TYPE, accessUnitFromNals, nalType, splitNalUnits, spsDimensions, toAccessUnit } from "./h264.js";
|
|
7
7
|
import { HEVC_NAL_TYPE, hevcAccessUnitFromNals, hevcDecoderConfiguration, hevcNalType, hevcSpsInfo } from "./h265.js";
|
|
8
|
-
|
|
8
|
+
// src/containers/ts-transmux/transmux.ts
|
|
9
9
|
/**
|
|
10
10
|
* The transmux core: MPEG-TS bytes to a self-contained fragmented MP4. Each
|
|
11
11
|
* call is independent and pure, so identical input plus identical
|
|
@@ -236,5 +236,4 @@ function transmux(input, presentationStart = 0, wantCaptions = false, tracks = "
|
|
|
236
236
|
parameterSets: (_video$parameterSets = video === null || video === void 0 ? void 0 : video.parameterSets) !== null && _video$parameterSets !== void 0 ? _video$parameterSets : null
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
//#endregion
|
|
240
239
|
export { transmux };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { serveTransmux } from "./serve.js";
|
|
2
|
-
|
|
2
|
+
// src/containers/ts-transmux/transmux.worker.ts
|
|
3
3
|
/**
|
|
4
4
|
* The Worker entry of the npm build, loaded by URL. Everything it does is
|
|
5
5
|
* in serve.ts, which the script-tag bundle also starts from its one copy of
|
|
6
6
|
* the transmux.
|
|
7
7
|
*/
|
|
8
8
|
serveTransmux(self);
|
|
9
|
-
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
-
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
// src/containers/webvtt.ts
|
|
3
3
|
/** `HH:MM:SS.mmm` or `MM:SS.mmm` to seconds, or null. */
|
|
4
4
|
function parseTimestamp(text) {
|
|
5
5
|
const match = /^(?:(\d+):)?([0-5]\d):([0-5]\d)\.(\d{3})$/.exec(text.trim());
|
|
@@ -60,5 +60,4 @@ function parseVtt(text) {
|
|
|
60
60
|
function escapeCueText(text) {
|
|
61
61
|
return text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
62
62
|
}
|
|
63
|
-
//#endregion
|
|
64
63
|
export { escapeCueText, parseTimestamp, parseVtt };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { fourcc, viewOf } from "./mp4-box/index.js";
|
|
3
|
-
|
|
3
|
+
// src/containers/wvtt.ts
|
|
4
4
|
/** The child boxes of `bytes`, as type and payload. */
|
|
5
5
|
function boxes(bytes) {
|
|
6
6
|
const out = [];
|
|
@@ -36,5 +36,4 @@ function wvttCues(samples) {
|
|
|
36
36
|
}
|
|
37
37
|
return cues.map((cue) => _objectSpread2(_objectSpread2({}, cue), {}, { id: `${cue.start.toFixed(3)}|${cue.end.toFixed(3)}|${cue.text}` }));
|
|
38
38
|
}
|
|
39
|
-
//#endregion
|
|
40
39
|
export { wvttCues };
|
package/dist/es2015/eme/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
-
import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectWithoutProperties.js";
|
|
3
3
|
import { fetchWithin } from "../kernel/transport.js";
|
|
4
4
|
import emeCore from "../stages/eme-core/index.js";
|
|
5
|
-
|
|
5
|
+
// src/eme/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* The engine's DRM on an element the engine does not drive. On Safari a
|
|
8
8
|
* player can play HLS natively with `video.src`; the element still fires
|
|
@@ -77,5 +77,4 @@ function attachEme(element, options = {}) {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
//#endregion
|
|
81
80
|
export { attachEme };
|
package/dist/es2015/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import _objectSpread2 from "./_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "./_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { exportTrace, replay } from "./kernel/trace.js";
|
|
3
3
|
import { createBus } from "./kernel/bus.js";
|
|
4
4
|
import { createEffectRunner } from "./kernel/effects.js";
|
|
5
|
-
import _asyncToGenerator from "./_virtual/_@oxc-project_runtime@0.
|
|
5
|
+
import _asyncToGenerator from "./_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/asyncToGenerator.js";
|
|
6
6
|
import { createSegmentPreparer } from "./kernel/prepare.js";
|
|
7
7
|
import { cueFormat, normalizeMimeType } from "./kernel/mime.js";
|
|
8
|
+
import { isAudioDescription, isEnhancedSpeech, isOriginal, isSdh, videoKind } from "./kernel/characteristics.js";
|
|
8
9
|
import { findTrackSite, isTrick } from "./kernel/presentation.js";
|
|
9
10
|
import { activeAudio, availableGroups, canSwitchTo, createArbiter, exclusionsOf } from "./kernel/rendition-select.js";
|
|
10
11
|
import { createMseSink } from "./kernel/sinks/mse-sink.js";
|
|
@@ -15,8 +16,7 @@ import { compose } from "./kernel/loader.js";
|
|
|
15
16
|
import { createMseController, decodable } from "./kernel/mse.js";
|
|
16
17
|
import { createTrackRegistry } from "./kernel/track-registry.js";
|
|
17
18
|
import { createTransport } from "./kernel/transport.js";
|
|
18
|
-
|
|
19
|
-
//#region src/index.ts
|
|
19
|
+
// src/index.ts
|
|
20
20
|
/**
|
|
21
21
|
* Mattebox: a modular adaptive-streaming engine for HLS and DASH.
|
|
22
22
|
* The public entry: the mattebox() factory composes the kernel with the
|
|
@@ -432,5 +432,4 @@ mattebox.from = (el) => {
|
|
|
432
432
|
var _registry$get;
|
|
433
433
|
return (_registry$get = registry.get(el)) !== null && _registry$get !== void 0 ? _registry$get : null;
|
|
434
434
|
};
|
|
435
|
-
|
|
436
|
-
export { canSwitchTo, createReducer, exportTrace, initialState, isAudioDescription, isEnhancedSpeech, isOriginal, isSdh, mattebox, replay, resolveConfig };
|
|
435
|
+
export { canSwitchTo, createReducer, exportTrace, initialState, isAudioDescription, isEnhancedSpeech, isOriginal, isSdh, mattebox, replay, resolveConfig, videoKind };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
-
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
// src/kernel/append-queue.ts
|
|
3
3
|
function isQuotaError(err) {
|
|
4
4
|
return err instanceof DOMException && err.name === "QuotaExceededError";
|
|
5
5
|
}
|
|
@@ -144,5 +144,4 @@ function createAppendQueue(sbId, sb, cb) {
|
|
|
144
144
|
idle: () => !destroyed && ops.length === 0 && !sb.updating
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
//#endregion
|
|
148
147
|
export { createAppendQueue };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/kernel/base64.ts
|
|
2
2
|
/**
|
|
3
3
|
* Byte encodings, one copy each: base64 (RFC 4648 §4) and base64url (§5)
|
|
4
4
|
* for manifest pssh boxes and license bodies, and hex for codec strings,
|
|
@@ -32,5 +32,4 @@ function bytesToHex(bytes) {
|
|
|
32
32
|
for (const byte of bytes) out += byteToHex(byte);
|
|
33
33
|
return out;
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { base64ToBytes, byteToHex, bytesToBase64, bytesToHex };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createTraceBuffer, digest, lighten } from "./trace.js";
|
|
2
|
-
|
|
2
|
+
// src/kernel/bus.ts
|
|
3
3
|
function createBus(options) {
|
|
4
4
|
var _options$now, _options$traceCapacit;
|
|
5
5
|
let reducer = options.reducer;
|
|
@@ -135,5 +135,4 @@ function createBus(options) {
|
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
//#endregion
|
|
139
138
|
export { createBus };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/kernel/characteristics.ts
|
|
2
2
|
function has(track, tag) {
|
|
3
3
|
var _track$characteristic;
|
|
4
4
|
return ((_track$characteristic = track.characteristics) === null || _track$characteristic === void 0 ? void 0 : _track$characteristic.includes(tag)) === true;
|
|
@@ -23,5 +23,22 @@ function isSdh(track) {
|
|
|
23
23
|
function isOriginal(track) {
|
|
24
24
|
return has(track, "public.original-content");
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
/**
|
|
27
|
+
* The kind of a video track from its standard roles, as HTML's rules for
|
|
28
|
+
* media containers map them to VideoTrack.kind: sign and commentary stand
|
|
29
|
+
* alone, caption and subtitle with main are a picture with the text in it,
|
|
30
|
+
* and alternate is another version.
|
|
31
|
+
*/
|
|
32
|
+
function videoKind(track) {
|
|
33
|
+
var _track$roles2;
|
|
34
|
+
const roles = (_track$roles2 = track.roles) !== null && _track$roles2 !== void 0 ? _track$roles2 : track.role !== void 0 ? [track.role] : [];
|
|
35
|
+
const main = roles.includes("main");
|
|
36
|
+
if (roles.includes("sign")) return "sign";
|
|
37
|
+
if (roles.includes("commentary") && !main) return "commentary";
|
|
38
|
+
if (roles.includes("caption") && main) return "captions";
|
|
39
|
+
if (roles.includes("subtitle") && main) return "subtitles";
|
|
40
|
+
if (main) return "main";
|
|
41
|
+
if (roles.includes("alternate")) return "alternative";
|
|
42
|
+
return "";
|
|
43
|
+
}
|
|
44
|
+
export { isAudioDescription, isEnhancedSpeech, isOriginal, isSdh, videoKind };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/kernel/context.ts
|
|
2
2
|
/**
|
|
3
3
|
* Builds one stage's context and returns the registrations' own teardown,
|
|
4
4
|
* combined by the caller with whatever the stage's install returns.
|
|
@@ -110,5 +110,4 @@ function createStageContext(deps) {
|
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
//#endregion
|
|
114
113
|
export { createStageContext };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { createBus } from "./bus.js";
|
|
3
3
|
import { createEffectRunner } from "./effects.js";
|
|
4
4
|
import { createSegmentPreparer } from "./prepare.js";
|
|
5
5
|
import { createReducer, initialState } from "./reducer.js";
|
|
6
|
-
|
|
6
|
+
// src/kernel/dry-run.ts
|
|
7
7
|
/** The whole run ends here, whatever it has fetched: a preload must not outlive its use. */
|
|
8
8
|
const LIMIT_MS = 1e4;
|
|
9
9
|
/** Ranges this close are one range, as a SourceBuffer reports them. */
|
|
@@ -175,5 +175,4 @@ function dryRun(deps, url, options) {
|
|
|
175
175
|
}, options.mimeType !== void 0 ? { mimeType: options.mimeType } : {}));
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
|
-
//#endregion
|
|
179
178
|
export { dryRun };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/kernel/effects.ts
|
|
2
2
|
/**
|
|
3
3
|
* A schedule effect: `then` re-enters the bus after `delayMs`, or at once.
|
|
4
4
|
* The token names the timer, so an abort under it cancels the timer; each
|
|
@@ -78,5 +78,4 @@ function createEffectRunner(options = {}) {
|
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
//#endregion
|
|
82
81
|
export { createEffectRunner, scheduled, tickAfter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/kernel/evictor.ts
|
|
2
2
|
const DEFAULT_BACK_BUFFER = 30;
|
|
3
3
|
const DEFAULT_MAX_PASSES = 3;
|
|
4
4
|
/** Seconds behind the playhead that are never removed. */
|
|
@@ -63,5 +63,4 @@ function createEvictor(options = {}) {
|
|
|
63
63
|
streaming: () => streaming
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
//#endregion
|
|
67
66
|
export { createEvictor };
|