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 9d6ce2601 [OPENMEETINGS-2846] temporary JS debug
9d6ce2601 is described below

commit 9d6ce2601714b4c7096b3680ef4ff244901926e3
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Thu Nov 5 19:09:11 2026 +0700

    [OPENMEETINGS-2846] temporary JS debug
---
 .gitignore                                                 | 1 +
 openmeetings-web/src/main/front/src/room/video.js          | 8 +++++++-
 openmeetings-web/src/main/front/src/settings/video-util.js | 2 ++
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 7bef1f079..587882b20 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,3 +26,4 @@ package-lock.json
 
 .checkstyle
 
+.claude
diff --git a/openmeetings-web/src/main/front/src/room/video.js 
b/openmeetings-web/src/main/front/src/room/video.js
index d0957888f..3cf227ca7 100644
--- a/openmeetings-web/src/main/front/src/room/video.js
+++ b/openmeetings-web/src/main/front/src/room/video.js
@@ -56,7 +56,12 @@ module.exports = class Video {
                                if (VideoUtil.isSafari()) {
                                        promise = new Promise(resolve => {
                                                
VideoUtil.askPermission(resolve);
-                                       }).then(() => 
navigator.mediaDevices.getDisplayMedia(cnts));
+                                       }).then(() => {console.log("Promise 
resolved ready to getDisplayMedia!"); return 
navigator.mediaDevices.getDisplayMedia(cnts)
+                                       //FIXME TODO });
+                                       }).catch(err => {
+                                               console.log("Error in the 
middle!");
+                               OmUtil.error(err);
+                                       })
                                } else {
                                        promise = 
navigator.mediaDevices.getDisplayMedia(cnts);
                                }
@@ -67,6 +72,7 @@ module.exports = class Video {
                                });
                        }
                        promise.then(stream => {
+                               console.log("Got stream!!");
                                if (state.disposed) {
                                        throw new Error("MediaStream already 
disposed");
                                }
diff --git a/openmeetings-web/src/main/front/src/settings/video-util.js 
b/openmeetings-web/src/main/front/src/settings/video-util.js
index 7c0fc1451..3f1afe097 100644
--- a/openmeetings-web/src/main/front/src/settings/video-util.js
+++ b/openmeetings-web/src/main/front/src/settings/video-util.js
@@ -264,7 +264,9 @@ function _askPermission(callback) {
                        , label: perm.data('btn-ok')
                        , value: perm.data('btn-ok')
                        , onClick: function() {
+                               console.log("askPermission::onClick, ready to 
call callback");
                                callback();
+                               console.log("askPermission::onClick, disposing 
confirmation");
                                $('.sidebar').confirmation('dispose');
                        }
                }]

Reply via email to