From d6a1629e9ab5f7ca2d4317cd8019df37eaa8c1fc Mon Sep 17 00:00:00 2001 From: sda-rob <149643938+sda-rob@users.noreply.github.com> Date: Fri, 17 Nov 2023 17:50:45 +0800 Subject: [PATCH] [AUTO] Update dependencies (#1115) * [AUTO] Update dependencies * chore: wip * chore: wip --------- Co-authored-by: LichKing-2234 Co-authored-by: HUI --- .github/workflows/build.yml | 2 +- package.json | 2 +- ts/Renderer/RendererManager.ts | 16 ++++++++++++---- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0fa409b12..4f9d5a82e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -113,4 +113,4 @@ jobs: needs: [ build-windows, build-mac ] steps: - run: | - curl -X POST "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=${{ secrets.WECHAT_KEY }}" -d '{"msgtype":"text","text":{"content":"Electron Example:\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}}' + curl -X POST "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=${{ secrets.WECHAT_KEY }}" -d '{"msgtype":"text","text":{"content":"Electron Example:\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\nDownload Link:\nhttps://nightly.link/${{ github.repository }}/actions/runs/${{ github.run_id }}"}}' diff --git a/package.json b/package.json index 0459465ec..d2167fbfd 100644 --- a/package.json +++ b/package.json @@ -135,7 +135,7 @@ "yuv-canvas": "1.2.6" }, "agora_electron": { - "iris_sdk_win": "https://download.agora.io/sdk/release/iris_4.2.2.139-build.1_DCG_Windows_Video_20231026_1149.zip", + "iris_sdk_win": "https://download.agora.io/sdk/release/iris_4.2.2.140-build.1_DCG_Windows_Video_20231117_1043.zip", "iris_sdk_mac": "https://download.agora.io/sdk/release/iris_4.2.2.136-build.1_DCG_Mac_Video_20230922_0351.zip" } } diff --git a/ts/Renderer/RendererManager.ts b/ts/Renderer/RendererManager.ts index fabbedc52..aea4635df 100644 --- a/ts/Renderer/RendererManager.ts +++ b/ts/Renderer/RendererManager.ts @@ -437,6 +437,17 @@ export class RendererManager extends IRendererManager { } } + /** + * @ignore + */ + private getRender({ + videoSourceType, + channelId, + uid, + }: VideoFrameCacheConfig) { + return this.renderers.get(videoSourceType)?.get(channelId)?.get(uid); + } + /** * @ignore */ @@ -445,10 +456,7 @@ export class RendererManager extends IRendererManager { channelId, uid, }: VideoFrameCacheConfig): IRenderer[] { - return ( - this.renderers.get(videoSourceType)?.get(channelId)?.get(uid)?.renders || - [] - ); + return this.getRender({ videoSourceType, channelId, uid })?.renders || []; } /**