You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2018/09/25 15:12:06 UTC

[openmeetings] branch 4.0.x updated: [OPENMEETINGS-1932] resolution marked as selected is used by default

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

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


The following commit(s) were added to refs/heads/4.0.x by this push:
     new ee5ba4d  [OPENMEETINGS-1932] resolution marked as selected is used by default
ee5ba4d is described below

commit ee5ba4d35f396d1da938946d6d248951da9ff2bd
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Tue Sep 25 22:11:47 2018 +0700

    [OPENMEETINGS-1932] resolution marked as selected is used by default
---
 .../src/main/java/org/apache/openmeetings/web/room/raw-settings.js   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-settings.js b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-settings.js
index 881ea89..402e17b 100644
--- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-settings.js
+++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-settings.js
@@ -19,11 +19,12 @@ var VideoSettings = (function() {
 	function _load() {
 		s = Settings.load();
 		if (!s.video) {
+			const _res = $('#video-settings .cam-resolution option:selected').data();
 			s.video = {
 				cam: 0
 				, mic: 0
-				, width: 120
-				, height: 90
+				, width: _res.width
+				, height: _res.height
 			};
 		}
 		return s;