@tarojs/taro-h5 3.6.9-alpha.8 → 3.6.10

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/dist/index.esm.js CHANGED
@@ -2396,7 +2396,6 @@ class InnerAudioContext {
2396
2396
  this.destroy = () => {
2397
2397
  this.stop();
2398
2398
  if (this.Instance) {
2399
- document.body.removeChild(this.Instance);
2400
2399
  this.Instance = undefined;
2401
2400
  }
2402
2401
  };
@@ -2423,6 +2422,7 @@ class InnerAudioContext {
2423
2422
  this.Instance = new Audio();
2424
2423
  this.errorStack = new CallbackManager();
2425
2424
  this.stopStack = new CallbackManager();
2425
+ this.Instance.onerror = this.errorStack.trigger;
2426
2426
  Taro.eventCenter.on('__taroRouterChange', () => { this.stop(); });
2427
2427
  this.onPlay(() => {
2428
2428
  if (this.__isFirstPlay) {
@@ -2515,6 +2515,7 @@ class BackgroundAudioManager {
2515
2515
  this.Instance = new Audio();
2516
2516
  this.errorStack = new CallbackManager();
2517
2517
  this.stopStack = new CallbackManager();
2518
+ this.Instance.onerror = this.errorStack.trigger;
2518
2519
  this.Instance.autoplay = true;
2519
2520
  this.onPlay(() => {
2520
2521
  if (this.currentTime !== this.startTime) {