Feature(web): Add toolbar audio toggle button
This commit is contained in:
@@ -7,6 +7,7 @@ require (
|
||||
github.com/gorilla/websocket v1.5.3
|
||||
github.com/klauspost/compress v1.18.2
|
||||
github.com/rs/zerolog v1.34.0
|
||||
golang.org/x/sync v0.20.0
|
||||
golang.org/x/text v0.32.0
|
||||
gopkg.in/natefinch/lumberjack.v2 v2.2.1
|
||||
)
|
||||
@@ -14,6 +15,5 @@ require (
|
||||
require (
|
||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
||||
github.com/mattn/go-isatty v0.0.19 // indirect
|
||||
golang.org/x/sync v0.20.0 // indirect
|
||||
golang.org/x/sys v0.12.0 // indirect
|
||||
)
|
||||
|
||||
@@ -51,6 +51,15 @@ func (h *wsHub) dispatch(c *wsClient, cmd string, raw []byte) {
|
||||
h.handleConnect(c, raw)
|
||||
case "rdp_reset":
|
||||
h.handleRdpReset(c, raw)
|
||||
case "audio_toggle":
|
||||
// Audio capture/forwarding is not yet ported from the C++ WebService
|
||||
// (see project_go_webservice_port). Reply explicitly so the front-end
|
||||
// console shows why the toolbar button has no effect, instead of the
|
||||
// request being silently dropped by the default case.
|
||||
c.queue(mustJSON(map[string]any{
|
||||
"cmd": "audio_toggle_result", "ok": false,
|
||||
"msg": "Audio toggle not supported on Go server yet",
|
||||
}))
|
||||
case "mouse":
|
||||
h.handleMouse(c, raw)
|
||||
case "key":
|
||||
|
||||
Reference in New Issue
Block a user