MCPcopy Create free account
hub / github.com/Vanilagy/webcodecs-polyfill / handleAsyncError

Method handleAsyncError

src/video_decoder.ts:445–456  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

443 }
444
445 private handleAsyncError(e: unknown) {
446 const error = e instanceof DOMException
447 ? e
448 : e instanceof Error
449 ? new DOMException(e.message, 'EncodingError')
450 : new DOMException('Decoding error', 'EncodingError');
451
452 this.close();
453
454 // Invoke error callback
455 this.init.error(error);
456 }
457}

Callers 3

configureMethod · 0.95
decodeMethod · 0.95
flushMethod · 0.95

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected