@byteplus/veplayer-plugin 2.4.0-rc.3 → 2.4.0-rc.4
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/esm/index.development.js +133 -43
- package/esm/index.production.js +3 -3
- package/esm/veplayer.plugin.flv.development.js +21 -7
- package/esm/veplayer.plugin.flv.production.js +1 -1
- package/esm/veplayer.plugin.hls.development.js +104 -28
- package/esm/veplayer.plugin.hls.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.flv.development.js +21 -7
- package/umd/veplayer.plugin.flv.production.js +1 -1
- package/umd/veplayer.plugin.hls.development.js +104 -28
- package/umd/veplayer.plugin.hls.production.js +1 -1
package/package.json
CHANGED
|
@@ -1542,7 +1542,7 @@
|
|
|
1542
1542
|
}
|
|
1543
1543
|
return offsetTime;
|
|
1544
1544
|
};
|
|
1545
|
-
var version = "3.0.
|
|
1545
|
+
var version = "3.0.19-rc.0";
|
|
1546
1546
|
var ERROR_MAP = {
|
|
1547
1547
|
1: 5101,
|
|
1548
1548
|
2: 5102,
|
|
@@ -2790,6 +2790,7 @@
|
|
|
2790
2790
|
MSE_APPEND_BUFFER: "MSE_APPEND_BUFFER",
|
|
2791
2791
|
MSE_OTHER: "MSE_OTHER",
|
|
2792
2792
|
MSE_FULL: "MSE_FULL",
|
|
2793
|
+
MSE_CHANGE_TYPE: "MSE_CHANGE_TYPE",
|
|
2793
2794
|
OPTION: "OPTION",
|
|
2794
2795
|
DASH: "DASH",
|
|
2795
2796
|
LICENSE: "LICENSE",
|
|
@@ -2832,6 +2833,7 @@
|
|
|
2832
2833
|
MSE_OTHER: 5202,
|
|
2833
2834
|
MSE_FULL: 5203,
|
|
2834
2835
|
MSE_HIJACK: 5204,
|
|
2836
|
+
MSE_CHANGE_TYPE: 5205,
|
|
2835
2837
|
EME_HIJACK: 5301
|
|
2836
2838
|
}), _defineProperty$1(_ERR_CODE, ERR.DRM, {
|
|
2837
2839
|
LICENSE: 7100,
|
|
@@ -3167,7 +3169,7 @@
|
|
|
3167
3169
|
queue.shift();
|
|
3168
3170
|
}
|
|
3169
3171
|
if (op) {
|
|
3170
|
-
var _this2$_sourceBuffer
|
|
3172
|
+
var _this2$_sourceBuffer$, _op$context;
|
|
3171
3173
|
var costtime = nowTime() - _this2._opst;
|
|
3172
3174
|
_this2._logger.debug("UpdateEnd(".concat(type, "/").concat(op.opName, ")"), SafeJSON.stringify(getTimeRanges((_this2$_sourceBuffer$ = _this2._sourceBuffer[type]) === null || _this2$_sourceBuffer$ === void 0 ? void 0 : _this2$_sourceBuffer$.buffered)), costtime, op.context);
|
|
3173
3175
|
op.promise.resolve({
|
|
@@ -3175,6 +3177,10 @@
|
|
|
3175
3177
|
context: op.context,
|
|
3176
3178
|
costtime
|
|
3177
3179
|
});
|
|
3180
|
+
var callback = (_op$context = op.context) === null || _op$context === void 0 ? void 0 : _op$context.callback;
|
|
3181
|
+
if (callback && typeof callback === "function") {
|
|
3182
|
+
callback(op.context);
|
|
3183
|
+
}
|
|
3178
3184
|
_this2._startQueue(type);
|
|
3179
3185
|
}
|
|
3180
3186
|
}
|
|
@@ -3436,10 +3442,15 @@
|
|
|
3436
3442
|
var sb = this._sourceBuffer[type];
|
|
3437
3443
|
if (!this.mediaSource || !sb || sb.mimeType === mimeType)
|
|
3438
3444
|
return Promise.resolve();
|
|
3439
|
-
if (typeof sb.changeType !== "function")
|
|
3440
|
-
return Promise.reject();
|
|
3445
|
+
if (typeof sb.changeType !== "function") {
|
|
3446
|
+
return Promise.reject(new StreamingError(ERR.MEDIA, ERR.SUB_TYPES.MSE_CHANGE_TYPE, new Error("changeType is not a function")));
|
|
3447
|
+
}
|
|
3441
3448
|
return this._enqueueOp(type, function() {
|
|
3442
|
-
|
|
3449
|
+
try {
|
|
3450
|
+
sb.changeType(mimeType);
|
|
3451
|
+
} catch (e) {
|
|
3452
|
+
throw new StreamingError(ERR.MEDIA, ERR.SUB_TYPES.MSE_CHANGE_TYPE, e);
|
|
3453
|
+
}
|
|
3443
3454
|
sb.mimeType = mimeType;
|
|
3444
3455
|
_this8._onSBUpdateEnd(type);
|
|
3445
3456
|
}, "changeType", {
|
|
@@ -3689,11 +3700,14 @@
|
|
|
3689
3700
|
} catch (error) {
|
|
3690
3701
|
if (error && error.message && error.message.indexOf("SourceBuffer is full") >= 0) {
|
|
3691
3702
|
this._mseFullFlag[type] = true;
|
|
3703
|
+
if (op.context && _typeof(op.context) === "object") {
|
|
3704
|
+
op.context.isFull = true;
|
|
3705
|
+
}
|
|
3692
3706
|
this._logger.error("[MSE error], context,", op.context, " ,name,", op.opName, ",err,SourceBuffer is full");
|
|
3693
3707
|
op.promise.reject(new StreamingError(ERR.MEDIA, ERR.SUB_TYPES.MSE_FULL, error));
|
|
3694
3708
|
} else {
|
|
3695
3709
|
this._logger.error(error);
|
|
3696
|
-
op.promise.reject(new StreamingError(ERR.MEDIA, ERR.SUB_TYPES.MSE_OTHER, error));
|
|
3710
|
+
op.promise.reject(error.constructor === StreamingError ? error : new StreamingError(ERR.MEDIA, ERR.SUB_TYPES.MSE_OTHER, error));
|
|
3697
3711
|
queue.shift();
|
|
3698
3712
|
this._startQueue(type);
|
|
3699
3713
|
}
|
|
@@ -10469,7 +10483,7 @@
|
|
|
10469
10483
|
_createClass$4(Flv2, [{
|
|
10470
10484
|
key: "version",
|
|
10471
10485
|
get: function get() {
|
|
10472
|
-
return "3.0.
|
|
10486
|
+
return "3.0.19-rc.0";
|
|
10473
10487
|
}
|
|
10474
10488
|
}, {
|
|
10475
10489
|
key: "isLive",
|