@basmilius/apple-devices 0.0.103 → 0.1.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/index.js +6 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1192,6 +1192,9 @@ class Client {
|
|
|
1192
1192
|
this.#playbackQueue = playbackQueue;
|
|
1193
1193
|
}
|
|
1194
1194
|
setPlaybackState(playbackState, playbackStateTimestamp) {
|
|
1195
|
+
if (playbackStateTimestamp < this.#playbackStateTimestamp) {
|
|
1196
|
+
return;
|
|
1197
|
+
}
|
|
1195
1198
|
this.#playbackState = playbackState;
|
|
1196
1199
|
this.#playbackStateTimestamp = playbackStateTimestamp;
|
|
1197
1200
|
}
|
|
@@ -1767,10 +1770,11 @@ class device_default2 extends EventEmitter3 {
|
|
|
1767
1770
|
const keys = this.#keys;
|
|
1768
1771
|
await this.#protocol.socket.enableEncryption(keys.accessoryToControllerKey, keys.controllerToAccessoryKey);
|
|
1769
1772
|
await this.#protocol._systemInfo(this.#credentials.pairingId);
|
|
1770
|
-
await this.#protocol._touchStart();
|
|
1771
1773
|
await this.#protocol._sessionStart();
|
|
1772
1774
|
await this.#protocol._tvrcSessionStart();
|
|
1773
|
-
await this.#protocol.
|
|
1775
|
+
await this.#protocol._touchStart();
|
|
1776
|
+
await this.#protocol._tiStart();
|
|
1777
|
+
await this.#protocol._subscribe("_iMC", (evt) => reporter3.info("iMC", evt));
|
|
1774
1778
|
this.#heartbeatInterval = setInterval(async () => await this.#heartbeat(), 15000);
|
|
1775
1779
|
await this.#subscribe();
|
|
1776
1780
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basmilius/apple-devices",
|
|
3
3
|
"description": "Exposes various Apple devices to connect with either AirPlay or Companion Link.",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@basmilius/apple-airplay": "0.0
|
|
47
|
-
"@basmilius/apple-common": "0.0
|
|
48
|
-
"@basmilius/apple-companion-link": "0.0
|
|
49
|
-
"@basmilius/apple-encoding": "0.0
|
|
46
|
+
"@basmilius/apple-airplay": "0.1.0",
|
|
47
|
+
"@basmilius/apple-common": "0.1.0",
|
|
48
|
+
"@basmilius/apple-companion-link": "0.1.0",
|
|
49
|
+
"@basmilius/apple-encoding": "0.1.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@basmilius/tools": "^2.23.0",
|