@byteplus/veplayer-plugin 2.4.1-rc.0 → 2.4.2-rc.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteplus/veplayer-plugin",
3
- "version": "2.4.1-rc.0",
3
+ "version": "2.4.2-rc.0",
4
4
  "main": "./umd/index.production.js",
5
5
  "module": "./esm/index.production.js",
6
6
  "browser": "./umd/index.production.js",
@@ -2763,21 +2763,6 @@
2763
2763
  length: Buffer2.totalLength && Buffer2.totalLength(buffers)
2764
2764
  };
2765
2765
  }
2766
- }, {
2767
- key: "isBuffered",
2768
- value: function isBuffered(media, pos) {
2769
- if (media) {
2770
- var buffered = Buffer2.get(media);
2771
- if (buffered !== null && buffered !== void 0 && buffered.length) {
2772
- for (var i = 0; i < buffered.length; i++) {
2773
- if (pos >= buffered.start(i) && pos <= buffered.end(i)) {
2774
- return true;
2775
- }
2776
- }
2777
- }
2778
- }
2779
- return false;
2780
- }
2781
2766
  }]);
2782
2767
  return Buffer2;
2783
2768
  }();
@@ -5907,7 +5892,7 @@
5907
5892
  continue;
5908
5893
  }
5909
5894
  frameLength = (data[i + 3] & 3) << 11 | data[i + 4] << 3 | (data[i + 5] & 224) >> 5;
5910
- if (!frameLength || len - i < frameLength)
5895
+ if (len - i < frameLength)
5911
5896
  break;
5912
5897
  protectionSkipBytes = (~data[i + 1] & 1) * 2;
5913
5898
  frames.push({
@@ -10326,7 +10311,7 @@
10326
10311
  }
10327
10312
  return;
10328
10313
  }
10329
- if (opts.isLive && media.readyState === 4 && bufferEnd - media.currentTime > opts.disconnectTime) {
10314
+ if (opts.isLive && media.readyState === 4 && bufferEnd > opts.disconnectTime) {
10330
10315
  _this.disconnect();
10331
10316
  }
10332
10317
  }
@@ -10498,7 +10483,7 @@
10498
10483
  _createClass$4(Flv2, [{
10499
10484
  key: "version",
10500
10485
  get: function get() {
10501
- return "3.0.19-rc.10";
10486
+ return "3.0.19-rc.0";
10502
10487
  }
10503
10488
  }, {
10504
10489
  key: "isLive",