@volcengine/veplayer-plugin 2.5.0 → 2.5.1-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volcengine/veplayer-plugin",
3
- "version": "2.5.0",
3
+ "version": "2.5.1-rc.1",
4
4
  "main": "./umd/index.production.js",
5
5
  "module": "./esm/index.production.js",
6
6
  "browser": "./umd/index.production.js",
@@ -1542,7 +1542,7 @@
1542
1542
  }
1543
1543
  return offsetTime;
1544
1544
  };
1545
- var version = "3.0.21-rc.2";
1545
+ var version = "3.0.21-rc.5";
1546
1546
  var ERROR_MAP = {
1547
1547
  1: 5101,
1548
1548
  2: 5102,
@@ -7670,10 +7670,14 @@
7670
7670
  key: "_parseG711",
7671
7671
  value: function _parseG711(data, pts, format) {
7672
7672
  var track = this.audioTrack;
7673
+ var audioData = data.subarray(1);
7674
+ if (audioData.byteLength < 1)
7675
+ return;
7676
+ var sample = new AudioSample(pts, audioData);
7673
7677
  track.codecType = format === 7 ? AudioCodecType.G711PCMA : AudioCodecType.G711PCMU;
7674
7678
  track.sampleRate = 8e3;
7675
7679
  track.codec = track.codecType;
7676
- track.samples.push(new AudioSample(pts, data.subarray(1)));
7680
+ track.samples.push(sample);
7677
7681
  }
7678
7682
  }, {
7679
7683
  key: "_parseAac",
@@ -10971,7 +10975,7 @@
10971
10975
  _createClass$4(Flv2, [{
10972
10976
  key: "version",
10973
10977
  get: function get() {
10974
- return "3.0.21-rc.2";
10978
+ return "3.0.21-rc.5";
10975
10979
  }
10976
10980
  }, {
10977
10981
  key: "isLive",