@volcengine/veplayer-plugin 2.6.1-rc.0 → 2.6.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/esm/index.development.js +81340 -82756
- package/esm/index.production.js +3 -3
- package/esm/veplayer.plugin.ad.development.js +2 -1
- package/esm/veplayer.plugin.ad.production.js +1 -1
- package/esm/veplayer.plugin.flv.development.js +31 -11
- package/esm/veplayer.plugin.flv.production.js +1 -1
- package/esm/veplayer.plugin.hls.development.js +2 -2
- package/esm/veplayer.plugin.hls.production.js +1 -1
- package/esm/veplayer.plugin.mp4.development.js +1 -1
- package/esm/veplayer.plugin.mp4.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +1 -1
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.ad.development.js +2 -1
- package/umd/veplayer.plugin.ad.production.js +1 -1
- package/umd/veplayer.plugin.flv.development.js +31 -11
- package/umd/veplayer.plugin.flv.production.js +1 -1
- package/umd/veplayer.plugin.hls.development.js +2 -2
- package/umd/veplayer.plugin.hls.production.js +1 -1
- package/umd/veplayer.plugin.mp4.development.js +1 -1
- package/umd/veplayer.plugin.mp4.production.js +1 -1
- package/umd/veplayer.plugin.rtm.development.js +1 -1
- package/umd/veplayer.plugin.rtm.production.js +1 -1
|
@@ -1548,7 +1548,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
return offsetTime;
|
|
1550
1550
|
};
|
|
1551
|
-
var version = "3.0.21-
|
|
1551
|
+
var version = "3.0.21-rc.21";
|
|
1552
1552
|
var ERROR_MAP = {
|
|
1553
1553
|
1: 5101,
|
|
1554
1554
|
2: 5102,
|
|
@@ -3789,15 +3789,17 @@ var __publicField = (obj, key, value) => {
|
|
|
3789
3789
|
op.exec();
|
|
3790
3790
|
} catch (error) {
|
|
3791
3791
|
if (error && error.message && error.message.indexOf("SourceBuffer is full") >= 0) {
|
|
3792
|
+
var _op$promise;
|
|
3792
3793
|
this._mseFullFlag[type] = true;
|
|
3793
3794
|
if (op.context && _typeof(op.context) === "object") {
|
|
3794
3795
|
op.context.isFull = true;
|
|
3795
3796
|
}
|
|
3796
3797
|
this._logger.error("[MSE error], context,", op.context, " ,name,", op.opName, ",err,SourceBuffer is full");
|
|
3797
|
-
op.promise.reject(new StreamingError(ERR.MEDIA, ERR.SUB_TYPES.MSE_FULL, error));
|
|
3798
|
+
op === null || op === void 0 ? void 0 : (_op$promise = op.promise) === null || _op$promise === void 0 ? void 0 : _op$promise.reject(new StreamingError(ERR.MEDIA, ERR.SUB_TYPES.MSE_FULL, error));
|
|
3798
3799
|
} else {
|
|
3800
|
+
var _op$promise2;
|
|
3799
3801
|
this._logger.error(error);
|
|
3800
|
-
op.promise.reject(error.constructor === StreamingError ? error : new StreamingError(ERR.MEDIA, ERR.SUB_TYPES.MSE_OTHER, error));
|
|
3802
|
+
op === null || op === void 0 ? void 0 : (_op$promise2 = op.promise) === null || _op$promise2 === void 0 ? void 0 : _op$promise2.reject(error.constructor === StreamingError ? error : new StreamingError(ERR.MEDIA, ERR.SUB_TYPES.MSE_OTHER, error));
|
|
3801
3803
|
queue.shift();
|
|
3802
3804
|
this._startQueue(type);
|
|
3803
3805
|
}
|
|
@@ -6577,6 +6579,19 @@ var __publicField = (obj, key, value) => {
|
|
|
6577
6579
|
_createClass$1(NALu2, null, [{
|
|
6578
6580
|
key: "parseAnnexB",
|
|
6579
6581
|
value: function parseAnnexB(data) {
|
|
6582
|
+
var j = data.byteLength - 1;
|
|
6583
|
+
var dropZerosLength = 0;
|
|
6584
|
+
do {
|
|
6585
|
+
if (data[j] === 0) {
|
|
6586
|
+
dropZerosLength++;
|
|
6587
|
+
} else {
|
|
6588
|
+
break;
|
|
6589
|
+
}
|
|
6590
|
+
j--;
|
|
6591
|
+
} while (j > 0);
|
|
6592
|
+
if (dropZerosLength >= 3) {
|
|
6593
|
+
data = data.subarray(0, j + 1);
|
|
6594
|
+
}
|
|
6580
6595
|
var len = data.length;
|
|
6581
6596
|
var start = 2;
|
|
6582
6597
|
var end = 0;
|
|
@@ -6597,6 +6612,9 @@ var __publicField = (obj, key, value) => {
|
|
|
6597
6612
|
} else if (data[end - 2] !== 0) {
|
|
6598
6613
|
end++;
|
|
6599
6614
|
break;
|
|
6615
|
+
} else if (end < len - 1 && data[end + 1] !== 1) {
|
|
6616
|
+
end++;
|
|
6617
|
+
break;
|
|
6600
6618
|
}
|
|
6601
6619
|
if (start !== end - 2)
|
|
6602
6620
|
units.push(data.subarray(start, end - 2));
|
|
@@ -10234,7 +10252,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10234
10252
|
value: function() {
|
|
10235
10253
|
var _appendBuffer = _asyncToGenerator$1(/* @__PURE__ */ _regeneratorRuntime$1().mark(function _callee5(chunk) {
|
|
10236
10254
|
var _this = this;
|
|
10237
|
-
var switchingNoReset, demuxer, videoTrack, audioTrack, metadataTrack, idx, videoExist, audioExist, duration, track, videoType, audioType, mse, afterAppend, newId, remuxResult, p;
|
|
10255
|
+
var switchingNoReset, demuxer, videoTrack, audioTrack, metadataTrack, idx, videoExist, audioExist, duration, track, videoType, audioType, mse, afterAppend, newId, remuxResult, p, ret;
|
|
10238
10256
|
return _regeneratorRuntime$1().wrap(function _callee5$(_context5) {
|
|
10239
10257
|
while (1)
|
|
10240
10258
|
switch (_context5.prev = _context5.next) {
|
|
@@ -10344,7 +10362,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10344
10362
|
this._emitMetaParsedEvent(videoTrack, audioTrack);
|
|
10345
10363
|
}
|
|
10346
10364
|
if (!mse) {
|
|
10347
|
-
_context5.next =
|
|
10365
|
+
_context5.next = 83;
|
|
10348
10366
|
break;
|
|
10349
10367
|
}
|
|
10350
10368
|
if (this._sourceCreated) {
|
|
@@ -10397,16 +10415,18 @@ var __publicField = (obj, key, value) => {
|
|
|
10397
10415
|
if (remuxResult.audioSegment)
|
|
10398
10416
|
p.push(mse.append(audioType, remuxResult.audioSegment));
|
|
10399
10417
|
this.flv._transferCost.start(TRANSFER_EVENT.APPEND);
|
|
10400
|
-
|
|
10418
|
+
ret = Promise.all(p);
|
|
10419
|
+
ret.then(afterAppend).then(function() {
|
|
10401
10420
|
_this.flv._transferCost.end(TRANSFER_EVENT.APPEND);
|
|
10402
10421
|
afterAppend();
|
|
10403
|
-
})
|
|
10404
|
-
|
|
10422
|
+
});
|
|
10423
|
+
return _context5.abrupt("return", ret);
|
|
10424
|
+
case 83:
|
|
10405
10425
|
if (this._softVideo) {
|
|
10406
10426
|
this._softVideo.appendBuffer(videoTrack, audioTrack);
|
|
10407
10427
|
afterAppend();
|
|
10408
10428
|
}
|
|
10409
|
-
case
|
|
10429
|
+
case 84:
|
|
10410
10430
|
case "end":
|
|
10411
10431
|
return _context5.stop();
|
|
10412
10432
|
}
|
|
@@ -10982,7 +11002,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10982
11002
|
_createClass$4(Flv2, [{
|
|
10983
11003
|
key: "version",
|
|
10984
11004
|
get: function get() {
|
|
10985
|
-
return "3.0.21-rc.
|
|
11005
|
+
return "3.0.21-rc.21";
|
|
10986
11006
|
}
|
|
10987
11007
|
}, {
|
|
10988
11008
|
key: "isLive",
|
|
@@ -11566,7 +11586,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11566
11586
|
get: function get() {
|
|
11567
11587
|
var _this$player, _this$player$config2;
|
|
11568
11588
|
var mediaType = (_this$player = this.player) === null || _this$player === void 0 ? void 0 : (_this$player$config2 = _this$player.config) === null || _this$player$config2 === void 0 ? void 0 : _this$player$config2.mediaType;
|
|
11569
|
-
return !!mediaType && mediaType !== "video" && mediaType !== "audio";
|
|
11589
|
+
return !!mediaType && mediaType !== "video" && mediaType !== "audio" && mediaType !== "offscreen-video";
|
|
11570
11590
|
}
|
|
11571
11591
|
}, {
|
|
11572
11592
|
key: "loader",
|