Initial commit: Retribusi frontend dengan dashboard, event logs, dan settings
This commit is contained in:
39
proxy/start-proxy.bat
Normal file
39
proxy/start-proxy.bat
Normal file
@@ -0,0 +1,39 @@
|
||||
@echo off
|
||||
echo ========================================
|
||||
echo RTSP to WebSocket Proxy Server
|
||||
echo ========================================
|
||||
echo.
|
||||
|
||||
cd /d %~dp0
|
||||
|
||||
echo Checking Node.js...
|
||||
node --version >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo ERROR: Node.js not found!
|
||||
echo Please install Node.js from https://nodejs.org/
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Checking FFmpeg...
|
||||
ffmpeg -version >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo ERROR: FFmpeg not found!
|
||||
echo Please install FFmpeg and add to PATH
|
||||
echo Download from https://ffmpeg.org/download.html
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Starting proxy server...
|
||||
echo RTSP URL: rtsp://10.60.0.10:8554/cam1
|
||||
echo WebSocket Port: 8082
|
||||
echo.
|
||||
echo Press Ctrl+C to stop
|
||||
echo.
|
||||
|
||||
node rtsp-websocket-proxy.js rtsp://10.60.0.10:8554/cam1 8082
|
||||
|
||||
pause
|
||||
|
||||
Reference in New Issue
Block a user