From 2cd3484a01ae30e3ae362c8fa89fcf5052e4a23f Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Mon, 10 Mar 2025 16:03:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E6=94=B6=E5=B0=8F=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/package/agora.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/package/agora.ts b/src/utils/package/agora.ts index 6a5420d..93169b1 100644 --- a/src/utils/package/agora.ts +++ b/src/utils/package/agora.ts @@ -38,6 +38,7 @@ export const agora = { on: ({ userPublished }: any) => { client.on("user-published", async (user: IAgoraRTCRemoteUser, mediaType: 'video' | 'audio') => { await client.subscribe(user, mediaType) + await client.setRemoteDefaultVideoStreamType(1) userPublished(user, mediaType) }) }