mirror of
https://github.com/sipeed/NanoKVM.git
synced 2026-09-11 00:22:56 -05:00
perf: merge H.264 SPS and PPS into I-frame perf: refactor MJPEG frame detection perf: update log timestamp to millisecond precision perf: update script `update-nanokvm.py` chore: bump Go to 1.23 chore: bump golang.org/x/net to v0.37.0
18 lines
463 B
TypeScript
18 lines
463 B
TypeScript
import { http } from '@/lib/http.ts';
|
|
|
|
// enable/disable frame detect
|
|
export function updateFrameDetect(enabled: boolean) {
|
|
const data = {
|
|
enabled
|
|
};
|
|
return http.post('/api/stream/mjpeg/detect', data);
|
|
}
|
|
|
|
// pause frame detect for a while (prevent a black screen when opening the page for the first time)
|
|
export function stopFrameDetect(duration: number) {
|
|
const data = {
|
|
duration
|
|
};
|
|
return http.post('/api/stream/mjpeg/detect/stop', data);
|
|
}
|