| | |
| | | // 启动后台进程 |
| | | CmdUtils.commandStart(processName, cmd, null); |
| | | // 启动cmd窗口 |
| | | // String[] command = {"cmd", "/c", "start", exePath, "-H127.0.0.1:8000", "-o"}; |
| | | // CmdUtils.commandStart(command); |
| | | // String[] command = {"cmd", "/c", "start", exePath, "-H127.0.0.1:8000", "-o"}; |
| | | // CmdUtils.commandStart(command); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @PreDestroy |
| | | public void destroyMediaMtx() { |
| | | log.info("销毁webrtc-streamer"); |
| | | if (CmdUtils.isProcessRunning(processName)) { |
| | | // 进程已经在运行,结束该进程 |
| | | CmdUtils.stopProcess(processName); |
| | | if (webrtcEnabled) { |
| | | log.info("销毁webrtc-streamer"); |
| | | if (CmdUtils.isProcessRunning(processName)) { |
| | | // 进程已经在运行,结束该进程 |
| | | CmdUtils.stopProcess(processName); |
| | | } |
| | | } |
| | | } |
| | | } |