@lox-audioserver/node-airplay-sender 0.4.1 → 0.4.3
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/core/rtsp.js +6 -1
- package/dist/esm/core/rtsp.js +6 -1
- package/package.json +1 -1
package/dist/core/rtsp.js
CHANGED
|
@@ -827,6 +827,9 @@ Client.prototype.sendNextRequest = async function (di) {
|
|
|
827
827
|
request += 'Connection: keep-alive\r\n';
|
|
828
828
|
}
|
|
829
829
|
request += 'Apple-Challenge: SdX9kFJVxgKVMFof/Znj4Q\r\n\r\n';
|
|
830
|
+
this.socket.write(Buffer.from(request, 'utf-8'));
|
|
831
|
+
request = '';
|
|
832
|
+
this.status = PLAYING;
|
|
830
833
|
break;
|
|
831
834
|
case OPTIONS2:
|
|
832
835
|
request = '';
|
|
@@ -1445,7 +1448,9 @@ Client.prototype.processData = function (blob, rawData) {
|
|
|
1445
1448
|
return;
|
|
1446
1449
|
}
|
|
1447
1450
|
// this.logLine?.("DEBUG: Device Proof=" + this.deviceProof.toString('hex'));
|
|
1448
|
-
|
|
1451
|
+
if (!this.transient) {
|
|
1452
|
+
this.srp.checkM2(this.deviceProof);
|
|
1453
|
+
}
|
|
1449
1454
|
if (this.transient == true) {
|
|
1450
1455
|
this.credentials = new Credentials("sdsds", "", "", "", this.seed);
|
|
1451
1456
|
this.credentials.writeKey = enc.HKDF("sha512", Buffer.from("Control-Salt"), this.srp.computeK(), Buffer.from("Control-Write-Encryption-Key"), 32);
|
package/dist/esm/core/rtsp.js
CHANGED
|
@@ -827,6 +827,9 @@ Client.prototype.sendNextRequest = async function (di) {
|
|
|
827
827
|
request += 'Connection: keep-alive\r\n';
|
|
828
828
|
}
|
|
829
829
|
request += 'Apple-Challenge: SdX9kFJVxgKVMFof/Znj4Q\r\n\r\n';
|
|
830
|
+
this.socket.write(Buffer.from(request, 'utf-8'));
|
|
831
|
+
request = '';
|
|
832
|
+
this.status = PLAYING;
|
|
830
833
|
break;
|
|
831
834
|
case OPTIONS2:
|
|
832
835
|
request = '';
|
|
@@ -1445,7 +1448,9 @@ Client.prototype.processData = function (blob, rawData) {
|
|
|
1445
1448
|
return;
|
|
1446
1449
|
}
|
|
1447
1450
|
// this.logLine?.("DEBUG: Device Proof=" + this.deviceProof.toString('hex'));
|
|
1448
|
-
|
|
1451
|
+
if (!this.transient) {
|
|
1452
|
+
this.srp.checkM2(this.deviceProof);
|
|
1453
|
+
}
|
|
1449
1454
|
if (this.transient == true) {
|
|
1450
1455
|
this.credentials = new Credentials("sdsds", "", "", "", this.seed);
|
|
1451
1456
|
this.credentials.writeKey = enc.HKDF("sha512", Buffer.from("Control-Salt"), this.srp.computeK(), Buffer.from("Control-Write-Encryption-Key"), 32);
|
package/package.json
CHANGED