@basmilius/apple-airplay 0.0.84 → 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 +2 -1
- package/dist/protocol.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2419,7 +2419,7 @@ class AirPlay {
|
|
|
2419
2419
|
async feedback() {
|
|
2420
2420
|
await this.#rtsp.post("/feedback", undefined, undefined, 1900);
|
|
2421
2421
|
}
|
|
2422
|
-
async setupDataStream(sharedSecret) {
|
|
2422
|
+
async setupDataStream(sharedSecret, onBeforeConnect) {
|
|
2423
2423
|
const seed = randomInt64();
|
|
2424
2424
|
const request = Plist3.serialize({
|
|
2425
2425
|
streams: [
|
|
@@ -2442,6 +2442,7 @@ class AirPlay {
|
|
|
2442
2442
|
reporter4.net(`Connecting to data stream on port ${dataPort}...`);
|
|
2443
2443
|
this.#dataStream = new AirPlayDataStream(this.#rtsp.address, dataPort);
|
|
2444
2444
|
await this.#dataStream.setup(sharedSecret, seed);
|
|
2445
|
+
await onBeforeConnect?.();
|
|
2445
2446
|
await this.#dataStream.connect();
|
|
2446
2447
|
}
|
|
2447
2448
|
async setupEventStream(pairingId, sharedSecret) {
|
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": {
|