Skip to content

Commit

Permalink
chore: optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed May 11, 2024
1 parent 74fd6c9 commit c095a46
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ts/Renderer/WebCodecsRendererCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export class WebCodecsRendererCache extends IRendererCache {
type: VideoStreamType.VideoStreamHigh,
encodedFrameOnly: true,
});
logInfo('register call_back_with_encoded_video_frame');
AgoraElectronBridge.OnEvent(
'call_back_with_encoded_video_frame',
(...params: any) => {
Expand Down Expand Up @@ -117,7 +116,6 @@ export class WebCodecsRendererCache extends IRendererCache {
}

public release(): void {
logInfo('unregister call_back_with_encoded_video_frame');
AgoraElectronBridge.UnEvent('call_back_with_encoded_video_frame');
this._decoder?.release();
this._decoder = null;
Expand Down

0 comments on commit c095a46

Please sign in to comment.