This commit is contained in:
parent
9049041ac0
commit
786cc411ec
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue