@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.
@@ -1644,7 +1644,7 @@
1644
1644
  }
1645
1645
  return offsetTime;
1646
1646
  };
1647
- var version = "3.0.21-rc.2";
1647
+ var version = "3.0.21-rc.5";
1648
1648
  var ERROR_MAP = {
1649
1649
  1: 5101,
1650
1650
  2: 5102,
@@ -7378,7 +7378,11 @@
7378
7378
  track.config = [];
7379
7379
  track.channelCount = header.channelCount;
7380
7380
  track.sampleRate = header.sampleRate;
7381
- track.container = "audio/mpeg";
7381
+ if (isFirefox) {
7382
+ track.codec = "mp3";
7383
+ } else {
7384
+ track.container = "audio/mpeg";
7385
+ }
7382
7386
  track.samples.push(sample);
7383
7387
  return {
7384
7388
  length: header.frameLength
@@ -7509,8 +7513,10 @@
7509
7513
  break;
7510
7514
  case 3:
7511
7515
  case 4:
7512
- audioTrack.pid = audioPid = esPid;
7513
- audioTrack.codecType = AudioCodecType.MP3;
7516
+ if (audioTrack.pid === -1) {
7517
+ audioTrack.pid = audioPid = esPid;
7518
+ audioTrack.codecType = AudioCodecType.MP3;
7519
+ }
7514
7520
  break;
7515
7521
  case 27:
7516
7522
  if (videoPid !== -1)
@@ -15712,7 +15718,7 @@
15712
15718
  }]);
15713
15719
  return Hls2;
15714
15720
  }(EventEmitter);
15715
- _defineProperty$3(Hls, "version", "3.0.21-rc.2");
15721
+ _defineProperty$3(Hls, "version", "3.0.21-rc.5");
15716
15722
  try {
15717
15723
  if (localStorage.getItem("xgd")) {
15718
15724
  Hls.enableLogger();