neko/server
Hani bc19ab866f
feat(client): add microphone passthrough button to controls toolbar (#620)
* feat(client): add microphone passthrough button to controls toolbar

Add mic toggle button to the bottom controls bar that enables users to
share their local microphone with the remote neko session via WebRTC.

The server already supports microphone capture (capture.microphone.enabled)
but the legacy client had no UI to trigger getUserMedia and send an audio
track to the peer connection.

Changes:
- base.ts: Add enableMicrophone/disableMicrophone methods that call
  getUserMedia and addTrack/removeTrack on the RTCPeerConnection.
  Mic is cleaned up automatically on disconnect.
- controls.vue: Add mic button (fa-microphone/fa-microphone-slash) between
  play/pause and volume controls with tooltip and error handling.
- en-us.ts: Add i18n strings for mic tooltips and error dialog.

* if the error is not io.EOF, log it. Otherwise, it's a normal closure of the track.

* tie microphone to active host and auto-disable on control loss

---------

Co-authored-by: h1n054ur <admin@haniumer.com>
Co-authored-by: Miroslav Šedivý <sedivy.miro@gmail.com>
2026-02-17 17:02:51 +01:00
..
cmd rename package to github name. 2025-03-26 23:51:19 +01:00
dev fix server dev. 2025-04-03 14:17:59 +02:00
internal feat(client): add microphone passthrough button to controls toolbar (#620) 2026-02-17 17:02:51 +01:00
pkg rename package to github name. 2025-03-26 23:51:19 +01:00
plugins move server to server directory. 2024-09-06 22:56:24 +02:00
.gitignore split base build to multiple dockerfiles. 2024-09-08 17:22:49 +02:00
build remove -d from go get. 2025-03-31 23:09:39 +02:00
Dockerfile upgrade go to 1.24 and all deps. (#564) 2025-08-19 22:16:44 +02:00
Dockerfile.bookworm upgrade go to 1.24 and all deps. (#564) 2025-08-19 22:16:44 +02:00
go.mod upgrade go to 1.24 and all deps. (#564) 2025-08-19 22:16:44 +02:00
go.sum upgrade go to 1.24 and all deps. (#564) 2025-08-19 22:16:44 +02:00
neko.go move server to server directory. 2024-09-06 22:56:24 +02:00
openapi.yaml change API index page. 2025-03-22 17:52:56 +01:00