Loading libraries/scrcpy-decoder-webcodecs/src/index.ts +4 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,10 @@ function toUint32Le(data: Uint8Array, offset: number) { } export class WebCodecsDecoder implements ScrcpyVideoDecoder { public static isSupported() { return typeof globalThis.VideoDecoder !== "undefined"; } public static readonly capabilities: Record< string, ScrcpyVideoDecoderCapability Loading toolchain/tsconfig/tsconfig.base.json +1 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ "compilerOptions": { "composite": true, /* Basic Options */ "target": "ES2022", // /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ "target": "ESNext", // /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ "module": "NodeNext", // /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "lib": [ // /* Specify library files to be included in the compilation. */ "ESNext" Loading Loading
libraries/scrcpy-decoder-webcodecs/src/index.ts +4 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,10 @@ function toUint32Le(data: Uint8Array, offset: number) { } export class WebCodecsDecoder implements ScrcpyVideoDecoder { public static isSupported() { return typeof globalThis.VideoDecoder !== "undefined"; } public static readonly capabilities: Record< string, ScrcpyVideoDecoderCapability Loading
toolchain/tsconfig/tsconfig.base.json +1 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ "compilerOptions": { "composite": true, /* Basic Options */ "target": "ES2022", // /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ "target": "ESNext", // /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ "module": "NodeNext", // /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "lib": [ // /* Specify library files to be included in the compilation. */ "ESNext" Loading