spot: fixing constraints and version in bg.ts
This commit is contained in:
parent
99b6238fc7
commit
58314ff2f3
3 changed files with 6 additions and 5 deletions
|
|
@ -19,7 +19,7 @@ let checkBusy = false;
|
|||
export default defineBackground(() => {
|
||||
const CHECK_INT = 60 * 1000;
|
||||
const PING_INT = 30 * 1000;
|
||||
const VER = "1.0.14";
|
||||
const VER = "1.0.21";
|
||||
|
||||
interface SpotObj {
|
||||
name: string;
|
||||
|
|
|
|||
|
|
@ -41,10 +41,10 @@ function getRecordingSettings(qualityValue) {
|
|||
audio: true,
|
||||
video: {
|
||||
width: {
|
||||
exact: width,
|
||||
ideal: width,
|
||||
},
|
||||
height: {
|
||||
exact: height,
|
||||
ideal: height,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -195,7 +195,7 @@ class ScreenRecorder {
|
|||
}
|
||||
|
||||
async _getStream(type, streamId, useMicrophone = false, audioId) {
|
||||
const constraints = this.settings;
|
||||
const constraints = this.settings.constrains;
|
||||
this.videoStream = null;
|
||||
let microphoneStream = null;
|
||||
try {
|
||||
|
|
@ -296,7 +296,7 @@ class ScreenRecorder {
|
|||
return resolve({ blob: null, mtype: null });
|
||||
}
|
||||
setTimeout(() => {
|
||||
resolve(this.getVideoData(iteration++));
|
||||
resolve(this.getVideoData(iteration + 1));
|
||||
}, 100);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ export function stopDebugger(tabId?: string | number) {
|
|||
potentialActiveTabs.forEach((tabId) => {
|
||||
chrome.debugger.detach({ tabId });
|
||||
});
|
||||
chrome.debugger.onEvent.removeListener(handleRequestIntercept);
|
||||
potentialActiveTabs.length = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue