()
| 26 | * don't already exist. |
| 27 | */ |
| 28 | export const polyfillWebCodecsApi = () => { |
| 29 | globalThis.VideoDecoder ??= VideoDecoderPolyfill; |
| 30 | globalThis.AudioDecoder ??= AudioDecoderPolyfill; |
| 31 | globalThis.VideoEncoder ??= VideoEncoderPolyfill; |
| 32 | globalThis.AudioEncoder ??= AudioEncoderPolyfill; |
| 33 | globalThis.EncodedVideoChunk ??= EncodedVideoChunkPolyfill; |
| 34 | globalThis.EncodedAudioChunk ??= EncodedAudioChunkPolyfill; |
| 35 | globalThis.VideoFrame ??= VideoFramePolyfill; |
| 36 | globalThis.VideoColorSpace ??= VideoColorSpacePolyfill; |
| 37 | globalThis.AudioData ??= AudioDataPolyfill; |
| 38 | globalThis.DOMRectReadOnly ??= DOMRectReadOnlyPolyfill; |
| 39 | }; |
no outgoing calls
no test coverage detected