[jira] [Commented] (OPENMEETINGS-2253) Interruption of a video session when the microphone is turned on / off

2022-12-09 Thread Alvaro (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17645565#comment-17645565
 ] 

Alvaro commented on OPENMEETINGS-2253:
--

In demo-next 10-12-2022 when go in any room the whiteboard no appear.
Attached two captures:  whiteboard.png and indication.png

> Interruption of a video session when the microphone is turned on / off
> --
>
> Key: OPENMEETINGS-2253
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2253
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Audio/Video
>Affects Versions: 5.0.0-M3
> Environment: Chrome, FF
>Reporter: Evgeny
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 7.0.0
>
> Attachments: icon_example.png, indication.png, whiteboard.png
>
>
> Hello!
> 1. The participant turns on the camera - a camera window appears.
> 2. The participant turns on / off the microphone - the camera window closes, 
> after a delay of 2-3 seconds it opens, with a change from its original 
> position.
>  Each time the microphone is turned on / off, there is a delay and jerking of 
> the camera window of the conference participant, with the transition to the 
> default position.
> For other participants, the camera of this participant also disappears on the 
> screen.
>  Please make one button to turn on / off together - both the camera and the 
> microphone. Or a hotkey. So that the participant at the beginning and at the 
> end of the conversation does not press the camera and microphone separately 
> on the buttons.
> Thanks.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (OPENMEETINGS-2253) Interruption of a video session when the microphone is turned on / off

