@reactoo/watchtogether-sdk-js 2.5.59 → 2.5.60
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
|
@@ -139,8 +139,8 @@ const syncModule = function ({room, emitter} = {}) {
|
|
|
139
139
|
.then(() => {
|
|
140
140
|
const seekDuration = (Date.now() - syncStartTime) / 1000;
|
|
141
141
|
const {position, realPosition, isBufferSufficient} = _playerInterface.getTimeDifference
|
|
142
|
-
? _playerInterface.getTimeDifference(syncData.masterFragmentSn, syncData.masterFragmentPos, syncData.ping)
|
|
143
|
-
: getTimeDifference(syncData.masterFragmentSn, syncData.masterFragmentPos, syncData.ping);
|
|
142
|
+
? _playerInterface.getTimeDifference(syncData.masterFragmentSn, syncData.masterFragmentPos + seekDuration, syncData.ping)
|
|
143
|
+
: getTimeDifference(syncData.masterFragmentSn, syncData.masterFragmentPos + seekDuration, syncData.ping);
|
|
144
144
|
|
|
145
145
|
const syncPrecision = Math.abs(realPosition);
|
|
146
146
|
room._log(`Insufficient buffer: `, !isBufferSufficient)
|