接收小流
This commit is contained in:
parent
ebe76afd02
commit
2cd3484a01
|
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue