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

Method handleAsyncError

src/video_encoder.ts:698–707  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

696 }
697
698 private handleAsyncError(e: unknown) {
699 const error = e instanceof DOMException
700 ? e
701 : e instanceof Error
702 ? new DOMException(e.message, 'EncodingError')
703 : new DOMException('Decoding error', 'EncodingError');
704
705 this.close();
706 this.init.error(error);
707 }
708}
709
710export const getDecentVideoBitrate = (codec: AVCodecID, width: number, height: number) => {

Callers 3

configureMethod · 0.95
encodeMethod · 0.95
flushMethod · 0.95

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected