This commit is contained in:
cupcakearmy 2021-06-10 22:53:33 +02:00
parent 1b691949a3
commit 893c0fcc5c
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9
2 changed files with 10 additions and 4 deletions

View File

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.3.0] - 2021-06-10
### Added
- [macOS] Pause on Mic/Camera
## [1.2.0] - 2021-06-01
### Added

View File

@ -32,17 +32,17 @@ export class InputDevicesStatus {
static update() {
// TODO: Update electron version as soon as issue is resolved https://github.com/electron/electron/issues/26143
isMicrophoneActive().then((result) => (this.status.mic = result))
isCameraActive().then((result) => (this.status.camera = result))
isMicrophoneActive().then((result) => (InputDevicesStatus.status.mic = result))
isCameraActive().then((result) => (InputDevicesStatus.status.camera = result))
}
static init() {
setInterval(this.update, 3000)
setInterval(InputDevicesStatus.update, 2000)
}
static areCameraOrMicrophoneActive(): boolean {
if (Settings.load('skipOnCameraOrMic')) {
return this.status.mic || this.status.camera
return InputDevicesStatus.status.mic || InputDevicesStatus.status.camera
}
return false
}