This commit is contained in:
yj 2024-07-19 17:09:22 +08:00
parent 9049041ac0
commit 786cc411ec
1 changed files with 1 additions and 2 deletions

View File

@ -159,8 +159,7 @@ const Meeting: React.FC = () => {
agora.muteLocalAudioStream(!item.enableMicr)
agora.muteLocalVideoStream(!item.enableCamera)
let dom = document.getElementById(`video-${item.account}`) as HTMLElement
if (!dom.getAttribute('account')) {
dom.setAttribute('account', item.account)
if (dom.childNodes.length === 1) {
agora.setVideo({
account: Number(item.account),
view: dom,