@amazon/vinyl 3.2.1 → 3.2.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/dist/index.cjs +36 -22
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +61 -46
- package/dist/index.js.map +3 -3
- package/dist/test/integ.es5.js +285 -281
- package/dist/test/integ.js +69 -22
- package/dist/test/integ.js.map +2 -2
- package/dist/types/current/drm/DrmControllerImpl.d.ts +6 -0
- package/dist/types/current/drm/DrmControllerImpl.d.ts.map +1 -1
- package/dist/types/current/drm/DrmControllerImpl.js +11 -1
- package/dist/types/current/playback/PlaybackControllerImpl.d.ts +8 -2
- package/dist/types/current/playback/PlaybackControllerImpl.d.ts.map +1 -1
- package/dist/types/current/playback/PlaybackControllerImpl.js +38 -33
- package/dist/types/current/track/mse/MseTrack.d.ts +0 -1
- package/dist/types/current/track/mse/MseTrack.d.ts.map +1 -1
- package/dist/types/current/track/mse/MseTrack.js +5 -6
- package/dist/types/current/tsconfig.tsbuildinfo +1 -1
- package/dist/types/ts3.7/drm/DrmControllerImpl.d.ts +6 -0
- package/dist/types/ts3.7/playback/PlaybackControllerImpl.d.ts +8 -2
- package/dist/types/ts3.7/track/mse/MseTrack.d.ts +0 -1
- package/dist/types/ts4.1/drm/DrmControllerImpl.d.ts +6 -0
- package/dist/types/ts4.1/playback/PlaybackControllerImpl.d.ts +8 -2
- package/dist/types/ts4.1/track/mse/MseTrack.d.ts +0 -1
- package/dist/types/ts4.7/drm/DrmControllerImpl.d.ts +6 -0
- package/dist/types/ts4.7/playback/PlaybackControllerImpl.d.ts +8 -2
- package/dist/types/ts4.7/track/mse/MseTrack.d.ts +0 -1
- package/dist/unit/types/current/drm/DrmControllerImpl.test.js +19 -1
- package/dist/unit/types/current/playback/PlaybackControllerImpl.test.js +15 -0
- package/dist/unit/types/current/streaming/MseTrack.test.js +15 -0
- package/dist/unit/types/current/tsconfig.tsbuildinfo +1 -1
- package/dist/vinylTestUtil/types/current/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -1636,6 +1636,7 @@ import {
|
|
|
1636
1636
|
logDebug as logDebug3,
|
|
1637
1637
|
logError as logError2,
|
|
1638
1638
|
logVerbose as logVerbose2,
|
|
1639
|
+
logWarn,
|
|
1639
1640
|
memoize as memoize4,
|
|
1640
1641
|
noop as noop3,
|
|
1641
1642
|
normalizeHeadersInit,
|
|
@@ -1885,6 +1886,7 @@ function createFairPlaySessionInitData(initData, contentId, certificateData) {
|
|
|
1885
1886
|
// src/drm/DrmControllerImpl.ts
|
|
1886
1887
|
var LICENSE_TIMEOUT = 90;
|
|
1887
1888
|
var LICENSE_TIMEOUT_MESSAGE = "License provider timed out after {time}s";
|
|
1889
|
+
var EXCESSIVE_SESSION_COUNT = 20;
|
|
1888
1890
|
var DrmControllerImpl = class extends EventHostImpl5 {
|
|
1889
1891
|
constructor(deps, options) {
|
|
1890
1892
|
super();
|
|
@@ -2101,6 +2103,13 @@ var DrmControllerImpl = class extends EventHostImpl5 {
|
|
|
2101
2103
|
trackUri
|
|
2102
2104
|
});
|
|
2103
2105
|
this.sessions.push(newSession);
|
|
2106
|
+
logVerbose2(this, `total sessions: ${this.sessions.length}`);
|
|
2107
|
+
if (this.sessions.length === EXCESSIVE_SESSION_COUNT + 1) {
|
|
2108
|
+
logWarn(
|
|
2109
|
+
this,
|
|
2110
|
+
`${this.sessions.length} open key sessions exceeds ${EXCESSIVE_SESSION_COUNT}; sessions may be leaking (not closing on track deactivation)`
|
|
2111
|
+
);
|
|
2112
|
+
}
|
|
2104
2113
|
this.dispatch("sessionCreate", {
|
|
2105
2114
|
initDataType: newSession.initDataType,
|
|
2106
2115
|
mimeType: newSession.mimeType
|
|
@@ -2530,7 +2539,7 @@ import {
|
|
|
2530
2539
|
globalRef as globalRef3,
|
|
2531
2540
|
globalTarget,
|
|
2532
2541
|
IllegalStateError,
|
|
2533
|
-
logWarn,
|
|
2542
|
+
logWarn as logWarn2,
|
|
2534
2543
|
remove as remove2,
|
|
2535
2544
|
substitute
|
|
2536
2545
|
} from "@amazon/vinyl-util";
|
|
@@ -2552,7 +2561,7 @@ var PlayerRegistryImpl = class {
|
|
|
2552
2561
|
const n = this._players.length;
|
|
2553
2562
|
if (n > this.maxPlayersWarning && !this.gaveMaxPlayersWarning) {
|
|
2554
2563
|
this.gaveMaxPlayersWarning = true;
|
|
2555
|
-
|
|
2564
|
+
logWarn2(
|
|
2556
2565
|
globalTarget,
|
|
2557
2566
|
substitute(locale.maxPlayersWarning, { count: n })
|
|
2558
2567
|
);
|
|
@@ -2628,7 +2637,7 @@ function configureVinylGlobal(options) {
|
|
|
2628
2637
|
import { parseVersion } from "@amazon/vinyl-util";
|
|
2629
2638
|
var vinylVersion = /* @__PURE__ */ parseVersion(
|
|
2630
2639
|
/* istanbul ignore next */
|
|
2631
|
-
"3.2.
|
|
2640
|
+
"3.2.2"
|
|
2632
2641
|
);
|
|
2633
2642
|
|
|
2634
2643
|
// src/global/globalRef.ts
|
|
@@ -3176,6 +3185,7 @@ var LIVE_DURATION = 4294967296;
|
|
|
3176
3185
|
import {
|
|
3177
3186
|
Abort,
|
|
3178
3187
|
AbortError as AbortError2,
|
|
3188
|
+
createAbortSlot,
|
|
3179
3189
|
Browser,
|
|
3180
3190
|
clamp,
|
|
3181
3191
|
closeTo as closeTo2,
|
|
@@ -3188,7 +3198,7 @@ import {
|
|
|
3188
3198
|
hasBrowser,
|
|
3189
3199
|
logDebug as logDebug6,
|
|
3190
3200
|
logInfo,
|
|
3191
|
-
logWarn as
|
|
3201
|
+
logWarn as logWarn3,
|
|
3192
3202
|
nextEventAsPromise as nextEventAsPromise2,
|
|
3193
3203
|
noop as noop4,
|
|
3194
3204
|
onAny,
|
|
@@ -3222,15 +3232,13 @@ var PlaybackControllerImpl = class extends EventHostImpl7 {
|
|
|
3222
3232
|
__publicField(this, "_playing", false);
|
|
3223
3233
|
__publicField(this, "_seeking", false);
|
|
3224
3234
|
__publicField(this, "_waiting", false);
|
|
3225
|
-
|
|
3226
|
-
__publicField(this, "_seekId", 0);
|
|
3235
|
+
__publicField(this, "seekAbortSlot", /* @__PURE__ */ createAbortSlot());
|
|
3227
3236
|
// Stops the stall detector started after the last seek, if any.
|
|
3228
3237
|
__publicField(this, "stopStallDetection", null);
|
|
3229
3238
|
// default user volume (0.0 to 1.0 scale)
|
|
3230
3239
|
__publicField(this, "userVolume", 1);
|
|
3231
3240
|
__publicField(this, "_pendingPlay", null);
|
|
3232
3241
|
__publicField(this, "playAbort", null);
|
|
3233
|
-
__publicField(this, "disposeAbort", /* @__PURE__ */ new Abort());
|
|
3234
3242
|
__publicField(this, "options");
|
|
3235
3243
|
this.options = __spreadValues(__spreadProps(__spreadValues({}, defaultPlaybackControllerImplOptions), {
|
|
3236
3244
|
minSeekableBuffer: getMinSeekableBufferDefault()
|
|
@@ -3241,8 +3249,7 @@ var PlaybackControllerImpl = class extends EventHostImpl7 {
|
|
|
3241
3249
|
const { add } = this.disposer;
|
|
3242
3250
|
add(() => {
|
|
3243
3251
|
var _a;
|
|
3244
|
-
this.
|
|
3245
|
-
this.disposeAbort.dispose();
|
|
3252
|
+
this.seekAbortSlot.abort();
|
|
3246
3253
|
(_a = this.stopStallDetection) == null ? void 0 : _a.call(this);
|
|
3247
3254
|
});
|
|
3248
3255
|
this.domEvents = add(
|
|
@@ -3655,14 +3662,10 @@ var PlaybackControllerImpl = class extends EventHostImpl7 {
|
|
|
3655
3662
|
async seekTo(time, tolerance = 0.5) {
|
|
3656
3663
|
var _a;
|
|
3657
3664
|
logDebug6(this, `seekTo: ${time}`);
|
|
3658
|
-
const seekId = ++this._seekId;
|
|
3659
3665
|
(_a = this.stopStallDetection) == null ? void 0 : _a.call(this);
|
|
3660
3666
|
this.stopStallDetection = null;
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
logDebug6(this, `seekTo: ${time} superseded by a newer seek`);
|
|
3664
|
-
return true;
|
|
3665
|
-
};
|
|
3667
|
+
this.seekAbortSlot.abort();
|
|
3668
|
+
const seekAbort = this.seekAbortSlot.value;
|
|
3666
3669
|
const nextEvent = (type, options) => {
|
|
3667
3670
|
var _a2;
|
|
3668
3671
|
return nextEventAsPromise2(this, type, {
|
|
@@ -3670,12 +3673,25 @@ var PlaybackControllerImpl = class extends EventHostImpl7 {
|
|
|
3670
3673
|
timeoutMessage: `seek timed out on ${type} event after {time}s`,
|
|
3671
3674
|
timeoutOrigin: ErrorOrigin12.INTERNAL,
|
|
3672
3675
|
timeoutLevel: ErrorLevel7.WARN,
|
|
3673
|
-
abort:
|
|
3676
|
+
abort: seekAbort
|
|
3674
3677
|
});
|
|
3675
3678
|
};
|
|
3679
|
+
try {
|
|
3680
|
+
await this.doSeek(time, tolerance, seekAbort, nextEvent);
|
|
3681
|
+
} catch (error) {
|
|
3682
|
+
if (seekAbort.aborted() && !this.disposed) return;
|
|
3683
|
+
throw error;
|
|
3684
|
+
}
|
|
3685
|
+
}
|
|
3686
|
+
/**
|
|
3687
|
+
* The body of a single {@link seekTo} attempt. Extracted so {@link seekTo}
|
|
3688
|
+
* can wrap it with per-seek abort/supersession handling. `seekAbort` is
|
|
3689
|
+
* aborted when a newer seek supersedes this one (or on dispose).
|
|
3690
|
+
* @private
|
|
3691
|
+
*/
|
|
3692
|
+
async doSeek(time, tolerance, seekAbort, nextEvent) {
|
|
3676
3693
|
if (!this.hasMetadata) {
|
|
3677
3694
|
await nextEvent("loadedMetadata");
|
|
3678
|
-
if (superseded()) return;
|
|
3679
3695
|
}
|
|
3680
3696
|
const seekable = this.seekable;
|
|
3681
3697
|
const range = seekable.getRangeAt(
|
|
@@ -3683,7 +3699,7 @@ var PlaybackControllerImpl = class extends EventHostImpl7 {
|
|
|
3683
3699
|
tolerance
|
|
3684
3700
|
);
|
|
3685
3701
|
if (range == null) {
|
|
3686
|
-
|
|
3702
|
+
logWarn3(
|
|
3687
3703
|
this,
|
|
3688
3704
|
`seekTo: seek outside of seekable ranges, seek ignored`,
|
|
3689
3705
|
seekable.ranges
|
|
@@ -3706,7 +3722,7 @@ var PlaybackControllerImpl = class extends EventHostImpl7 {
|
|
|
3706
3722
|
);
|
|
3707
3723
|
} else {
|
|
3708
3724
|
const nullIfStuck = (error) => {
|
|
3709
|
-
if (this.
|
|
3725
|
+
if (this.disposed) throw error;
|
|
3710
3726
|
return null;
|
|
3711
3727
|
};
|
|
3712
3728
|
const seekOnce = async (reSeeking) => {
|
|
@@ -3720,7 +3736,7 @@ var PlaybackControllerImpl = class extends EventHostImpl7 {
|
|
|
3720
3736
|
}).catch(nullIfStuck);
|
|
3721
3737
|
};
|
|
3722
3738
|
let seekedEvent = await seekOnce(false);
|
|
3723
|
-
for (let attempt = 0; !
|
|
3739
|
+
for (let attempt = 0; !seekAbort.aborted() && attempt < SEEK_RETRY_LIMIT && (seekedEvent === null || seekedEvent.reason === "seeked" && !closeTo2(clampedTime, this.currentTime, tolerance)); attempt++) {
|
|
3724
3740
|
if (seekedEvent === null) void this.media.play().catch(noop4);
|
|
3725
3741
|
logDebug6(this, `seekTo: re-seeking to ${clampedTime}`);
|
|
3726
3742
|
seekedEvent = await seekOnce(true);
|
|
@@ -3728,7 +3744,7 @@ var PlaybackControllerImpl = class extends EventHostImpl7 {
|
|
|
3728
3744
|
if ((seekedEvent == null ? void 0 : seekedEvent.reason) === "emptied") {
|
|
3729
3745
|
throw new AbortError2();
|
|
3730
3746
|
}
|
|
3731
|
-
if (!this.paused) this.startStallDetection();
|
|
3747
|
+
if (!this.paused && !seekAbort.aborted()) this.startStallDetection();
|
|
3732
3748
|
}
|
|
3733
3749
|
}
|
|
3734
3750
|
/**
|
|
@@ -3980,7 +3996,7 @@ var audioOptionsValidator = /* @__PURE__ */ object7({
|
|
|
3980
3996
|
|
|
3981
3997
|
// src/streaming/buffering/BufferingController.ts
|
|
3982
3998
|
import {
|
|
3983
|
-
createAbortSlot,
|
|
3999
|
+
createAbortSlot as createAbortSlot2,
|
|
3984
4000
|
createDisposer as createDisposer8,
|
|
3985
4001
|
createLogPrefix as createLogPrefix5,
|
|
3986
4002
|
createTaskQueue,
|
|
@@ -3991,7 +4007,7 @@ import {
|
|
|
3991
4007
|
logDebug as logDebug7,
|
|
3992
4008
|
LogLevel as LogLevel2,
|
|
3993
4009
|
logVerbose as logVerbose3,
|
|
3994
|
-
logWarn as
|
|
4010
|
+
logWarn as logWarn4,
|
|
3995
4011
|
throttle as throttle2
|
|
3996
4012
|
} from "@amazon/vinyl-util";
|
|
3997
4013
|
|
|
@@ -4100,7 +4116,7 @@ var BufferingControllerImpl = class extends EventHostImpl8 {
|
|
|
4100
4116
|
__publicField(this, "disposer", /* @__PURE__ */ createDisposer8());
|
|
4101
4117
|
__publicField(this, "_active", false);
|
|
4102
4118
|
__publicField(this, "activateDisposer", null);
|
|
4103
|
-
__publicField(this, "segmentAbort", /* @__PURE__ */
|
|
4119
|
+
__publicField(this, "segmentAbort", /* @__PURE__ */ createAbortSlot2());
|
|
4104
4120
|
/**
|
|
4105
4121
|
* Resets the throttle and polls the buffer on the next frame.
|
|
4106
4122
|
*/
|
|
@@ -4151,7 +4167,7 @@ var BufferingControllerImpl = class extends EventHostImpl8 {
|
|
|
4151
4167
|
const newAppendSize = this.getMaxAppendSize(contentType2) * QUOTA_REACHED_SCALE;
|
|
4152
4168
|
if (newAppendSize >= MIN_APPEND_SIZE) {
|
|
4153
4169
|
sourceBufferQuotas.set(contentType2, newAppendSize);
|
|
4154
|
-
|
|
4170
|
+
logWarn4(
|
|
4155
4171
|
this,
|
|
4156
4172
|
"QuotaExceededError, new source buffer limit:",
|
|
4157
4173
|
(newAppendSize / 1024 / 1024).toFixed(1) + " MiB"
|
|
@@ -4447,7 +4463,7 @@ var BufferingControllerImpl = class extends EventHostImpl8 {
|
|
|
4447
4463
|
const contentType2 = quality == null ? void 0 : quality.contentType;
|
|
4448
4464
|
if (!mimeType || !contentType2) return false;
|
|
4449
4465
|
if (!denylistCodecsFromMimeType(mimeType)) return false;
|
|
4450
|
-
|
|
4466
|
+
logWarn4(
|
|
4451
4467
|
this,
|
|
4452
4468
|
"SourceBuffer append failed; denylisting codec and requesting reload:",
|
|
4453
4469
|
mimeType
|
|
@@ -4523,7 +4539,7 @@ import {
|
|
|
4523
4539
|
IllegalStateError as IllegalStateError2,
|
|
4524
4540
|
isSilentError as isSilentError3,
|
|
4525
4541
|
logDebug as logDebug8,
|
|
4526
|
-
logWarn as
|
|
4542
|
+
logWarn as logWarn5,
|
|
4527
4543
|
ReportableError as ReportableError8,
|
|
4528
4544
|
toJson as toJson2,
|
|
4529
4545
|
toLowerCase as toLowerCase2
|
|
@@ -4646,7 +4662,7 @@ var MediaSourceControllerImpl = class extends EventHostImpl9 {
|
|
|
4646
4662
|
try {
|
|
4647
4663
|
URL.revokeObjectURL(this.objectUrl);
|
|
4648
4664
|
} catch (error) {
|
|
4649
|
-
|
|
4665
|
+
logWarn5(this, "error revoking object url", error);
|
|
4650
4666
|
}
|
|
4651
4667
|
}
|
|
4652
4668
|
get sourceBufferCount() {
|
|
@@ -5684,7 +5700,7 @@ function createDefaultMediaTimelineTransformer(deps) {
|
|
|
5684
5700
|
// src/streaming/ManifestControllerImpl.ts
|
|
5685
5701
|
import { data } from "@amazon/vinyl-observable";
|
|
5686
5702
|
import {
|
|
5687
|
-
createAbortSlot as
|
|
5703
|
+
createAbortSlot as createAbortSlot3,
|
|
5688
5704
|
createDisposer as createDisposer11,
|
|
5689
5705
|
EventHostImpl as EventHostImpl11,
|
|
5690
5706
|
logDebug as logDebug11
|
|
@@ -5694,7 +5710,7 @@ var ManifestControllerImpl = class {
|
|
|
5694
5710
|
__publicField(this, "deps", deps);
|
|
5695
5711
|
__publicField(this, "_data");
|
|
5696
5712
|
__publicField(this, "_error", null);
|
|
5697
|
-
__publicField(this, "abortSlot", /* @__PURE__ */
|
|
5713
|
+
__publicField(this, "abortSlot", /* @__PURE__ */ createAbortSlot3());
|
|
5698
5714
|
__publicField(this, "disposer", /* @__PURE__ */ createDisposer11());
|
|
5699
5715
|
__publicField(this, "events", /* @__PURE__ */ new EventHostImpl11());
|
|
5700
5716
|
__publicField(this, "manifestSpanArmed", true);
|
|
@@ -5820,7 +5836,7 @@ import {
|
|
|
5820
5836
|
|
|
5821
5837
|
// src/streaming/SegmentDataSlot.ts
|
|
5822
5838
|
import {
|
|
5823
|
-
createAbortSlot as
|
|
5839
|
+
createAbortSlot as createAbortSlot4,
|
|
5824
5840
|
isSilentError as isSilentError4
|
|
5825
5841
|
} from "@amazon/vinyl-util";
|
|
5826
5842
|
var SegmentStatus = /* @__PURE__ */ ((SegmentStatus2) => {
|
|
@@ -5838,7 +5854,7 @@ var SegmentDataSlot = class {
|
|
|
5838
5854
|
*/
|
|
5839
5855
|
__publicField(this, "onStatusChange", null);
|
|
5840
5856
|
__publicField(this, "_status", "inactive" /* INACTIVE */);
|
|
5841
|
-
__publicField(this, "abortSlot", /* @__PURE__ */
|
|
5857
|
+
__publicField(this, "abortSlot", /* @__PURE__ */ createAbortSlot4());
|
|
5842
5858
|
__publicField(this, "bufferPromise", null);
|
|
5843
5859
|
}
|
|
5844
5860
|
/**
|
|
@@ -6987,7 +7003,7 @@ function scoreTextTrack(track, prefs) {
|
|
|
6987
7003
|
|
|
6988
7004
|
// src/text/SidecarTextTrackController.ts
|
|
6989
7005
|
import {
|
|
6990
|
-
createAbortSlot as
|
|
7006
|
+
createAbortSlot as createAbortSlot5,
|
|
6991
7007
|
createDisposer as createDisposer13,
|
|
6992
7008
|
equalDeep,
|
|
6993
7009
|
EventHostImpl as EventHostImpl13,
|
|
@@ -7168,7 +7184,7 @@ var SidecarTextTrackController = class extends EventHostImpl13 {
|
|
|
7168
7184
|
// The DOM text track currently rendering cues, or null when hidden. Owned by
|
|
7169
7185
|
// the provider (never created/removed here).
|
|
7170
7186
|
__publicField(this, "_ref", null);
|
|
7171
|
-
__publicField(this, "loadAbort", /* @__PURE__ */
|
|
7187
|
+
__publicField(this, "loadAbort", /* @__PURE__ */ createAbortSlot5());
|
|
7172
7188
|
__publicField(this, "disposer", /* @__PURE__ */ createDisposer13());
|
|
7173
7189
|
const { add } = this.disposer;
|
|
7174
7190
|
add(deps.options.onData(() => this.refreshSelection()));
|
|
@@ -7562,7 +7578,7 @@ import { func as func2, isOneOf as isOneOf7 } from "@amazon/vinyl-validation";
|
|
|
7562
7578
|
|
|
7563
7579
|
// src/track/TrackBase.ts
|
|
7564
7580
|
import {
|
|
7565
|
-
createAbortSlot as
|
|
7581
|
+
createAbortSlot as createAbortSlot6,
|
|
7566
7582
|
createDisposer as createDisposer15,
|
|
7567
7583
|
emptyRanges as emptyRanges2,
|
|
7568
7584
|
equalDeep as equalDeep2,
|
|
@@ -7592,7 +7608,7 @@ var TrackBase = class extends EventHostImpl15 {
|
|
|
7592
7608
|
}
|
|
7593
7609
|
});
|
|
7594
7610
|
__publicField(this, "disposer", /* @__PURE__ */ createDisposer15());
|
|
7595
|
-
__publicField(this, "drmSessionAbort", /* @__PURE__ */
|
|
7611
|
+
__publicField(this, "drmSessionAbort", /* @__PURE__ */ createAbortSlot6());
|
|
7596
7612
|
/**
|
|
7597
7613
|
* Sets on handleError, cleared on 'reset'.
|
|
7598
7614
|
*/
|
|
@@ -8001,7 +8017,6 @@ import {
|
|
|
8001
8017
|
|
|
8002
8018
|
// src/track/mse/MseTrack.ts
|
|
8003
8019
|
import {
|
|
8004
|
-
Abort as Abort3,
|
|
8005
8020
|
equalDeep as equalDeep3,
|
|
8006
8021
|
first as first2,
|
|
8007
8022
|
IntersectionRanges,
|
|
@@ -8015,7 +8030,6 @@ var MseTrack = class extends TrackBase {
|
|
|
8015
8030
|
const deps = depsContainer.dependencies;
|
|
8016
8031
|
super(uri, type, deps);
|
|
8017
8032
|
__publicField(this, "streams", []);
|
|
8018
|
-
__publicField(this, "disposeAbort", /* @__PURE__ */ new Abort3());
|
|
8019
8033
|
__publicField(this, "lastPreloadOptions", null);
|
|
8020
8034
|
__publicField(this, "allFetchedRanges", []);
|
|
8021
8035
|
__publicField(this, "_fetchedRanges", /* @__PURE__ */ new IntersectionRanges(
|
|
@@ -8040,7 +8054,7 @@ var MseTrack = class extends TrackBase {
|
|
|
8040
8054
|
if (this.active) {
|
|
8041
8055
|
this.deps.drmController.initializeForPlayback(event.current, {
|
|
8042
8056
|
trackUri: this.uri,
|
|
8043
|
-
abort: this.
|
|
8057
|
+
abort: this.drmSessionAbort.value
|
|
8044
8058
|
});
|
|
8045
8059
|
}
|
|
8046
8060
|
});
|
|
@@ -8048,7 +8062,7 @@ var MseTrack = class extends TrackBase {
|
|
|
8048
8062
|
if (event.current == null) return;
|
|
8049
8063
|
this.deps.drmController.setBufferingDrmInfo(event.current, {
|
|
8050
8064
|
trackUri: this.uri,
|
|
8051
|
-
abort: this.
|
|
8065
|
+
abort: this.drmSessionAbort.value
|
|
8052
8066
|
});
|
|
8053
8067
|
});
|
|
8054
8068
|
add(
|
|
@@ -8286,7 +8300,7 @@ var MseTrack = class extends TrackBase {
|
|
|
8286
8300
|
this.streams.forEach((stream) => {
|
|
8287
8301
|
this.deps.drmController.initializeForPlayback(
|
|
8288
8302
|
stream.streamingQuality,
|
|
8289
|
-
{ trackUri: this.uri, abort: this.
|
|
8303
|
+
{ trackUri: this.uri, abort: this.drmSessionAbort.value }
|
|
8290
8304
|
);
|
|
8291
8305
|
});
|
|
8292
8306
|
this.deps.playbackSource.src = this.deps.mediaSourceController.activate();
|
|
@@ -8312,7 +8326,7 @@ var MseTrack = class extends TrackBase {
|
|
|
8312
8326
|
this.callOnStreams("deactivate");
|
|
8313
8327
|
this.deps.drmController.setBufferingDrmInfo(null, {
|
|
8314
8328
|
trackUri: this.uri,
|
|
8315
|
-
abort: this.
|
|
8329
|
+
abort: this.drmSessionAbort.value
|
|
8316
8330
|
});
|
|
8317
8331
|
(_b = this.deps.textTrackController) == null ? void 0 : _b.deactivate();
|
|
8318
8332
|
this.deps.playbackSource.src = null;
|
|
@@ -9919,7 +9933,7 @@ import {
|
|
|
9919
9933
|
logError as logError5,
|
|
9920
9934
|
logInfo as logInfo2,
|
|
9921
9935
|
logVerbose as logVerbose4,
|
|
9922
|
-
logWarn as
|
|
9936
|
+
logWarn as logWarn6,
|
|
9923
9937
|
LruCache,
|
|
9924
9938
|
noop as noop8,
|
|
9925
9939
|
resolveValueProvider as resolveValueProvider3
|
|
@@ -9971,7 +9985,7 @@ var TrackControllerImpl = class extends EventHostImpl17 {
|
|
|
9971
9985
|
if (this.currentTrackIsAdTrack) return;
|
|
9972
9986
|
const track = this._current;
|
|
9973
9987
|
if (!track) {
|
|
9974
|
-
|
|
9988
|
+
logWarn6(this, "an ended event was received with no current track");
|
|
9975
9989
|
return;
|
|
9976
9990
|
}
|
|
9977
9991
|
const interrupted = this.getQueueInterrupted();
|
|
@@ -10580,7 +10594,7 @@ import {
|
|
|
10580
10594
|
logInfo as logInfo3,
|
|
10581
10595
|
LogLevel as LogLevel3,
|
|
10582
10596
|
logVerbose as logVerbose5,
|
|
10583
|
-
logWarn as
|
|
10597
|
+
logWarn as logWarn7,
|
|
10584
10598
|
redispatchEvents as redispatchEvents4
|
|
10585
10599
|
} from "@amazon/vinyl-util";
|
|
10586
10600
|
import {
|
|
@@ -10682,7 +10696,7 @@ var VinylPlayer = class extends EventHostImpl18 {
|
|
|
10682
10696
|
add(
|
|
10683
10697
|
this.on("codecUnsupported", (event) => {
|
|
10684
10698
|
if (this.deps.adController.currentAdBreak) return;
|
|
10685
|
-
|
|
10699
|
+
logWarn7(
|
|
10686
10700
|
this,
|
|
10687
10701
|
"codec unsupported, reloading track:",
|
|
10688
10702
|
event.mimeType
|
|
@@ -11253,6 +11267,7 @@ export {
|
|
|
11253
11267
|
DrmError,
|
|
11254
11268
|
DrmKeySystem,
|
|
11255
11269
|
DrmRobustness,
|
|
11270
|
+
EXCESSIVE_SESSION_COUNT,
|
|
11256
11271
|
FAIR_PLAY_KEY_SYSTEMS,
|
|
11257
11272
|
FixedPlaybackQuality,
|
|
11258
11273
|
HtmlTextTrackRenderer,
|