接收小流

This commit is contained in:
yj 2025-03-10 16:03:27 +08:00
parent ebe76afd02
commit 2cd3484a01
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ export const agora = {
on: ({ userPublished }: any) => { on: ({ userPublished }: any) => {
client.on("user-published", async (user: IAgoraRTCRemoteUser, mediaType: 'video' | 'audio') => { client.on("user-published", async (user: IAgoraRTCRemoteUser, mediaType: 'video' | 'audio') => {
await client.subscribe(user, mediaType) await client.subscribe(user, mediaType)
await client.setRemoteDefaultVideoStreamType(1)
userPublished(user, mediaType) userPublished(user, mediaType)
}) })
} }