mattebox 0.17.1 → 0.17.2
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 +1 -1
- 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.155.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/asyncToGenerator.js +1 -1
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/defineProperty.js +1 -1
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/objectSpread2.js +1 -1
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/objectWithoutProperties.js +3 -3
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/objectWithoutPropertiesLoose.js +2 -2
- package/dist/es2015/_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/toPrimitive.js +13 -0
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/toPropertyKey.js +1 -1
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/typeof.js +1 -1
- package/dist/es2015/containers/codec-probe/index.js +1 -1
- package/dist/es2015/containers/fmp4/fit.js +1 -1
- package/dist/es2015/containers/id3.js +1 -1
- package/dist/es2015/containers/packed-audio/index.js +1 -1
- package/dist/es2015/containers/scte35.js +1 -1
- package/dist/es2015/containers/ts-transmux/demux.js +1 -1
- package/dist/es2015/containers/ts-transmux/h264.js +1 -1
- package/dist/es2015/containers/ts-transmux/h265.js +1 -1
- package/dist/es2015/containers/ts-transmux/index.js +3 -3
- package/dist/es2015/containers/ts-transmux/runner.js +2 -2
- package/dist/es2015/containers/ts-transmux/transmux.js +3 -3
- package/dist/es2015/containers/webvtt.js +1 -1
- package/dist/es2015/containers/wvtt.js +1 -1
- package/dist/es2015/eme/index.js +3 -3
- package/dist/es2015/index.js +10 -10
- package/dist/es2015/kernel/append-queue.js +1 -1
- package/dist/es2015/kernel/dry-run.js +1 -1
- package/dist/es2015/kernel/lifecycle.js +1 -1
- package/dist/es2015/kernel/mse.js +15 -3
- package/dist/es2015/kernel/prepare.js +2 -2
- package/dist/es2015/kernel/reducer.js +17 -5
- package/dist/es2015/kernel/refresh.js +1 -1
- package/dist/es2015/kernel/rendition-select.js +3 -3
- package/dist/es2015/kernel/scheduler.js +1 -1
- package/dist/es2015/kernel/sinks/caption-tracks.js +1 -1
- package/dist/es2015/kernel/sinks/text-formats.js +1 -1
- package/dist/es2015/kernel/timeline.js +1 -1
- package/dist/es2015/kernel/trace.js +1 -1
- package/dist/es2015/kernel/transport.js +2 -2
- package/dist/es2015/presets/dash/index.js +2 -1
- package/dist/es2015/presets/dash-drm/index.js +3 -1
- package/dist/es2015/presets/dash-ll/index.js +3 -1
- package/dist/es2015/presets/define.js +2 -2
- package/dist/es2015/presets/dual/index.js +3 -1
- package/dist/es2015/presets/dual-drm/index.js +4 -1
- package/dist/es2015/presets/dual-ll/index.js +4 -1
- package/dist/es2015/presets/dual-ts/index.js +4 -1
- package/dist/es2015/presets/dual-ts-drm/index.js +5 -1
- package/dist/es2015/presets/full/index.js +15 -10
- package/dist/es2015/presets/hls/index.js +2 -1
- package/dist/es2015/presets/hls-drm/index.js +3 -1
- package/dist/es2015/presets/hls-ll/index.js +3 -1
- package/dist/es2015/presets/hls-ts/index.js +3 -1
- package/dist/es2015/presets/hls-ts-drm/index.js +4 -1
- package/dist/es2015/presets/tiers/base.js +52 -0
- package/dist/es2015/presets/tiers/dash-ll.js +17 -0
- package/dist/es2015/presets/tiers/dash.js +14 -0
- package/dist/es2015/presets/tiers/drm.js +19 -0
- package/dist/es2015/presets/tiers/hls-ll.js +17 -0
- package/dist/es2015/presets/tiers/hls.js +19 -0
- package/dist/es2015/presets/tiers/low-latency.js +16 -0
- package/dist/es2015/presets/tiers/ts.js +23 -0
- package/dist/es2015/protocols/dash-cmaf/index.js +2 -2
- package/dist/es2015/protocols/dash-cmaf/parse.js +1 -1
- package/dist/es2015/protocols/dash-cmaf/periods-runtime.js +1 -1
- package/dist/es2015/protocols/dash-cmaf/periods.js +1 -1
- package/dist/es2015/protocols/dash-live/index.js +2 -2
- package/dist/es2015/protocols/dash-ll/index.js +1 -1
- package/dist/es2015/protocols/hls-cmaf/index.js +1 -1
- package/dist/es2015/protocols/hls-cmaf/parse.js +1 -1
- package/dist/es2015/protocols/hls-cmaf/unavailable.js +1 -1
- package/dist/es2015/protocols/hls-live/index.js +1 -1
- package/dist/es2015/protocols/hls-ll/index.js +1 -1
- package/dist/es2015/protocols/hls-ll/parse.js +1 -1
- package/dist/es2015/stages/abr/index.js +1 -1
- package/dist/es2015/stages/aes-128/index.js +1 -1
- package/dist/es2015/stages/chapters/index.js +2 -2
- package/dist/es2015/stages/chapters/parse.js +2 -2
- package/dist/es2015/stages/cmcd/index.js +1 -1
- package/dist/es2015/stages/codec-probe/index.js +2 -2
- package/dist/es2015/stages/content-steering/index.js +1 -1
- package/dist/es2015/stages/eme-core/index.js +2 -2
- package/dist/es2015/stages/eme-fairplay/index.js +1 -1
- package/dist/es2015/stages/hdr/index.js +1 -1
- package/dist/es2015/stages/interstitials/breaks.js +1 -1
- package/dist/es2015/stages/interstitials/index.js +3 -3
- package/dist/es2015/stages/nal-scan/index.js +1 -1
- package/dist/es2015/stages/qoe/index.js +1 -1
- package/dist/es2015/stages/recovery/index.js +1 -1
- package/dist/es2015/stages/rendition-names/index.js +1 -1
- package/dist/es2015/stages/text-cea608/decode.js +1 -1
- package/dist/es2015/stages/text-cea708/decode.js +2 -2
- package/dist/es2015/stages/text-cea708/index.js +1 -1
- package/dist/es2015/stages/text-ttml/index.js +3 -3
- package/dist/es2015/stages/text-ttml/parse.js +1 -1
- package/dist/es2015/stages/thumbnails/index.js +2 -2
- package/dist/es2015/stages/timed-metadata/index.js +2 -2
- package/dist/es2015/stages/trick-play/index.js +5 -5
- package/dist/kernel/mse.d.ts.map +1 -1
- package/dist/kernel/mse.js +18 -2
- package/dist/kernel/mse.js.map +1 -1
- package/dist/kernel/reducer.d.ts +1 -1
- package/dist/kernel/reducer.d.ts.map +1 -1
- package/dist/kernel/reducer.js +17 -1
- package/dist/kernel/reducer.js.map +1 -1
- package/dist/presets/dash/index.d.ts.map +1 -1
- package/dist/presets/dash/index.js +2 -1
- package/dist/presets/dash/index.js.map +1 -1
- package/dist/presets/dash-drm/index.d.ts.map +1 -1
- package/dist/presets/dash-drm/index.js +3 -1
- package/dist/presets/dash-drm/index.js.map +1 -1
- package/dist/presets/dash-ll/index.d.ts.map +1 -1
- package/dist/presets/dash-ll/index.js +3 -1
- package/dist/presets/dash-ll/index.js.map +1 -1
- package/dist/presets/dual/index.d.ts.map +1 -1
- package/dist/presets/dual/index.js +3 -1
- package/dist/presets/dual/index.js.map +1 -1
- package/dist/presets/dual-drm/index.d.ts.map +1 -1
- package/dist/presets/dual-drm/index.js +4 -1
- package/dist/presets/dual-drm/index.js.map +1 -1
- package/dist/presets/dual-ll/index.d.ts.map +1 -1
- package/dist/presets/dual-ll/index.js +4 -1
- package/dist/presets/dual-ll/index.js.map +1 -1
- package/dist/presets/dual-ts/index.d.ts.map +1 -1
- package/dist/presets/dual-ts/index.js +4 -1
- package/dist/presets/dual-ts/index.js.map +1 -1
- package/dist/presets/dual-ts-drm/index.d.ts.map +1 -1
- package/dist/presets/dual-ts-drm/index.js +5 -1
- package/dist/presets/dual-ts-drm/index.js.map +1 -1
- package/dist/presets/full/index.d.ts.map +1 -1
- package/dist/presets/full/index.js +6 -1
- package/dist/presets/full/index.js.map +1 -1
- package/dist/presets/hls/index.d.ts.map +1 -1
- package/dist/presets/hls/index.js +2 -1
- package/dist/presets/hls/index.js.map +1 -1
- package/dist/presets/hls-drm/index.d.ts.map +1 -1
- package/dist/presets/hls-drm/index.js +3 -1
- package/dist/presets/hls-drm/index.js.map +1 -1
- package/dist/presets/hls-ll/index.d.ts.map +1 -1
- package/dist/presets/hls-ll/index.js +3 -1
- package/dist/presets/hls-ll/index.js.map +1 -1
- package/dist/presets/hls-ts/index.d.ts.map +1 -1
- package/dist/presets/hls-ts/index.js +3 -1
- package/dist/presets/hls-ts/index.js.map +1 -1
- package/dist/presets/hls-ts-drm/index.d.ts.map +1 -1
- package/dist/presets/hls-ts-drm/index.js +4 -1
- package/dist/presets/hls-ts-drm/index.js.map +1 -1
- package/dist/presets/tiers/base.d.ts +13 -0
- package/dist/presets/tiers/base.d.ts.map +1 -0
- package/dist/presets/tiers/base.js +51 -0
- package/dist/presets/tiers/base.js.map +1 -0
- package/dist/presets/tiers/dash-ll.d.ts +8 -0
- package/dist/presets/tiers/dash-ll.d.ts.map +1 -0
- package/dist/presets/tiers/dash-ll.js +16 -0
- package/dist/presets/tiers/dash-ll.js.map +1 -0
- package/dist/presets/tiers/dash.d.ts +4 -0
- package/dist/presets/tiers/dash.d.ts.map +1 -0
- package/dist/presets/tiers/dash.js +13 -0
- package/dist/presets/tiers/dash.js.map +1 -0
- package/dist/presets/tiers/drm.d.ts +4 -0
- package/dist/presets/tiers/drm.d.ts.map +1 -0
- package/dist/presets/tiers/drm.js +14 -0
- package/dist/presets/tiers/drm.js.map +1 -0
- package/dist/presets/tiers/hls-ll.d.ts +7 -0
- package/dist/presets/tiers/hls-ll.d.ts.map +1 -0
- package/dist/presets/tiers/hls-ll.js +16 -0
- package/dist/presets/tiers/hls-ll.js.map +1 -0
- package/dist/presets/tiers/hls.d.ts +4 -0
- package/dist/presets/tiers/hls.d.ts.map +1 -0
- package/dist/presets/tiers/hls.js +16 -0
- package/dist/presets/tiers/hls.js.map +1 -0
- package/dist/presets/tiers/low-latency.d.ts +7 -0
- package/dist/presets/tiers/low-latency.d.ts.map +1 -0
- package/dist/presets/tiers/low-latency.js +15 -0
- package/dist/presets/tiers/low-latency.js.map +1 -0
- package/dist/presets/tiers/ts.d.ts +8 -0
- package/dist/presets/tiers/ts.d.ts.map +1 -0
- package/dist/presets/tiers/ts.js +18 -0
- package/dist/presets/tiers/ts.js.map +1 -0
- package/package.json +1 -1
- package/dist/es2015/_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/toPrimitive.js +0 -13
- package/dist/es2015/presets/tiers.js +0 -123
- package/dist/presets/tiers.d.ts +0 -41
- package/dist/presets/tiers.d.ts.map +0 -1
- package/dist/presets/tiers.js +0 -112
- package/dist/presets/tiers.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import toPropertyKey from "./toPropertyKey.js";
|
|
2
|
-
// \0@oxc-project+runtime@0.
|
|
2
|
+
// \0@oxc-project+runtime@0.157.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,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "./defineProperty.js";
|
|
2
|
-
// \0@oxc-project+runtime@0.
|
|
2
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/objectSpread2.js
|
|
3
3
|
function ownKeys(e, r) {
|
|
4
4
|
var t = Object.keys(e);
|
|
5
5
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js";
|
|
2
|
-
// \0@oxc-project+runtime@0.
|
|
2
|
+
// \0@oxc-project+runtime@0.157.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);
|
|
6
6
|
if (Object.getOwnPropertySymbols) {
|
|
7
|
-
var
|
|
8
|
-
for (r = 0; r <
|
|
7
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
8
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
9
9
|
}
|
|
10
10
|
return i;
|
|
11
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// \0@oxc-project+runtime@0.
|
|
1
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/objectWithoutPropertiesLoose.js
|
|
2
2
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
3
3
|
if (null == r) return {};
|
|
4
4
|
var t = {};
|
|
5
5
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
6
|
-
if (e.
|
|
6
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
7
7
|
t[n] = r[n];
|
|
8
8
|
}
|
|
9
9
|
return t;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import _typeof from "./typeof.js";
|
|
2
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
|
|
3
|
+
function toPrimitive(t, e) {
|
|
4
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
5
|
+
var r;
|
|
6
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
7
|
+
var i = r.call(t, e || "default");
|
|
8
|
+
if ("object" != _typeof(i)) return i;
|
|
9
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
10
|
+
}
|
|
11
|
+
return ("string" === e ? String : Number)(t);
|
|
12
|
+
}
|
|
13
|
+
export { toPrimitive as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _typeof from "./typeof.js";
|
|
2
2
|
import toPrimitive from "./toPrimitive.js";
|
|
3
|
-
// \0@oxc-project+runtime@0.
|
|
3
|
+
// \0@oxc-project+runtime@0.157.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 + "";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { byteToHex } from "../../kernel/base64.js";
|
|
1
2
|
import { typeString } from "../../kernel/mime.js";
|
|
2
3
|
import { findBoxes, fourcc, fullBox, sampleEntries, viewOf, walkBoxes } from "../mp4-box/index.js";
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
1
|
import { findBox, fragmentSamples, fullBox, viewOf } from "../mp4-box/index.js";
|
|
3
2
|
import { writeMediaSegment } from "./writer.js";
|
|
3
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
// src/containers/fmp4/fit.ts
|
|
5
5
|
/**
|
|
6
6
|
* The first traf's per-sample encryption entries, null for a clear
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
1
|
import { fourcc } from "./mp4-box/index.js";
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
// src/containers/id3.ts
|
|
4
4
|
const HEADER_SIZE = 10;
|
|
5
5
|
function isId3(data, offset) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { adtsFragment, parseAdts } from "../adts.js";
|
|
1
2
|
import { concat, sequenceNumberFor, writeInitSegment, writeMediaSegment } from "../fmp4/writer.js";
|
|
2
3
|
import { id3TagLength } from "../id3.js";
|
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
// src/containers/scte35.ts
|
|
3
3
|
const TABLE_ID = 252;
|
|
4
4
|
const SPLICE_INSERT = 5;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { concat } from "../fmp4/writer.js";
|
|
2
1
|
import { looksLikeTransportStream } from "./sniff.js";
|
|
2
|
+
import { concat } from "../fmp4/writer.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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/defineProperty.js";
|
|
2
1
|
import { toRbsp } from "../sei.js";
|
|
2
|
+
import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/defineProperty.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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/defineProperty.js";
|
|
2
1
|
import { toRbsp } from "../sei.js";
|
|
2
|
+
import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/defineProperty.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
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { looksLikeTransportStream } from "./sniff.js";
|
|
1
|
+
import { captionsWanted, deliverCaptions } from "../captions.js";
|
|
3
2
|
import { id3Events } from "../id3.js";
|
|
4
3
|
import { deliverMetadata, metadataWanted } from "../metadata.js";
|
|
5
|
-
import { captionsWanted, deliverCaptions } from "../captions.js";
|
|
6
4
|
import { createTransmuxRunner } from "./runner.js";
|
|
5
|
+
import { looksLikeTransportStream } from "./sniff.js";
|
|
7
6
|
import { transmuxSource } from "./source.js";
|
|
7
|
+
import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
|
|
2
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
// src/containers/ts-transmux/runner.ts
|
|
4
4
|
function createTransmuxRunner(options, source) {
|
|
5
5
|
let worker = null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SAMPLES_PER_FRAME, adtsFragment, parseAdts } from "../adts.js";
|
|
2
2
|
import { concat, sequenceNumberFor, writeInitSegment, writeMediaSegment } from "../fmp4/writer.js";
|
|
3
|
-
import { STREAM_TYPE, demux, unrollTimestamps } from "./demux.js";
|
|
4
3
|
import { ccTriplesFromSei } from "../sei.js";
|
|
5
|
-
import {
|
|
4
|
+
import { STREAM_TYPE, demux, unrollTimestamps } from "./demux.js";
|
|
6
5
|
import { NAL_TYPE, accessUnitFromNals, nalType, splitNalUnits, spsDimensions, toAccessUnit } from "./h264.js";
|
|
7
6
|
import { HEVC_NAL_TYPE, hevcAccessUnitFromNals, hevcDecoderConfiguration, hevcNalType, hevcSpsInfo } from "./h265.js";
|
|
7
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
// src/containers/webvtt.ts
|
|
3
3
|
/** `HH:MM:SS.mmm` or `MM:SS.mmm` to seconds, or null. */
|
|
4
4
|
function parseTimestamp(text) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
1
|
import { fourcc, viewOf } from "./mp4-box/index.js";
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
// src/containers/wvtt.ts
|
|
4
4
|
/** The child boxes of `bytes`, as type and payload. */
|
|
5
5
|
function boxes(bytes) {
|
package/dist/es2015/eme/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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
|
-
import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectWithoutProperties.js";
|
|
4
1
|
import { fetchWithin } from "../kernel/transport.js";
|
|
5
2
|
import emeCore from "../stages/eme-core/index.js";
|
|
3
|
+
import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectWithoutProperties.js";
|
|
4
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
5
|
+
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
|
|
6
6
|
// src/eme/index.ts
|
|
7
7
|
/**
|
|
8
8
|
* The engine's DRM on an element the engine does not drive. On Safari a
|
package/dist/es2015/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import _objectSpread2 from "./_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
|
-
import { exportTrace, replay } from "./kernel/trace.js";
|
|
3
1
|
import { createBus } from "./kernel/bus.js";
|
|
2
|
+
import { dryRun } from "./kernel/dry-run.js";
|
|
4
3
|
import { createEffectRunner } from "./kernel/effects.js";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
4
|
+
import { createLifecycle } from "./kernel/lifecycle.js";
|
|
5
|
+
import { compose } from "./kernel/loader.js";
|
|
7
6
|
import { cueFormat, normalizeMimeType } from "./kernel/mime.js";
|
|
8
|
-
import {
|
|
7
|
+
import { createMseController, decodable } from "./kernel/mse.js";
|
|
8
|
+
import { createSegmentPreparer } from "./kernel/prepare.js";
|
|
9
9
|
import { findTrackSite, isTrick } from "./kernel/presentation.js";
|
|
10
|
+
import { createReducer, initialState, resolveConfig } from "./kernel/reducer.js";
|
|
10
11
|
import { activeAudio, availableGroups, canSwitchTo, createArbiter, exclusionsOf } from "./kernel/rendition-select.js";
|
|
11
12
|
import { createMseSink } from "./kernel/sinks/mse-sink.js";
|
|
12
|
-
import { createReducer, initialState, resolveConfig } from "./kernel/reducer.js";
|
|
13
|
-
import { dryRun } from "./kernel/dry-run.js";
|
|
14
|
-
import { createLifecycle } from "./kernel/lifecycle.js";
|
|
15
|
-
import { compose } from "./kernel/loader.js";
|
|
16
|
-
import { createMseController, decodable } from "./kernel/mse.js";
|
|
17
13
|
import { createTrackRegistry } from "./kernel/track-registry.js";
|
|
18
14
|
import { createTransport } from "./kernel/transport.js";
|
|
15
|
+
import _objectSpread2 from "./_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
16
|
+
import _asyncToGenerator from "./_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
|
|
17
|
+
import { isAudioDescription, isEnhancedSpeech, isOriginal, isSdh, videoKind } from "./kernel/characteristics.js";
|
|
18
|
+
import { exportTrace, replay } from "./kernel/trace.js";
|
|
19
19
|
// src/index.ts
|
|
20
20
|
/**
|
|
21
21
|
* Mattebox: a modular adaptive-streaming engine for HLS and DASH.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
// src/kernel/append-queue.ts
|
|
3
3
|
function isQuotaError(err) {
|
|
4
4
|
return err instanceof DOMException && err.name === "QuotaExceededError";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
1
|
import { createBus } from "./bus.js";
|
|
3
2
|
import { createEffectRunner } from "./effects.js";
|
|
4
3
|
import { createSegmentPreparer } from "./prepare.js";
|
|
5
4
|
import { createReducer, initialState } from "./reducer.js";
|
|
5
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
1
|
import { createAppendQueue } from "./append-queue.js";
|
|
3
2
|
import { createEvictor } from "./evictor.js";
|
|
3
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
// src/kernel/mse.ts
|
|
5
5
|
function managedMediaSource() {
|
|
6
6
|
return globalThis.ManagedMediaSource;
|
|
@@ -78,6 +78,17 @@ function createMseController(options) {
|
|
|
78
78
|
for (const { queue } of buffers.values()) if (!queue.idle()) return false;
|
|
79
79
|
return true;
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* Whether a duration or a live window can still apply to the current
|
|
83
|
+
* MediaSource: it is open, or attached and waiting for sourceopen. A
|
|
84
|
+
* manifest can parse before sourceopen, and a duration dropped then is
|
|
85
|
+
* never sent again: the first init segment sets an unknown duration, which
|
|
86
|
+
* Chrome reports as Infinity for the whole session.
|
|
87
|
+
*/
|
|
88
|
+
function accepting() {
|
|
89
|
+
if (mediaSource === null) return false;
|
|
90
|
+
return mediaSource.readyState === "open" || !opened;
|
|
91
|
+
}
|
|
81
92
|
/** endOfStream and duration assignment both throw while any buffer updates; run them at quiet points. */
|
|
82
93
|
function runDeferredGlobalOps() {
|
|
83
94
|
if (mediaSource === null || mediaSource.readyState !== "open" || !allIdle()) return;
|
|
@@ -214,6 +225,7 @@ function createMseController(options) {
|
|
|
214
225
|
}
|
|
215
226
|
opened = true;
|
|
216
227
|
absorb({ type: "MEDIASOURCE_OPEN" });
|
|
228
|
+
runDeferredGlobalOps();
|
|
217
229
|
for (const effect of pendingCreates.splice(0)) createSourceBuffer(effect);
|
|
218
230
|
});
|
|
219
231
|
listen(ms, "sourceclose", () => {
|
|
@@ -447,12 +459,12 @@ function createMseController(options) {
|
|
|
447
459
|
runDeferredGlobalOps();
|
|
448
460
|
});
|
|
449
461
|
runner.register("setDuration", (effect) => {
|
|
450
|
-
if (
|
|
462
|
+
if (!accepting()) return void 0;
|
|
451
463
|
pendingDuration = effect.seconds;
|
|
452
464
|
runDeferredGlobalOps();
|
|
453
465
|
});
|
|
454
466
|
runner.register("setLiveSeekableRange", (effect) => {
|
|
455
|
-
if (
|
|
467
|
+
if (!accepting()) return void 0;
|
|
456
468
|
pendingLiveRange = {
|
|
457
469
|
start: effect.start,
|
|
458
470
|
end: effect.end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
-
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
|
|
3
3
|
// src/kernel/prepare.ts
|
|
4
4
|
/**
|
|
5
5
|
* The boundary meta a transform and the probe receive. The content type
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
1
|
import { tickAfter } from "./effects.js";
|
|
3
2
|
import { cueFormat, normalizeMimeType, typeString } from "./mime.js";
|
|
4
3
|
import { findRendition, findTrackSite, isMainPicture, isTrick } from "./presentation.js";
|
|
5
4
|
import { applyRefresh } from "./refresh.js";
|
|
6
|
-
import { reconciledOffset, segmentAtTime } from "./timeline.js";
|
|
7
|
-
import { bufferedEndFrom, reachesEnd, schedule } from "./scheduler.js";
|
|
8
|
-
import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectWithoutProperties.js";
|
|
9
5
|
import { activeAudio, audioGroup, audioInGroup, availableGroups, canSwitchTo, codecFamily, createArbiter, planPinApply, withDeadGroups } from "./rendition-select.js";
|
|
6
|
+
import { bufferedEndFrom, reachesEnd, schedule } from "./scheduler.js";
|
|
10
7
|
import { sbIdFor } from "./sinks/mse-sink.js";
|
|
8
|
+
import { reconciledOffset, segmentAtTime } from "./timeline.js";
|
|
9
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
10
|
+
import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectWithoutProperties.js";
|
|
11
11
|
// src/kernel/reducer.ts
|
|
12
12
|
const _excluded = ["pendingInit"];
|
|
13
13
|
const _excluded2 = ["repeat"];
|
|
@@ -322,6 +322,7 @@ function reduceCommand(state, msg, cfg, hooks) {
|
|
|
322
322
|
case "DETACH": {
|
|
323
323
|
const [, aborts] = abortInflight(state);
|
|
324
324
|
const fresh = initialState(cfg);
|
|
325
|
+
forgetArbitration(hooks);
|
|
325
326
|
const { throughputEwma, throughputFastEwma } = state.stats;
|
|
326
327
|
return [_objectSpread2(_objectSpread2({}, fresh), {}, { stats: _objectSpread2(_objectSpread2({}, fresh.stats), {}, {
|
|
327
328
|
throughputEwma,
|
|
@@ -378,6 +379,7 @@ function reduceCommand(state, msg, cfg, hooks) {
|
|
|
378
379
|
case "UNLOAD": {
|
|
379
380
|
const [, aborts] = abortInflight(state);
|
|
380
381
|
const fresh = initialState(cfg);
|
|
382
|
+
forgetArbitration(hooks);
|
|
381
383
|
const phase = state.lifecycle.phase === "idle" ? "idle" : "attaching";
|
|
382
384
|
const clears = [...state.cues.keys()].map((trackId) => ({
|
|
383
385
|
kind: "clearCues",
|
|
@@ -1400,6 +1402,15 @@ function driveScheduling(state, hooks, cfg) {
|
|
|
1400
1402
|
}), effects];
|
|
1401
1403
|
}
|
|
1402
1404
|
const arbiters = /* @__PURE__ */ new WeakMap();
|
|
1405
|
+
/**
|
|
1406
|
+
* Drops the arbiters' last outcome with the source. They are memoized on the
|
|
1407
|
+
* quality version, which the reset state starts again at 0, so an outcome
|
|
1408
|
+
* kept across an UNLOAD or a DETACH would answer the next source's first
|
|
1409
|
+
* decision with a rendition of the last one. Its video then never fetches.
|
|
1410
|
+
*/
|
|
1411
|
+
function forgetArbitration(hooks) {
|
|
1412
|
+
arbiters.delete(hooks);
|
|
1413
|
+
}
|
|
1403
1414
|
function arbiterFor(hooks, contentType) {
|
|
1404
1415
|
let pair = arbiters.get(hooks);
|
|
1405
1416
|
if (pair === void 0) {
|
|
@@ -1442,7 +1453,8 @@ function isCommand(msg) {
|
|
|
1442
1453
|
* slice keeps the previous value and an error event effect is emitted, so
|
|
1443
1454
|
* one broken stage cannot corrupt kernel state.
|
|
1444
1455
|
*/
|
|
1445
|
-
function createReducer(slices, config,
|
|
1456
|
+
function createReducer(slices, config, shared = {}) {
|
|
1457
|
+
const hooks = Object.create(shared);
|
|
1446
1458
|
const sliceList = slices ? [...slices] : [];
|
|
1447
1459
|
const cfg = resolveConfig(config);
|
|
1448
1460
|
const DRIVING_FACTS = /* @__PURE__ */ new Set([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
// src/kernel/refresh.ts
|
|
3
3
|
/** The presentation with the refresh merged, or null when it names no rendition the presentation holds. */
|
|
4
4
|
function applyRefresh(presentation, refresh) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
1
|
import { findRendition, findTrackSite } from "./presentation.js";
|
|
3
|
-
import { segmentAtTime } from "./timeline.js";
|
|
4
2
|
import { bufferedEndFrom } from "./scheduler.js";
|
|
5
|
-
import
|
|
3
|
+
import { segmentAtTime } from "./timeline.js";
|
|
4
|
+
import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectWithoutProperties.js";
|
|
5
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
6
6
|
// src/kernel/rendition-select.ts
|
|
7
7
|
const _excluded = [
|
|
8
8
|
"maxHeight",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
|
|
2
1
|
import { buildEpochs, epochForSeq, epochKey, isIndexed, segmentAtTime, timestampOffsetFor } from "./timeline.js";
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
// src/kernel/scheduler.ts
|
|
4
4
|
const DEFAULT_GAP_TOLERANCE = .25;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { adoptTextTrack, emptyTextTrack } from "./text-track-sink.js";
|
|
2
1
|
import { syncNativeTracks } from "./native-sync.js";
|
|
2
|
+
import { adoptTextTrack, emptyTextTrack } from "./text-track-sink.js";
|
|
3
3
|
// src/kernel/sinks/caption-tracks.ts
|
|
4
4
|
/** A VTTCue, or null where the browser has none. */
|
|
5
5
|
function vttCue(start, end, text) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cueFormat } from "../mime.js";
|
|
2
|
-
import { createTextTrackSink } from "./text-track-sink.js";
|
|
3
2
|
import { syncNativeTracks } from "./native-sync.js";
|
|
3
|
+
import { createTextTrackSink } from "./text-track-sink.js";
|
|
4
4
|
// src/kernel/sinks/text-formats.ts
|
|
5
5
|
const shared = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
/** The cue format of a text track: its MIME type, with the codec family in fMP4. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
// src/kernel/timeline.ts
|
|
3
3
|
function isIndexed(addressing) {
|
|
4
4
|
return !Array.isArray(addressing) && addressing.kind === "indexed";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
function isBytes(value) {
|
|
3
3
|
return value instanceof ArrayBuffer || ArrayBuffer.isView(value);
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
// src/kernel/transport.ts
|
|
4
4
|
const DEFAULT_RETRY_POLICY = {
|
|
5
5
|
maxAttempts: 3,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { definePreset } from "../define.js";
|
|
2
|
-
import { base
|
|
2
|
+
import { base } from "../tiers/base.js";
|
|
3
|
+
import { dashLine } from "../tiers/dash.js";
|
|
3
4
|
// src/presets/dash/index.ts
|
|
4
5
|
/**
|
|
5
6
|
* The `dash` preset: DASH on demand and live, the base.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { definePreset } from "../define.js";
|
|
2
|
-
import { base
|
|
2
|
+
import { base } from "../tiers/base.js";
|
|
3
|
+
import { dashLine } from "../tiers/dash.js";
|
|
4
|
+
import { drmTier } from "../tiers/drm.js";
|
|
3
5
|
// src/presets/dash-drm/index.ts
|
|
4
6
|
/**
|
|
5
7
|
* The `dash-drm` preset: `dash` plus the EME stages, for protected DASH.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { definePreset } from "../define.js";
|
|
2
|
-
import { base
|
|
2
|
+
import { base } from "../tiers/base.js";
|
|
3
|
+
import { dashLlLine } from "../tiers/dash-ll.js";
|
|
4
|
+
import { lowLatencyTier } from "../tiers/low-latency.js";
|
|
3
5
|
// src/presets/dash-ll/index.ts
|
|
4
6
|
/**
|
|
5
7
|
* The `dash-ll` preset: low-latency DASH on demand and live, CMAF segments,
|
|
@@ -1,6 +1,6 @@
|
|
|
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
1
|
import { mattebox } from "../index.js";
|
|
2
|
+
import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectWithoutProperties.js";
|
|
3
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
// src/presets/define.ts
|
|
5
5
|
const _excluded = ["stages", "without"];
|
|
6
6
|
/** Applies the merge rule. Exported for tests; presets call it through `stages`. */
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { definePreset } from "../define.js";
|
|
2
|
-
import { base
|
|
2
|
+
import { base } from "../tiers/base.js";
|
|
3
|
+
import { dashLine } from "../tiers/dash.js";
|
|
4
|
+
import { hlsLine } from "../tiers/hls.js";
|
|
3
5
|
// src/presets/dual/index.ts
|
|
4
6
|
/**
|
|
5
7
|
* The `dual` preset: both protocol lines, CMAF segments, the base. One
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { definePreset } from "../define.js";
|
|
2
|
-
import { base
|
|
2
|
+
import { base } from "../tiers/base.js";
|
|
3
|
+
import { dashLine } from "../tiers/dash.js";
|
|
4
|
+
import { drmTier } from "../tiers/drm.js";
|
|
5
|
+
import { hlsLine } from "../tiers/hls.js";
|
|
3
6
|
// src/presets/dual-drm/index.ts
|
|
4
7
|
/**
|
|
5
8
|
* The `dual-drm` preset: `dual` plus the EME stages.
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { definePreset } from "../define.js";
|
|
2
|
-
import { base
|
|
2
|
+
import { base } from "../tiers/base.js";
|
|
3
|
+
import { dashLlLine } from "../tiers/dash-ll.js";
|
|
4
|
+
import { hlsLlLine } from "../tiers/hls-ll.js";
|
|
5
|
+
import { lowLatencyTier } from "../tiers/low-latency.js";
|
|
3
6
|
// src/presets/dual-ll/index.ts
|
|
4
7
|
/**
|
|
5
8
|
* The `dual-ll` preset: low-latency HLS and low-latency DASH, CMAF
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { definePreset } from "../define.js";
|
|
2
|
-
import { base
|
|
2
|
+
import { base } from "../tiers/base.js";
|
|
3
|
+
import { dashLine } from "../tiers/dash.js";
|
|
4
|
+
import { hlsLine } from "../tiers/hls.js";
|
|
5
|
+
import { tsTier } from "../tiers/ts.js";
|
|
3
6
|
// src/presets/dual-ts/index.ts
|
|
4
7
|
/**
|
|
5
8
|
* The `dual-ts` preset: `dual` plus the MPEG-TS family.
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { definePreset } from "../define.js";
|
|
2
|
-
import { base
|
|
2
|
+
import { base } from "../tiers/base.js";
|
|
3
|
+
import { dashLine } from "../tiers/dash.js";
|
|
4
|
+
import { drmTier } from "../tiers/drm.js";
|
|
5
|
+
import { hlsLine } from "../tiers/hls.js";
|
|
6
|
+
import { tsTier } from "../tiers/ts.js";
|
|
3
7
|
// src/presets/dual-ts-drm/index.ts
|
|
4
8
|
/**
|
|
5
9
|
* The `dual-ts-drm` preset: both lines, MPEG-TS, and DRM. Everything a production backend needs; `full` adds only the accessories.
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import trickPlay from "../../stages/trick-play/index.js";
|
|
2
|
-
import timedMetadata from "../../stages/timed-metadata/index.js";
|
|
3
|
-
import thumbnails from "../../stages/thumbnails/index.js";
|
|
4
|
-
import textTtml from "../../stages/text-ttml/index.js";
|
|
5
|
-
import textCea708 from "../../stages/text-cea708/index.js";
|
|
6
|
-
import renditionNames from "../../stages/rendition-names/index.js";
|
|
7
|
-
import qoe from "../../stages/qoe/index.js";
|
|
8
|
-
import hdr from "../../stages/hdr/index.js";
|
|
9
|
-
import cmsd from "../../stages/cmsd/index.js";
|
|
10
1
|
import chapters from "../../stages/chapters/index.js";
|
|
2
|
+
import cmsd from "../../stages/cmsd/index.js";
|
|
3
|
+
import hdr from "../../stages/hdr/index.js";
|
|
4
|
+
import qoe from "../../stages/qoe/index.js";
|
|
5
|
+
import renditionNames from "../../stages/rendition-names/index.js";
|
|
6
|
+
import textCea708 from "../../stages/text-cea708/index.js";
|
|
7
|
+
import textTtml from "../../stages/text-ttml/index.js";
|
|
8
|
+
import thumbnails from "../../stages/thumbnails/index.js";
|
|
9
|
+
import timedMetadata from "../../stages/timed-metadata/index.js";
|
|
10
|
+
import trickPlay from "../../stages/trick-play/index.js";
|
|
11
11
|
import { definePreset } from "../define.js";
|
|
12
|
-
import { base
|
|
12
|
+
import { base } from "../tiers/base.js";
|
|
13
|
+
import { dashLlLine } from "../tiers/dash-ll.js";
|
|
14
|
+
import { drmTier } from "../tiers/drm.js";
|
|
15
|
+
import { hlsLlLine } from "../tiers/hls-ll.js";
|
|
16
|
+
import { lowLatencyTier } from "../tiers/low-latency.js";
|
|
17
|
+
import { tsTier } from "../tiers/ts.js";
|
|
13
18
|
// src/presets/full/index.ts
|
|
14
19
|
/**
|
|
15
20
|
* The `full` preset: `dual-ts-drm` with low-latency HLS, low-latency DASH
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { definePreset } from "../define.js";
|
|
2
|
-
import { base
|
|
2
|
+
import { base } from "../tiers/base.js";
|
|
3
|
+
import { hlsLine } from "../tiers/hls.js";
|
|
3
4
|
// src/presets/hls/index.ts
|
|
4
5
|
/**
|
|
5
6
|
* The `hls` preset: HLS on demand and live, CMAF segments, the base.
|