如何使用 UIKit 禁用默认启用的视频?我在 AgoraUIKit 的 rtcProps 中尝试了
enableVideo = false
,但没有成功。
<AgoraUIKit
rtcProps={{
appId: appId,
channel: "test",
token: null, // add your token if using app in secured mode
layout: layout.pin,
enableVideo: false,
enableScreensharing: true,
customRtcClient: rtcClient as IAgoraRTCClient | undefined,
}}
rtmProps={{
username: username || "user",
displayUsername: true,
}}
callbacks={{
EndCall: () => setVideocall(false),
}}
/>
您是否获得了此enableVideo道具的解决方案,请告诉我