2022-12-09 Thread Alvaro (Jira)


 [ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alvaro updated OPENMEETINGS-2253:
-
Attachment: indication.png

> Interruption of a video session when the microphone is turned on / off
> --
>
> Key: OPENMEETINGS-2253
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2253
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Audio/Video
>Affects Versions: 5.0.0-M3
> Environment: Chrome, FF
>Reporter: Evgeny
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 7.0.0
>
> Attachments: icon_example.png, indication.png, whiteboard.png
>
>
> Hello!
> 1. The participant turns on the camera - a camera window appears.
> 2. The participant turns on / off the microphone - the camera window closes, 
> after a delay of 2-3 seconds it opens, with a change from its original 
> position.
>  Each time the microphone is turned on / off, there is a delay and jerking of 
> the camera window of the conference participant, with the transition to the 
> default position.
> For other participants, the camera of this participant also disappears on the 
> screen.
>  Please make one button to turn on / off together - both the camera and the 
> microphone. Or a hotkey. So that the participant at the beginning and at the 
> end of the conversation does not press the camera and microphone separately 
> on the buttons.
> Thanks.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (OPENMEETINGS-2253) Interruption of a video session when the microphone is turned on / off

2022-12-09 Thread Alvaro (Jira)


 [ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alvaro updated OPENMEETINGS-2253:
-
Attachment: whiteboard.png

> Interruption of a video session when the microphone is turned on / off
> --
>
> Key: OPENMEETINGS-2253
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2253
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Audio/Video
>Affects Versions: 5.0.0-M3
> Environment: Chrome, FF
>Reporter: Evgeny
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 7.0.0
>
> Attachments: icon_example.png, indication.png, whiteboard.png
>
>
> Hello!
> 1. The participant turns on the camera - a camera window appears.
> 2. The participant turns on / off the microphone - the camera window closes, 
> after a delay of 2-3 seconds it opens, with a change from its original 
> position.
>  Each time the microphone is turned on / off, there is a delay and jerking of 
> the camera window of the conference participant, with the transition to the 
> default position.
> For other participants, the camera of this participant also disappears on the 
> screen.
>  Please make one button to turn on / off together - both the camera and the 
> microphone. Or a hotkey. So that the participant at the beginning and at the 
> end of the conversation does not press the camera and microphone separately 
> on the buttons.
> Thanks.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[openmeetings] branch dependabot/maven/org.springframework-spring-web-6.0.0 created (now 93537a502)

2022-12-09 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/maven/org.springframework-spring-web-6.0.0
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


  at 93537a502 Bump spring-web from 5.3.24 to 6.0.0

No new revisions were added by this update.



[jira] [Commented] (OPENMEETINGS-2253) Interruption of a video session when the microphone is turned on / off

2022-12-09 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17645227#comment-17645227
 ] 

ASF subversion and git services commented on OPENMEETINGS-2253:
---

Commit b1f5fdacce967e41b76bba6fa5551ebcac13c6a9 in openmeetings's branch 
refs/heads/master from Maxim Solodovnik
[ https://gitbox.apache.org/repos/asf?p=openmeetings.git;h=b1f5fdacc ]

[OPENMEETINGS-2253] build should be fixed


> Interruption of a video session when the microphone is turned on / off
> --
>
> Key: OPENMEETINGS-2253
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2253
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Audio/Video
>Affects Versions: 5.0.0-M3
> Environment: Chrome, FF
>Reporter: Evgeny
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 7.0.0
>
> Attachments: icon_example.png
>
>
> Hello!
> 1. The participant turns on the camera - a camera window appears.
> 2. The participant turns on / off the microphone - the camera window closes, 
> after a delay of 2-3 seconds it opens, with a change from its original 
> position.
>  Each time the microphone is turned on / off, there is a delay and jerking of 
> the camera window of the conference participant, with the transition to the 
> default position.
> For other participants, the camera of this participant also disappears on the 
> screen.
>  Please make one button to turn on / off together - both the camera and the 
> microphone. Or a hotkey. So that the participant at the beginning and at the 
> end of the conversation does not press the camera and microphone separately 
> on the buttons.
> Thanks.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[openmeetings] branch master updated: [OPENMEETINGS-2253] build should be fixed

2022-12-09 Thread solomax
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 b1f5fdacc [OPENMEETINGS-2253] build should be fixed
b1f5fdacc is described below

commit b1f5fdacce967e41b76bba6fa5551ebcac13c6a9
Author: Maxim Solodovnik 
AuthorDate: Fri Dec 9 17:20:45 2022 +0700

[OPENMEETINGS-2253] build should be fixed
---
 .../src/main/java/org/apache/openmeetings/db/entity/basic/Client.java  | 2 +-
 .../java/org/apache/openmeetings/db/entity/basic/ScreenStreamDesc.java | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/Client.java
 
b/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/Client.java
index 126ae7047..ec182e493 100644
--- 
a/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/Client.java
+++ 
b/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/Client.java
@@ -201,7 +201,7 @@ public class Client implements IDataProviderEntity, 
IWsClient {
 
public StreamDesc addStream(StreamType stype, Activity toggle) {
StreamDesc sd = switch(stype) {
-   case SCREEN -> new ScreenStreamDesc(this);
+   case SCREEN -> new ScreenStreamDesc(this, toggle);
case WEBCAM -> new WebcamStreamDesc(this, toggle);
};
streams.put(sd.getUid(), sd);
diff --git 
a/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/ScreenStreamDesc.java
 
b/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/ScreenStreamDesc.java
index 1562345a6..0353b70f6 100644
--- 
a/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/ScreenStreamDesc.java
+++ 
b/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/ScreenStreamDesc.java
@@ -26,8 +26,9 @@ public class ScreenStreamDesc extends StreamDesc {
super(sd);
}
 
-   public ScreenStreamDesc(final Client client) {
+   public ScreenStreamDesc(final Client client, Activity toggle) {
super(client, StreamType.SCREEN);
+   add(toggle);
setWidth(800);
setHeight(600);
}



[jira] [Commented] (OPENMEETINGS-2253) Interruption of a video session when the microphone is turned on / off

2022-12-09 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17645216#comment-17645216
 ] 

ASF subversion and git services commented on OPENMEETINGS-2253:
---

Commit af8a95df1c4fdebe8967840517918d0c1edfe86f in openmeetings's branch 
refs/heads/master from Maxim Solodovnik
[ https://gitbox.apache.org/repos/asf?p=openmeetings.git;h=af8a95df1 ]

[OPENMEETINGS-2253] camera/microphone on/off is not causes media-stream 
re-negotiation


> Interruption of a video session when the microphone is turned on / off
> --
>
> Key: OPENMEETINGS-2253
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2253
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Audio/Video
>Affects Versions: 5.0.0-M3
> Environment: Chrome, FF
>Reporter: Evgeny
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 7.0.0
>
> Attachments: icon_example.png
>
>
> Hello!
> 1. The participant turns on the camera - a camera window appears.
> 2. The participant turns on / off the microphone - the camera window closes, 
> after a delay of 2-3 seconds it opens, with a change from its original 
> position.
>  Each time the microphone is turned on / off, there is a delay and jerking of 
> the camera window of the conference participant, with the transition to the 
> default position.
> For other participants, the camera of this participant also disappears on the 
> screen.
>  Please make one button to turn on / off together - both the camera and the 
> microphone. Or a hotkey. So that the participant at the beginning and at the 
> end of the conversation does not press the camera and microphone separately 
> on the buttons.
> Thanks.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (OPENMEETINGS-2253) Interruption of a video session when the microphone is turned on / off

2022-12-09 Thread Maxim Solodovnik (Jira)


 [ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maxim Solodovnik reassigned OPENMEETINGS-2253:
--

Assignee: Maxim Solodovnik  (was: Sebastian Wagner)

> Interruption of a video session when the microphone is turned on / off
> --
>
> Key: OPENMEETINGS-2253
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2253
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Audio/Video
>Affects Versions: 5.0.0-M3
> Environment: Chrome, FF
>Reporter: Evgeny
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 7.0.0
>
> Attachments: icon_example.png
>
>
> Hello!
> 1. The participant turns on the camera - a camera window appears.
> 2. The participant turns on / off the microphone - the camera window closes, 
> after a delay of 2-3 seconds it opens, with a change from its original 
> position.
>  Each time the microphone is turned on / off, there is a delay and jerking of 
> the camera window of the conference participant, with the transition to the 
> default position.
> For other participants, the camera of this participant also disappears on the 
> screen.
>  Please make one button to turn on / off together - both the camera and the 
> microphone. Or a hotkey. So that the participant at the beginning and at the 
> end of the conversation does not press the camera and microphone separately 
> on the buttons.
> Thanks.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (OPENMEETINGS-2253) Interruption of a video session when the microphone is turned on / off

2022-12-09 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17645214#comment-17645214
 ] 

ASF subversion and git services commented on OPENMEETINGS-2253:
---

Commit 92a8a51a6943c5fc673189e7284ca7ede8111f35 in openmeetings's branch 
refs/heads/master from Maxim Solodovnik
[ https://gitbox.apache.org/repos/asf?p=openmeetings.git;h=92a8a51a6 ]

[OPENMEETINGS-2253] RTC related JS code is simplified; deprecated 
kurento-utils-js is dropped


> Interruption of a video session when the microphone is turned on / off
> --
>
> Key: OPENMEETINGS-2253
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2253
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Audio/Video
>Affects Versions: 5.0.0-M3
> Environment: Chrome, FF
>Reporter: Evgeny
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 7.0.0
>
> Attachments: icon_example.png
>
>
> Hello!
> 1. The participant turns on the camera - a camera window appears.
> 2. The participant turns on / off the microphone - the camera window closes, 
> after a delay of 2-3 seconds it opens, with a change from its original 
> position.
>  Each time the microphone is turned on / off, there is a delay and jerking of 
> the camera window of the conference participant, with the transition to the 
> default position.
> For other participants, the camera of this participant also disappears on the 
> screen.
>  Please make one button to turn on / off together - both the camera and the 
> microphone. Or a hotkey. So that the participant at the beginning and at the 
> end of the conversation does not press the camera and microphone separately 
> on the buttons.
> Thanks.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (OPENMEETINGS-2253) Interruption of a video session when the microphone is turned on / off

2022-12-09 Thread Maxim Solodovnik (Jira)


 [ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maxim Solodovnik resolved OPENMEETINGS-2253.

Resolution: Fixed

should be addressed

> Interruption of a video session when the microphone is turned on / off
> --
>
> Key: OPENMEETINGS-2253
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2253
> Project: Openmeetings
>  Issue Type: Bug
>  Components: Audio/Video
>Affects Versions: 5.0.0-M3
> Environment: Chrome, FF
>Reporter: Evgeny
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 7.0.0
>
> Attachments: icon_example.png
>
>
> Hello!
> 1. The participant turns on the camera - a camera window appears.
> 2. The participant turns on / off the microphone - the camera window closes, 
> after a delay of 2-3 seconds it opens, with a change from its original 
> position.
>  Each time the microphone is turned on / off, there is a delay and jerking of 
> the camera window of the conference participant, with the transition to the 
> default position.
> For other participants, the camera of this participant also disappears on the 
> screen.
>  Please make one button to turn on / off together - both the camera and the 
> microphone. Or a hotkey. So that the participant at the beginning and at the 
> end of the conversation does not press the camera and microphone separately 
> on the buttons.
> Thanks.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (OPENMEETINGS-2732) (7.0.0) Libraries should be updated

2022-12-09 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-2732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17645215#comment-17645215
 ] 

ASF subversion and git services commented on OPENMEETINGS-2732:
---

Commit ffef66bcfd000887aa845c3019e3f3e9bb50d669 in openmeetings's branch 
refs/heads/master from Maxim Solodovnik
[ https://gitbox.apache.org/repos/asf?p=openmeetings.git;h=ffef66bcf ]

[OPENMEETINGS-2732] tinyify, ua-parser-js, terser


> (7.0.0) Libraries should be updated
> ---
>
> Key: OPENMEETINGS-2732
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-2732
> Project: Openmeetings
>  Issue Type: Task
>  Components: Builds
>Affects Versions: 7.0.0
>Reporter: Maxim Solodovnik
>Assignee: Maxim Solodovnik
>Priority: Major
> Fix For: 7.0.0
>
>
> Libraries should be updated



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[openmeetings] 03/03: [OPENMEETINGS-2253] camera/microphone on/off is not causes media-stream re-negotiation

2022-12-09 Thread solomax
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

commit af8a95df1c4fdebe8967840517918d0c1edfe86f
Author: Maxim Solodovnik 
AuthorDate: Fri Dec 9 16:38:55 2022 +0700

[OPENMEETINGS-2253] camera/microphone on/off is not causes media-stream 
re-negotiation
---
 .../openmeetings/db/entity/basic/Client.java   | 281 +
 .../db/entity/basic/ScreenStreamDesc.java  |  39 +++
 .../openmeetings/db/entity/basic/StreamDesc.java   | 132 ++
 .../db/entity/basic/WebcamStreamDesc.java  | 116 +
 .../apache/openmeetings/db/entity/room/Room.java   |   4 +
 .../org/apache/openmeetings/mediaserver/KRoom.java |  27 +-
 .../apache/openmeetings/mediaserver/KStream.java   |  12 +-
 .../openmeetings/mediaserver/KurentoHandler.java   |  22 +-
 .../openmeetings/mediaserver/StreamProcessor.java  | 135 --
 .../mediaserver/StreamProcessorActions.java|   8 +-
 .../mediaserver/TestRecordingFlowMocked.java   |   2 +-
 openmeetings-web/src/main/front/room/src/sharer.js |   3 +
 .../src/main/front/room/src/user-list.js   |  13 +-
 openmeetings-web/src/main/front/room/src/video.js  |  99 +---
 .../src/main/front/settings/src/mic-level.js   |  28 +-
 .../src/main/front/settings/src/settings.js|  13 +-
 .../src/main/front/settings/src/video-util.js  |  27 +-
 .../web/admin/connection/KStreamDto.java   |   2 +-
 .../apache/openmeetings/web/room/RoomPanel.java|  33 ++-
 .../openmeetings/web/room/sidebar/RoomSidebar.java |   2 +-
 20 files changed, 573 insertions(+), 425 deletions(-)

diff --git 
a/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/Client.java
 
b/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/Client.java
index e16a9657f..126ae7047 100644
--- 
a/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/Client.java
+++ 
b/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/Client.java
@@ -21,10 +21,7 @@ package org.apache.openmeetings.db.entity.basic;
 import static java.util.UUID.randomUUID;
 import static org.apache.openmeetings.util.OmFileHelper.SIP_USER_ID;
 
-import java.io.Serializable;
-import java.util.ArrayList;
 import java.util.Date;
-import java.util.HashMap;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
@@ -49,6 +46,7 @@ import com.github.openjson.JSONObject;
 public class Client implements IDataProviderEntity, IWsClient {
private static final long serialVersionUID = 1L;
 
+
public enum Activity {
AUDIO //sends Audio to the room
, VIDEO //sends Video to the room
@@ -68,7 +66,6 @@ public class Client implements IDataProviderEntity, IWsClient 
{
private final String sid;
private String remoteAddress;
private final Set rights = ConcurrentHashMap.newKeySet();
-   private final Set activities = ConcurrentHashMap.newKeySet();
private final Map streams = new 
ConcurrentHashMap<>();
private final Date connectedSince;
private int cam = -1;
@@ -134,7 +131,6 @@ public class Client implements IDataProviderEntity, 
IWsClient {
}
 
public void clear() {
-   activities.clear();
rights.clear();
streams.clear();
}
@@ -165,67 +161,49 @@ public class Client implements IDataProviderEntity, 
IWsClient {
}
}
 
-   public void clearActivities() {
-   activities.clear();
+   public boolean isBroadcasting() {
+   return getCamStreams()
+   .anyMatch(WebcamStreamDesc::isBroadcasting);
}
 
-   public boolean hasAnyActivity(Activity... aa) {
-   boolean res = false;
-   if (aa != null) {
-   for (Activity a : aa) {
-   res |= activities.contains(a);
-   }
-   }
-   return res;
+   public List getActivities() {
+   return getCamStreams()
+   .flatMap(sd -> sd.getActivities().stream())
+   .toList();
}
 
-   public boolean hasActivity(Activity a) {
-   return activities.contains(a);
+   public boolean has(Activity activity) {
+   return getCamStreams()
+   .flatMap(sd -> sd.getActivities().stream())
+   .anyMatch(a -> activity == a);
}
 
-   public Client toggle(Activity a) {
-   if (hasActivity(a)) {
-   remove(a);
-   } else {
-   set(a);
+   public boolean isAllowed(Activity a) {
+   boolean r = false;
+   if (room == null) {
+   return r;
  

[openmeetings] branch master updated (601be4d44 -> af8a95df1)

2022-12-09 Thread solomax
This is an automated email from the ASF dual-hosted git repository.

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


from 601be4d44 [OPENMEETINGS-2732] tomcat, jettison
 new 92a8a51a6 [OPENMEETINGS-2253] RTC related JS code is simplified; 
deprecated kurento-utils-js is dropped
 new ffef66bcf [OPENMEETINGS-2732] tinyify, ua-parser-js, terser
 new af8a95df1 [OPENMEETINGS-2253] camera/microphone on/off is not causes 
media-stream re-negotiation

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../openmeetings/db/entity/basic/Client.java   | 281 +++---
 .../{IWsClient.java => ScreenStreamDesc.java}  |  28 +-
 .../openmeetings/db/entity/basic/StreamDesc.java   | 132 +
 .../db/entity/basic/WebcamStreamDesc.java  | 116 
 .../apache/openmeetings/db/entity/room/Room.java   |   4 +
 .../org/apache/openmeetings/mediaserver/KRoom.java |  27 +-
 .../apache/openmeetings/mediaserver/KStream.java   |  12 +-
 .../openmeetings/mediaserver/KurentoHandler.java   |  22 +-
 .../openmeetings/mediaserver/StreamProcessor.java  | 135 ++---
 .../mediaserver/StreamProcessorActions.java|   8 +-
 .../mediaserver/TestRecordingFlowMocked.java   |   2 +-
 openmeetings-web/src/main/front/chat/package.json  |   2 +-
 openmeetings-web/src/main/front/main/package.json  |   4 +-
 openmeetings-web/src/main/front/room/package.json  |   2 +-
 openmeetings-web/src/main/front/room/src/sharer.js |   3 +
 .../src/main/front/room/src/user-list.js   |  13 +-
 openmeetings-web/src/main/front/room/src/video.js  | 289 +-
 .../src/main/front/settings/package.json   |   7 +-
 .../src/main/front/settings/src/WebRtcPeer.js  | 592 +
 .../src/main/front/settings/src/index.js   |   9 +-
 .../src/main/front/settings/src/mic-level.js   |  32 +-
 .../src/main/front/settings/src/settings.js| 149 ++
 .../src/main/front/settings/src/video-util.js  |  50 +-
 openmeetings-web/src/main/front/wb/package.json|   2 +-
 .../web/admin/connection/KStreamDto.java   |   2 +-
 .../apache/openmeetings/web/room/RoomPanel.java|  33 +-
 .../openmeetings/web/room/sidebar/RoomSidebar.java |   2 +-
 27 files changed, 1286 insertions(+), 672 deletions(-)
 copy 
openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/{IWsClient.java
 => ScreenStreamDesc.java} (64%)
 create mode 100644 
openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/StreamDesc.java
 create mode 100644 
openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/basic/WebcamStreamDesc.java
 create mode 100644 openmeetings-web/src/main/front/settings/src/WebRtcPeer.js



[openmeetings] 01/03: [OPENMEETINGS-2253] RTC related JS code is simplified; deprecated kurento-utils-js is dropped

2022-12-09 Thread solomax
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

commit 92a8a51a6943c5fc673189e7284ca7ede8111f35
Author: Maxim Solodovnik 
AuthorDate: Sun Nov 27 11:56:54 2022 +0700

[OPENMEETINGS-2253] RTC related JS code is simplified; deprecated 
kurento-utils-js is dropped
---
 openmeetings-web/src/main/front/room/src/video.js  | 214 +++-
 .../src/main/front/settings/package.json   |   5 +-
 .../src/main/front/settings/src/WebRtcPeer.js  | 592 +
 .../src/main/front/settings/src/index.js   |   9 +-
 .../src/main/front/settings/src/mic-level.js   |   6 +-
 .../src/main/front/settings/src/settings.js| 140 ++---
 .../src/main/front/settings/src/video-util.js  |  23 +-
 7 files changed, 745 insertions(+), 244 deletions(-)

diff --git a/openmeetings-web/src/main/front/room/src/video.js 
b/openmeetings-web/src/main/front/room/src/video.js
index 676c9d551..3477c4bae 100644
--- a/openmeetings-web/src/main/front/room/src/video.js
+++ b/openmeetings-web/src/main/front/room/src/video.js
@@ -105,9 +105,7 @@ module.exports = class Video {
data.aDest = 
data.aCtx.createMediaStreamDestination();

data.analyser.connect(data.aDest);
_stream = 
data.aDest.stream;
-   
stream.getVideoTracks().forEach(function(track) {
-   
_stream.addTrack(track);
-   });
+   
stream.getVideoTracks().forEach(track => _stream.addTrack(track));
}
}
state.data = data;
@@ -131,86 +129,69 @@ module.exports = class Video {
});
});
}
-   function __attachListener(state) {
-   if (!state.disposed && state.data.rtcPeer) {
-   const pc = state.data.rtcPeer.peerConnection;
-   pc.onconnectionstatechange = function(event) {
-   console.warn(`!!RTCPeerConnection state 
changed: ${pc.connectionState}, user: ${sd.user.displayName}, uid: ${sd.uid}`);
-   switch(pc.connectionState) {
-   case "connected":
-   if (sd.self) {
-   // The 
connection has become fully connected
-   
OmUtil.alert('info', `Connection to Media server has been established`, 
3000);//notify user
-   }
-   break;
-   case "disconnected":
-   case "failed":
-   //connection has been 
dropped
-   OmUtil.alert('warning', 
`Media server connection for user ${sd.user.displayName} is 
${pc.connectionState}, will try to re-connect`, 3000);//notify user
-   _refresh();
-   break;
-   case "closed":
-   // The connection has 
been closed
-   break;
+   function __connectionStateChangeListener(state) {
+   const pc = state.data.rtcPeer.pc;
+   console.warn(`!!RTCPeerConnection state changed: 
${pc.connectionState}, user: ${sd.user.displayName}, uid: ${sd.uid}`);
+   switch(pc.connectionState) {
+   case "connected":
+   if (sd.self) {
+   // The connection has become 
fully connected
+   OmUtil.alert('info', 
`Connection to Media server has been established`, 3000);//notify user
}
-   }
+   break;
+   case "disconnected":
+   case "failed":
+

[openmeetings] 02/03: [OPENMEETINGS-2732] tinyify, ua-parser-js, terser

2022-12-09 Thread solomax
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

commit ffef66bcfd000887aa845c3019e3f3e9bb50d669
Author: Maxim Solodovnik 
AuthorDate: Thu Dec 8 15:32:17 2022 +0700

[OPENMEETINGS-2732] tinyify, ua-parser-js, terser
---
 openmeetings-web/src/main/front/chat/package.json | 2 +-
 openmeetings-web/src/main/front/main/package.json | 4 ++--
 openmeetings-web/src/main/front/room/package.json | 2 +-
 openmeetings-web/src/main/front/settings/package.json | 2 +-
 openmeetings-web/src/main/front/wb/package.json   | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/openmeetings-web/src/main/front/chat/package.json 
b/openmeetings-web/src/main/front/chat/package.json
index 124eb4746..cbe5592e1 100644
--- a/openmeetings-web/src/main/front/chat/package.json
+++ b/openmeetings-web/src/main/front/chat/package.json
@@ -13,6 +13,6 @@
   "rat-license": "Licensed under the Apache License, Version 2.0 (the 
\"License\") http://www.apache.org/licenses/LICENSE-2.0;,
   "devDependencies": {
 "browserify": "^17.0.0",
-"tinyify": "^3.1.0"
+"tinyify": "^4.0.0"
   }
 }
diff --git a/openmeetings-web/src/main/front/main/package.json 
b/openmeetings-web/src/main/front/main/package.json
index f56e781fc..372d262b1 100644
--- a/openmeetings-web/src/main/front/main/package.json
+++ b/openmeetings-web/src/main/front/main/package.json
@@ -13,9 +13,9 @@
   "rat-license": "Licensed under the Apache License, Version 2.0 (the 
\"License\") http://www.apache.org/licenses/LICENSE-2.0;,
   "devDependencies": {
 "browserify": "^17.0.0",
-"tinyify": "^3.1.0"
+"tinyify": "^4.0.0"
   },
   "dependencies": {
-"ua-parser-js": "^1.0.2"
+"ua-parser-js": "^1.0.32"
   }
 }
diff --git a/openmeetings-web/src/main/front/room/package.json 
b/openmeetings-web/src/main/front/room/package.json
index 057126848..dbaf2f2d4 100644
--- a/openmeetings-web/src/main/front/room/package.json
+++ b/openmeetings-web/src/main/front/room/package.json
@@ -13,7 +13,7 @@
   "rat-license": "Licensed under the Apache License, Version 2.0 (the 
\"License\") http://www.apache.org/licenses/LICENSE-2.0;,
   "devDependencies": {
 "browserify": "^17.0.0",
-"tinyify": "^3.1.0"
+"tinyify": "^4.0.0"
   },
   "dependencies": {
 "nosleep.js": "^0.12.0"
diff --git a/openmeetings-web/src/main/front/settings/package.json 
b/openmeetings-web/src/main/front/settings/package.json
index 8437ecc37..a3a075c82 100644
--- a/openmeetings-web/src/main/front/settings/package.json
+++ b/openmeetings-web/src/main/front/settings/package.json
@@ -13,7 +13,7 @@
   "rat-license": "Licensed under the Apache License, Version 2.0 (the 
\"License\") http://www.apache.org/licenses/LICENSE-2.0;,
   "devDependencies": {
 "browserify": "^17.0.0",
-"tinyify": "^3.1.0"
+"tinyify": "^4.0.0"
   },
   "dependencies": {
 "freeice": "2.2.2",
diff --git a/openmeetings-web/src/main/front/wb/package.json 
b/openmeetings-web/src/main/front/wb/package.json
index 3b8787154..3e7b33e4f 100644
--- a/openmeetings-web/src/main/front/wb/package.json
+++ b/openmeetings-web/src/main/front/wb/package.json
@@ -14,7 +14,7 @@
   "devDependencies": {
 "browserify": "^17.0.0",
 "esmify": "^2.1.1",
-"terser": "^5.15.0"
+"terser": "^5.16.1"
   },
   "dependencies": {
 "fabric": "^5.2.4",