Update environment configuration and enhance control features in WebRTC

- Changed VITE_API_URL and VITE_WEBRTC_URL in .env to point to local IP addresses.
- Added react-hot-toast for user notifications in the application.
- Integrated toast notifications for control acquisition in SessionPage.
- Enhanced PixelStreamingWrapper and SessionUsersPanel to manage control states for participants.
- Implemented grant and revoke control functionalities in the WebRTC service, allowing dynamic control management among users.
- Updated various components to reflect control states and improve user experience during sessions.
This commit is contained in:
2025-12-01 20:23:17 +05:00
parent 48f5833046
commit 775ba52cd0
20 changed files with 979 additions and 161 deletions
+9
View File
@@ -0,0 +1,9 @@
module.exports = {
apps: [
{
name: "session-server",
interpreter: "bun",
script: "./dist/index.js",
},
],
};
+3
View File
@@ -192,6 +192,8 @@ function getGpuFreeMb(): number {
{
encoding: "utf-8",
timeout: 5000, // 5 секунд таймаут
windowsHide: true, // Скрыть окно консоли на Windows
stdio: "pipe", // Перенаправить вывод в pipe вместо создания нового окна
}
);
@@ -754,6 +756,7 @@ function killProcessTree(pid: number): void {
execSync(`taskkill /pid ${pid} /T /F`, {
stdio: "ignore",
timeout: 10000,
windowsHide: true, // Скрыть окно консоли на Windows
});
console.log(
`[${new Date().toISOString()}] ✅ Дерево процессов для PID ${pid} успешно завершено`