@basmilius/apple-airplay 0.0.83 → 0.0.85
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 +12 -29
- package/dist/protocol.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1409,38 +1409,20 @@ function deviceInfo(pairingId) {
|
|
|
1409
1409
|
uniqueIdentifier: pairingId.toString(),
|
|
1410
1410
|
name: "iPhone van Bas",
|
|
1411
1411
|
localizedModelName: "iPhone",
|
|
1412
|
-
systemBuildVersion: "
|
|
1413
|
-
applicationBundleIdentifier: "com.apple.
|
|
1412
|
+
systemBuildVersion: "18C66",
|
|
1413
|
+
applicationBundleIdentifier: "com.apple.TVRemote",
|
|
1414
|
+
applicationBundleVersion: "344.28",
|
|
1414
1415
|
protocolVersion: 1,
|
|
1415
|
-
lastSupportedMessageType:
|
|
1416
|
+
lastSupportedMessageType: 108,
|
|
1416
1417
|
supportsSystemPairing: true,
|
|
1417
1418
|
allowsPairing: true,
|
|
1418
|
-
systemMediaApplication: "com.apple.
|
|
1419
|
+
systemMediaApplication: "com.apple.TVMusic",
|
|
1419
1420
|
supportsACL: true,
|
|
1420
1421
|
supportsSharedQueue: true,
|
|
1421
|
-
|
|
1422
|
-
|
|
1422
|
+
supportsExtendedMotion: true,
|
|
1423
|
+
sharedQueueVersion: 2,
|
|
1423
1424
|
deviceClass: 1 /* iPhone */,
|
|
1424
|
-
logicalDeviceCount: 1
|
|
1425
|
-
isProxyGroupPlayer: false,
|
|
1426
|
-
groupUID: uuid().toUpperCase(),
|
|
1427
|
-
isGroupLeader: true,
|
|
1428
|
-
isAirplayActive: false,
|
|
1429
|
-
systemPodcastApplication: "com.apple.podcasts",
|
|
1430
|
-
senderDefaultGroupUID: uuid().toUpperCase(),
|
|
1431
|
-
clusterType: 0,
|
|
1432
|
-
isClusterAware: true,
|
|
1433
|
-
modelID: "iPhone16,2",
|
|
1434
|
-
supportsMultiplayer: false,
|
|
1435
|
-
routingContextID: uuid().toUpperCase(),
|
|
1436
|
-
airPlayGroupID: uuid().toUpperCase(),
|
|
1437
|
-
systemBooksApplication: "com.apple.iBooks",
|
|
1438
|
-
parentGroupContainsDiscoverableGroupLeader: 1,
|
|
1439
|
-
groupContainsDiscoverableGroupLeader: 1,
|
|
1440
|
-
lastKnownClusterType: 2,
|
|
1441
|
-
supportsOutputContextSync: true,
|
|
1442
|
-
computerName: "iPhone van Bas",
|
|
1443
|
-
configuredClusterSize: 0
|
|
1425
|
+
logicalDeviceCount: 1
|
|
1444
1426
|
});
|
|
1445
1427
|
setExtension(protocolMessage, deviceInfoMessage, message);
|
|
1446
1428
|
return protocolMessage;
|
|
@@ -2437,7 +2419,7 @@ class AirPlay {
|
|
|
2437
2419
|
async feedback() {
|
|
2438
2420
|
await this.#rtsp.post("/feedback", undefined, undefined, 1900);
|
|
2439
2421
|
}
|
|
2440
|
-
async setupDataStream(sharedSecret) {
|
|
2422
|
+
async setupDataStream(sharedSecret, onBeforeConnect) {
|
|
2441
2423
|
const seed = randomInt64();
|
|
2442
2424
|
const request = Plist3.serialize({
|
|
2443
2425
|
streams: [
|
|
@@ -2460,6 +2442,7 @@ class AirPlay {
|
|
|
2460
2442
|
reporter4.net(`Connecting to data stream on port ${dataPort}...`);
|
|
2461
2443
|
this.#dataStream = new AirPlayDataStream(this.#rtsp.address, dataPort);
|
|
2462
2444
|
await this.#dataStream.setup(sharedSecret, seed);
|
|
2445
|
+
await onBeforeConnect?.();
|
|
2463
2446
|
await this.#dataStream.connect();
|
|
2464
2447
|
}
|
|
2465
2448
|
async setupEventStream(pairingId, sharedSecret) {
|
|
@@ -2468,9 +2451,9 @@ class AirPlay {
|
|
|
2468
2451
|
macAddress: getMacAddress().toUpperCase(),
|
|
2469
2452
|
name: "Homey Pro",
|
|
2470
2453
|
model: "iPhone16,2",
|
|
2471
|
-
osBuildVersion: "
|
|
2454
|
+
osBuildVersion: "18C66",
|
|
2472
2455
|
osName: "iPhone OS",
|
|
2473
|
-
osVersion: "
|
|
2456
|
+
osVersion: "14.3",
|
|
2474
2457
|
sourceVersion: "550.10",
|
|
2475
2458
|
sessionUUID: this.#sessionUUID,
|
|
2476
2459
|
timingProtocol: "None",
|
package/dist/protocol.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export default class AirPlay {
|
|
|
17
17
|
connect(): Promise<void>;
|
|
18
18
|
disconnect(): Promise<void>;
|
|
19
19
|
feedback(): Promise<void>;
|
|
20
|
-
setupDataStream(sharedSecret: Buffer): Promise<void>;
|
|
20
|
+
setupDataStream(sharedSecret: Buffer, onBeforeConnect?: () => Promise<void>): Promise<void>;
|
|
21
21
|
setupEventStream(pairingId: Buffer, sharedSecret: Buffer): Promise<void>;
|
|
22
22
|
setupTimingServer(timing: TimingServer): Promise<void>;
|
|
23
23
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basmilius/apple-airplay",
|
|
3
3
|
"description": "Implementation of Apple's AirPlay2 in Node.js.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.85",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@basmilius/apple-common": "0.0.
|
|
45
|
-
"@basmilius/apple-encoding": "0.0.
|
|
44
|
+
"@basmilius/apple-common": "0.0.85",
|
|
45
|
+
"@basmilius/apple-encoding": "0.0.85",
|
|
46
46
|
"@bufbuild/protobuf": "^2.10.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|