senza-sdk 4.2.47-a34cd6b.0 → 4.2.47
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/deviceManager.js +12 -10
- package/src/remotePlayer.js +2 -2
package/package.json
CHANGED
package/src/deviceManager.js
CHANGED
|
@@ -269,16 +269,18 @@ class DeviceManager extends EventTarget {
|
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
271
|
* @typedef {Object} WiFiInfo
|
|
272
|
-
* @property {string}
|
|
273
|
-
* @property {string}
|
|
274
|
-
* @property {string}
|
|
275
|
-
* @property {string}
|
|
276
|
-
* @property {string}
|
|
277
|
-
* @property {string}
|
|
278
|
-
* @property {
|
|
279
|
-
* @property {
|
|
280
|
-
* @property {number}
|
|
281
|
-
* @property {number}
|
|
272
|
+
* @property {string} ssid the name of the Wi-Fi network that the device is connected to
|
|
273
|
+
* @property {string} bssid the unique identifier of the Wi-Fi access point
|
|
274
|
+
* @property {string} standard the Wi-Fi standard in use, such as 802.11a/b/g/n/ac/ax
|
|
275
|
+
* @property {string} security the type of security protocol used by the Wi-Fi network, such as WEP, WPA, WPA2, or WPA3
|
|
276
|
+
* @property {string} device-mac the MAC address of the device
|
|
277
|
+
* @property {string} device-ip4 the IPv4 address assigned to the device on the Wi-Fi network
|
|
278
|
+
* @property {string} dhcp-server the IP address of the DHCP server that assigned the device's network configuration
|
|
279
|
+
* @property {string[]} dns-server array of IP addresses of the DNS servers the device uses to resolve domain names
|
|
280
|
+
* @property {number} channel the number of the Wi-Fi channel currently being used
|
|
281
|
+
* @property {number} width width of the Wi-Fi channel in megahertz, e.g. 20MHz or 40 MHz channel
|
|
282
|
+
* @property {number} level a measure of the received signal strength, in the range 0 to 100 (the higher, the better). The level value is 100+RSSI (RSSI is the signal strength, measured in decibels)
|
|
283
|
+
* @property {number} quality a measure of the signal quality, in the range 0 to 100 (the higher, the better). The quality value is derived from the signal EVM.
|
|
282
284
|
* */
|
|
283
285
|
|
|
284
286
|
/**
|
package/src/remotePlayer.js
CHANGED
|
@@ -199,7 +199,8 @@ 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
|
-
|
|
202
|
+
// When audio sync is configured, the local player is already in sync with the remote player.
|
|
203
|
+
if (!isAudioSyncConfigured() && (lifecycle.state === lifecycle.UiState.BACKGROUND || lifecycle.state === lifecycle.UiState.IN_TRANSITION_TO_BACKGROUND)) {
|
|
203
204
|
this._syncLocalPlayerWithRemotePlayer();
|
|
204
205
|
}
|
|
205
206
|
} else {
|
|
@@ -621,7 +622,6 @@ class RemotePlayer extends EventTarget {
|
|
|
621
622
|
|
|
622
623
|
_syncLocalPlayerWithRemotePlayer() {
|
|
623
624
|
if (this._videoElement) {
|
|
624
|
-
if (isAudioSyncConfigured()) this._isSeekingByPlatform = true;
|
|
625
625
|
this._videoElement.currentTime = this.currentTime;
|
|
626
626
|
}
|
|
627
627
|
}
|