mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-30 01:21:54 +08:00
进一步移植:能够打包 exe 运行
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Use override.yaml to modify required settings.
|
||||
# You can find a working configuration in /usr/share/kvmd/configs.default/kvmd.
|
||||
|
||||
override: !include [override.d, override.yaml]
|
||||
override: !include [override.yaml]
|
||||
|
||||
logging: !include logging.yaml
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# will be displayed in the web interface.
|
||||
|
||||
server:
|
||||
host: docker
|
||||
host: windows
|
||||
|
||||
kvm: {
|
||||
base_on: PiKVM,
|
||||
|
||||
@@ -40,12 +40,11 @@ kvmd:
|
||||
keymap: kvmd_data/usr/share/kvmd/keymaps/en-us
|
||||
|
||||
msd:
|
||||
#type: otg
|
||||
remount_cmd: /bin/true
|
||||
msd_path: /var/lib/kvmd/msd
|
||||
normalfiles_path: NormalFiles
|
||||
normalfiles_size: 256
|
||||
type: disabled
|
||||
|
||||
log_reader:
|
||||
enabled: false
|
||||
|
||||
ocr:
|
||||
langs:
|
||||
- eng
|
||||
@@ -53,7 +52,7 @@ kvmd:
|
||||
|
||||
streamer:
|
||||
resolution:
|
||||
default: 1280x720
|
||||
default: 1920x1080
|
||||
|
||||
forever: true
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1,3 +1,3 @@
|
||||
PIKVM_MODEL=docker_model
|
||||
PIKVM_VIDEO=docker_video
|
||||
PIKVM_BOARD=docker_board
|
||||
PIKVM_MODEL=windows_model
|
||||
PIKVM_VIDEO=windows_video
|
||||
PIKVM_BOARD=windows_board
|
||||
|
||||
@@ -899,7 +899,7 @@
|
||||
</div>
|
||||
<div id="stream-info"></div>
|
||||
<button class="window-button-exit-full-tab">▼</button>
|
||||
<div class="stream-box-online" id="stream-box"><img id="stream-image" src="/share/png/blank-stream.png">
|
||||
<div class="stream-box-offline" 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>
|
||||
|
||||
@@ -13,7 +13,7 @@ div(id="stream-window" class="window window-resizable")
|
||||
div(id="stream-info")
|
||||
|
||||
button(class="window-button-exit-full-tab") ▼
|
||||
div(id="stream-box" class="stream-box-online")
|
||||
div(id="stream-box" class="stream-box-offline")
|
||||
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")
|
||||
|
||||
@@ -127,8 +127,9 @@ export function MjpegStreamer(__setActive, __setInactive, __setInfo) {
|
||||
|
||||
var __checkStream = function() {
|
||||
__findId();
|
||||
|
||||
if (__id.legnth > 0 && __id in __state.stream.clients_stat) {
|
||||
console.log("__state.stream.clients_stat",__state.stream.clients_stat)
|
||||
console.log("__id",__id)
|
||||
if (__id.length > 0 && __id in __state.stream.clients_stat) {
|
||||
__setStreamActive();
|
||||
__stopChecking();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user