mirror of
https://github.com/DevLARLEY/WidevineProxy2.git
synced 2026-04-02 10:39:02 +00:00
Returned PSSH Box instead of PSSH Data
This commit is contained in:
12
license.js
12
license.js
@@ -366,6 +366,16 @@ export class Session {
|
||||
}
|
||||
|
||||
getPSSH() {
|
||||
return uint8ArrayToBase64(this._pssh);
|
||||
const dataLength = this._pssh.length;
|
||||
const totalLength = dataLength + 32;
|
||||
const pssh = new Uint8Array([
|
||||
...this._intToUint8Array(totalLength),
|
||||
...PSSH_MAGIC,
|
||||
...new Uint8Array(4),
|
||||
...WIDEVINE_SYSTEM_ID,
|
||||
...this._intToUint8Array(dataLength),
|
||||
...this._pssh
|
||||
]);
|
||||
return uint8ArrayToBase64(pssh);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user