初步适配windows系统

This commit is contained in:
mofeng-git
2025-02-03 12:55:28 +08:00
parent 4f5daebf93
commit ddb4d752c0
24 changed files with 567 additions and 153 deletions

View File

@@ -26,7 +26,7 @@ kvmd:
hid:
type: ch9329
device: /dev/ttyUSB0
device: COM7
speed: 115200
read_timeout: 0.3
@@ -53,7 +53,7 @@ kvmd:
streamer:
resolution:
default: 1920x1080
default: 1280x720
forever: true
@@ -64,32 +64,30 @@ kvmd:
h264_bitrate:
default: 8000
cmd:
- "kvmd_data/usr/bin/ustreamer"
- "--device=/dev/video0"
- "--persistent"
- "--format=mjpeg"
- "--resolution={resolution}"
- "--desired-fps={desired_fps}"
- "--drop-same-frames=30"
- "--last-as-blank=0"
- "--unix={unix}"
- "--unix-rm"
- "--unix-mode=777"
- "--exit-on-parent-death"
- "--notify-parent"
- "--no-log-colors"
- "--jpeg-sink=kvmd::ustreamer::jpeg"
- "--jpeg-sink-mode=0660"
- "--slowdown"
pre_start_cmd: kvmd_data/win/true.exe
post_stop_cmd: kvmd_data/win/true.exe
unix: kvmd_data/run/kvmd/ustreamer.sock
cmd:
- "C:/Users/mofen/miniconda3/python.exe"
- "ustreamer-win/ustreamer-win.py"
- "--device=0"
- "--resolution={resolution}"
- "--fps={desired_fps}"
- "--quality=100"
unix: http://localhost:8000
ipmi:
auth:
file: kvmd_data/etc/kvmd/ipmipasswd
pst:
remount_cmd:
- "kvmd_data/win/true.exe"
vnc:
keymap: kvmd_data/usr/share/kvmd/keymaps/en-us
mouse_output: usb
@@ -110,10 +108,20 @@ vnc:
otgnet:
commands:
pre_start_cmd:
- "kvmd_data/win/true.exe"
post_stop_cmd:
- "kvmd_data/win/true.exe"
post_start_cmd:
- "/bin/true"
- "kvmd_data/win/true.exe"
pre_stop_cmd:
- "/bin/true"
- "kvmd_data/win/true.exe"
iface:
ip_cmd:
- "kvmd_data/win/true.exe"
firewall:
iptables_cmd:
- "kvmd_data/win/true.exe"
nginx:
http:
@@ -123,4 +131,4 @@ nginx:
janus:
cmd:
- "/bin/true"
- "kvmd_data/win/true.exe"

View File

@@ -899,7 +899,7 @@
</div>
<div id="stream-info"></div>
<button class="window-button-exit-full-tab">&#9660;</button>
<div class="stream-box-offline" id="stream-box"><img id="stream-image" src="/share/png/blank-stream.png">
<div class="stream-box-online" id="stream-box"><img id="stream-image" src="/share/png/blank-stream.png">
<video class="hidden" id="stream-video" disablePictureInPicture="true" autoplay playsinline muted></video>
<div id="stream-fullscreen-active"></div>
</div>

View File

@@ -13,7 +13,7 @@ div(id="stream-window" class="window window-resizable")
div(id="stream-info")
button(class="window-button-exit-full-tab") &#9660;
div(id="stream-box" class="stream-box-offline")
div(id="stream-box" class="stream-box-online")
img(id="stream-image" src=`${png_dir}/blank-stream.png`)
video(id="stream-video" class="hidden" disablePictureInPicture="true" autoplay playsinline muted)
div(id="stream-fullscreen-active")

BIN
kvmd_data/win/true.exe Normal file

Binary file not shown.