senza-sdk 4.2.55-b8f40a8.0 → 4.2.55-fb0c331.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/dist/bundle.js +1 -1
- package/package.json +1 -1
- package/src/remotePlayer.js +6 -4
package/package.json
CHANGED
package/src/remotePlayer.js
CHANGED
|
@@ -1031,8 +1031,6 @@ class RemotePlayer extends EventTarget {
|
|
|
1031
1031
|
if (this._loadMode === this.LoadMode.LOADING || this._loadMode === this.LoadMode.UNLOADING) {
|
|
1032
1032
|
throw new RemotePlayerError(6502, "Cannot call unload() while previous unload/load is still in progress");
|
|
1033
1033
|
}
|
|
1034
|
-
this._abortSetAudioLanguage = true;
|
|
1035
|
-
this._abortSetSubtitleLanguage = true;
|
|
1036
1034
|
this._abortSeeking = true;
|
|
1037
1035
|
const previousLoadMode = this._loadMode;
|
|
1038
1036
|
this._changeLoadMode(this.LoadMode.UNLOADING);
|
|
@@ -1777,7 +1775,9 @@ class RemotePlayer extends EventTarget {
|
|
|
1777
1775
|
await this._stop(StreamType.AUDIO);
|
|
1778
1776
|
} catch (error) {
|
|
1779
1777
|
sdkLogger.warn(`remotePlayer _atomicSetAudioLanguage: audioTrackId=${audioTrackId} failed on stop with error ${error.message}.`);
|
|
1780
|
-
|
|
1778
|
+
if (!this._abortSetAudioLanguage) {
|
|
1779
|
+
setLanguageError = error;
|
|
1780
|
+
}
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
1783
|
// check if load/unload were called
|
|
@@ -1844,7 +1844,9 @@ class RemotePlayer extends EventTarget {
|
|
|
1844
1844
|
await this._stop(StreamType.SUBTITLE);
|
|
1845
1845
|
} catch (error) {
|
|
1846
1846
|
sdkLogger.warn(`remotePlayer _atomicSetSubtitleLanguage: textTrackId=${textTrackId} stop failed with error ${error.message}.`);
|
|
1847
|
-
|
|
1847
|
+
if (!this._abortSetSubtitleLanguage) {
|
|
1848
|
+
setLanguageError = error;
|
|
1849
|
+
}
|
|
1848
1850
|
}
|
|
1849
1851
|
|
|
1850
1852
|
// check if load/unload were called
|