mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 11:33:02 +00:00
feat: added audio ext detection
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user