From f912a78ea03729a68906033db06888a791ac6783 Mon Sep 17 00:00:00 2001 From: RB Date: Mon, 4 Mar 2024 17:57:20 +0800 Subject: [PATCH] style --- src/main/resources/web/assets/css/rb-page.css | 4 ++-- src/main/resources/web/assets/js/media-capturer.js | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/resources/web/assets/css/rb-page.css b/src/main/resources/web/assets/css/rb-page.css index f46acbdc0..570fc3434 100644 --- a/src/main/resources/web/assets/css/rb-page.css +++ b/src/main/resources/web/assets/css/rb-page.css @@ -5483,8 +5483,8 @@ span.icon-append .icon { text-align: center; } -.media-capture.md video, -.media-capture.md canvas { +.media-capture.media-capture-md video, +.media-capture.media-capture-md canvas { width: 768px; height: 576px; } diff --git a/src/main/resources/web/assets/js/media-capturer.js b/src/main/resources/web/assets/js/media-capturer.js index fb2fa746c..8923c10a4 100644 --- a/src/main/resources/web/assets/js/media-capturer.js +++ b/src/main/resources/web/assets/js/media-capturer.js @@ -5,7 +5,6 @@ rebuild is dual-licensed under commercial and open source licenses (GPLv3). See LICENSE and COMMERCIAL in the project root for license information. */ -// css width const _VIDEO_WIDTH = 1000 // eslint-disable-next-line no-unused-vars @@ -130,7 +129,7 @@ class MediaCapturer extends RbModal { } // https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia - const ps = { video: true, audio: true } + const ps = { video: true, audio: this.props.recordAudio || false } if (deviceId) ps.video = { deviceId: deviceId } navigator.mediaDevices .getUserMedia(ps)