diff --git a/ts/Renderer/WebCodecsRendererCache.ts b/ts/Renderer/WebCodecsRendererCache.ts index a5bf7feef..912a11255 100644 --- a/ts/Renderer/WebCodecsRendererCache.ts +++ b/ts/Renderer/WebCodecsRendererCache.ts @@ -76,7 +76,6 @@ export class WebCodecsRendererCache type: VideoStreamType.VideoStreamHigh, encodedFrameOnly: true, }); - this._engine?.getMediaEngine().registerVideoEncodedFrameObserver(this); } public shouldFallback(frameInfo: EncodedVideoFrameInfo): boolean { @@ -105,7 +104,6 @@ export class WebCodecsRendererCache public release(): void { logInfo('call_back_with_encoded_video_frame release'); - this._engine?.getMediaEngine().unregisterVideoEncodedFrameObserver(this); this._decoder?.release(); this._decoder = null; super.release();