senza-sdk 4.2.51-8029b92.0 → 4.2.51-84f92d6.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": "senza-sdk",
3
- "version": "4.2.51-8029b92.0",
3
+ "version": "4.2.51-84f92d6.0",
4
4
  "main": "./src/api.js",
5
5
  "description": "API for Senza application",
6
6
  "license": "MIT",
@@ -1739,9 +1739,11 @@ class RemotePlayer extends EventTarget {
1739
1739
  } finally {
1740
1740
  if (!this._abortSetSubtitleLanguage) {
1741
1741
  if (this._targetSeekPlayingState === TargetPlayingState.PLAYING_UI) {
1742
- this._play();
1742
+ console.log("BEFORE PLAY AFTER SET SUBTITLE");
1743
+ await this._play();
1743
1744
  } else if (this._targetSeekPlayingState === TargetPlayingState.PLAYING_ABR) {
1744
- lifecycle._moveToBackground();
1745
+ console.log("BEFORE MOVE_TO_BACKGROUND AFTER SET SUBTITLE");
1746
+ await lifecycle._moveToBackground();
1745
1747
  }
1746
1748
  }
1747
1749
  this._isSetSubtitleByApplication = false;
@@ -1789,9 +1791,11 @@ class RemotePlayer extends EventTarget {
1789
1791
  } finally {
1790
1792
  if (!this._abortSetAudioLanguage) {
1791
1793
  if (this._targetSeekPlayingState === TargetPlayingState.PLAYING_UI) {
1792
- this._play();
1794
+ sdkLogger.error("BEFORE PLAY AFTER SET AUDIO");
1795
+ await this._play();
1793
1796
  } else if (this._targetSeekPlayingState === TargetPlayingState.PLAYING_ABR) {
1794
- lifecycle._moveToBackground();
1797
+ sdkLogger.error("BEFORE MOVE_TO_BACKGROUND AFTER SET AUDIO");
1798
+ await lifecycle._moveToBackground();
1795
1799
  }
1796
1800
  }
1797
1801
  this._isSetAudioByApplication = false;