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) }) }