|
@@ -16,6 +16,8 @@ export interface PlatformConfigType {
|
|
|
minHeight?: number;
|
|
|
maxHeight?: number;
|
|
|
frameRate?: number;
|
|
|
+ maxFrameRate?: number;
|
|
|
+ minFrameRate?: number;
|
|
|
}
|
|
|
|
|
|
export interface InitConfigType extends DisplayMediaStreamConstraints {
|
|
@@ -189,7 +191,6 @@ export class BasicSimaqRecorder extends EventEmitter {
|
|
|
}
|
|
|
console.log('eletron-audioInput', audioInput);
|
|
|
if (navigator.mediaDevices.getDisplayMedia) {
|
|
|
-
|
|
|
const videoConfig = {
|
|
|
mandatory: {
|
|
|
chromeMediaSource: 'desktop',
|
|
@@ -198,6 +199,10 @@ export class BasicSimaqRecorder extends EventEmitter {
|
|
|
maxWidth: this.platformConfig.maxWidth || 3840,
|
|
|
minHeight: this.platformConfig.minHeight || 720,
|
|
|
maxHeight: this.platformConfig.maxHeight || 2160,
|
|
|
+ maxFrameRate:
|
|
|
+ this.platformConfig.maxFrameRate || 30,
|
|
|
+ minFrameRate:
|
|
|
+ this.platformConfig.minFrameRate || 30,
|
|
|
},
|
|
|
};
|
|
|
console.log('videoConfig', videoConfig);
|