mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 18:29:23 +02:00
feat(scrcpy): add isSupported
method toWebCodecDecoder
This commit is contained in:
parent
d286a40c42
commit
d421502256
2 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue