This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new 71110ae7a [OPENMEETINGS-2253] self-echo is removed
71110ae7a is described below

commit 71110ae7ad60b3526b86a6c84267a2975e3fdd4d
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Fri Dec 16 22:45:01 2022 +0700

    [OPENMEETINGS-2253] self-echo is removed
---
 openmeetings-web/src/main/front/room/src/video.js        | 3 +++
 openmeetings-web/src/main/front/settings/src/settings.js | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/openmeetings-web/src/main/front/room/src/video.js 
b/openmeetings-web/src/main/front/room/src/video.js
index 6f0a9582b..5ce436391 100644
--- a/openmeetings-web/src/main/front/room/src/video.js
+++ b/openmeetings-web/src/main/front/room/src/video.js
@@ -442,6 +442,9 @@ module.exports = class Video {
                                state.video.attr('poster', null);
                                vc.addClass('audio-only');
                        }
+                       if (self) {
+                               state.video[0].muted = true;
+                       }
                        vc.append(state.video);
                        __updateVideo(state);
                }
diff --git a/openmeetings-web/src/main/front/settings/src/settings.js 
b/openmeetings-web/src/main/front/settings/src/settings.js
index 795108ff1..8ba9931ad 100644
--- a/openmeetings-web/src/main/front/settings/src/settings.js
+++ b/openmeetings-web/src/main/front/settings/src/settings.js
@@ -209,6 +209,7 @@ function _readValues(msg, func) {
                        }, msg);
                        navigator.mediaDevices.getUserMedia(cnts)
                                .then(stream => {
+                                       vid[0].muted = true;
                                        VideoUtil.playSrc(vid[0], stream);
                                        options.mediaStream = stream;
 
@@ -406,6 +407,7 @@ function _onKMessage(m) {
                                .then(() => {
                                        const stream = rtcPeer.stream;
                                        if (stream) {
+                                               vid[0].muted = false;
                                                VideoUtil.playSrc(vid[0], 
stream);
                                                lm.show();
                                                level = new MicLevel();

Reply via email to