feat: change screencast config
This commit is contained in:
@@ -29,7 +29,6 @@ const MEMORY_CONFIG = {
|
|||||||
|
|
||||||
const SCREENCAST_CONFIG: {
|
const SCREENCAST_CONFIG: {
|
||||||
format: "jpeg" | "png";
|
format: "jpeg" | "png";
|
||||||
quality: number;
|
|
||||||
maxWidth: number;
|
maxWidth: number;
|
||||||
maxHeight: number;
|
maxHeight: number;
|
||||||
targetFPS: number;
|
targetFPS: number;
|
||||||
@@ -37,9 +36,8 @@ const SCREENCAST_CONFIG: {
|
|||||||
maxQueueSize: number;
|
maxQueueSize: number;
|
||||||
} = {
|
} = {
|
||||||
format: 'jpeg',
|
format: 'jpeg',
|
||||||
quality: 75,
|
maxWidth: 900,
|
||||||
maxWidth: 1280,
|
maxHeight: 400,
|
||||||
maxHeight: 720,
|
|
||||||
targetFPS: 30,
|
targetFPS: 30,
|
||||||
compressionQuality: 0.8,
|
compressionQuality: 0.8,
|
||||||
maxQueueSize: 2
|
maxQueueSize: 2
|
||||||
@@ -603,7 +601,6 @@ export class RemoteBrowser {
|
|||||||
try {
|
try {
|
||||||
await this.client.send('Page.startScreencast', {
|
await this.client.send('Page.startScreencast', {
|
||||||
format: SCREENCAST_CONFIG.format,
|
format: SCREENCAST_CONFIG.format,
|
||||||
quality: SCREENCAST_CONFIG.quality
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Set up screencast frame handler
|
// Set up screencast frame handler
|
||||||
|
|||||||
Reference in New Issue
Block a user