Skip to content

Commit 385b89f

Browse files
fix: speaking bool on local user object
1 parent 07bfe35 commit 385b89f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

client/packages/lowcoder/src/comps/comps/meetingComp/videoMeetingControllerComp.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,13 @@ let MTComp = (function () {
387387
volumeInfo.uid == userId &&
388388
props.localUser.value.speaking != speaking
389389
) {
390-
props.localUser.value.speaking = speaking;
390+
let localObject = {
391+
user: userId + "",
392+
audiostatus: props.audioControl.value,
393+
streamingVideo: props.videoControl.value,
394+
speaking: speaking,
395+
};
396+
props.localUser.onChange(localObject);
391397
} else {
392398
setUpdateVolume({ update: speaking, userid: volumeInfo.uid });
393399
}
@@ -548,6 +554,8 @@ MTComp = withMethodExposing(MTComp, [
548554
comp.children.localUser.change({
549555
user: userId + "",
550556
audiostatus: value,
557+
streamingVideo: comp.children.videoControl.getView().value,
558+
speaking: false,
551559
});
552560
await turnOnMicrophone(value);
553561
comp.children.audioControl.change(value);

0 commit comments

Comments
 (0)