From 23e8d7b33550c2150a769a0836756bfec653845b Mon Sep 17 00:00:00 2001 From: gxz Date: Tue, 17 Dec 2024 18:22:18 +0800 Subject: [PATCH] chore: optimize --- source_code/agora_node_ext/agora_electron_bridge.cpp | 1 + ts/Private/extension/AgoraMediaBaseExtension.ts | 11 +---------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/source_code/agora_node_ext/agora_electron_bridge.cpp b/source_code/agora_node_ext/agora_electron_bridge.cpp index e291db253..3a4936a6e 100644 --- a/source_code/agora_node_ext/agora_electron_bridge.cpp +++ b/source_code/agora_node_ext/agora_electron_bridge.cpp @@ -373,6 +373,7 @@ AgoraElectronBridge::DisableVideoFrameCache(napi_env env, napi_obj_get_property(env, obj, "uid", config.uid); napi_obj_get_property(env, obj, "sourceType", config.video_source_type); napi_obj_get_property(env, obj, "channelId", channelId); + napi_obj_get_property(env, obj, "position", config.observed_frame_position); strcpy(config.channelId, channelId.c_str()); char result[kBasicStringLength]; diff --git a/ts/Private/extension/AgoraMediaBaseExtension.ts b/ts/Private/extension/AgoraMediaBaseExtension.ts index 5c27648cf..cb0ff5c3b 100644 --- a/ts/Private/extension/AgoraMediaBaseExtension.ts +++ b/ts/Private/extension/AgoraMediaBaseExtension.ts @@ -1,10 +1 @@ -import '../AgoraMediaBase'; - -declare module '../AgoraMediaBase' { - interface VideoFrame { - /** - * @ignore - */ - hasAlphaBuffer?: boolean; - } -} +export {};