feat: added audio ext detection

This commit is contained in:
鲁树人
2023-05-14 21:57:18 +01:00
parent c734a83854
commit 77a3eba036
7 changed files with 67 additions and 32 deletions

View File

@@ -23,6 +23,10 @@ const u8Sub = (a: number, b: number) => {
};
export class XiamiCrypto implements CryptoBase {
hasSignature(): boolean {
return true;
}
async isSupported(blob: Blob): Promise<boolean> {
const headerBuffer = await blob.slice(0, 0x10).arrayBuffer();
const header = new Uint8Array(headerBuffer);