feat: screencast config

This commit is contained in:
amhsirak
2025-01-06 11:54:31 +05:30
parent d79b2fd807
commit 65c30c0ef4

View File

@@ -21,13 +21,21 @@ import { getInjectableScript } from 'idcac-playwright';
import { BackendPerformanceMonitor } from '../../../../perf/performance'
chromium.use(stealthPlugin());
// Memory management configuration
const MEMORY_CONFIG = {
gcInterval: 60000, // 1 minute
maxHeapSize: 2048 * 1024 * 1024, // 2GB
heapUsageThreshold: 0.85 // 85%
};
const SCREENCAST_CONFIG = {
format: 'jpeg',
quality: 75,
maxWidth: 1280,
maxHeight: 720,
targetFPS: 30,
compressionQuality: 0.8,
maxQueueSize: 2
};
/**