senza-sdk 4.2.46 → 4.2.47-a34cd6b.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 +2 -2
package/package.json
CHANGED
package/src/remotePlayer.js
CHANGED
|
@@ -199,8 +199,7 @@ class RemotePlayer extends EventTarget {
|
|
|
199
199
|
sdkLogger.info("Got hs/playbackInfoEvent");
|
|
200
200
|
// When attached, the sdk controls the synchronization between the local and remote player.
|
|
201
201
|
if (this._videoElement) {
|
|
202
|
-
|
|
203
|
-
if (!isAudioSyncConfigured() && (lifecycle.state === lifecycle.UiState.BACKGROUND || lifecycle.state === lifecycle.UiState.IN_TRANSITION_TO_BACKGROUND)) {
|
|
202
|
+
if ((lifecycle.state === lifecycle.UiState.BACKGROUND || lifecycle.state === lifecycle.UiState.IN_TRANSITION_TO_BACKGROUND)) {
|
|
204
203
|
this._syncLocalPlayerWithRemotePlayer();
|
|
205
204
|
}
|
|
206
205
|
} else {
|
|
@@ -622,6 +621,7 @@ class RemotePlayer extends EventTarget {
|
|
|
622
621
|
|
|
623
622
|
_syncLocalPlayerWithRemotePlayer() {
|
|
624
623
|
if (this._videoElement) {
|
|
624
|
+
if (isAudioSyncConfigured()) this._isSeekingByPlatform = true;
|
|
625
625
|
this._videoElement.currentTime = this.currentTime;
|
|
626
626
|
}
|
|
627
627
|
}
|