Skip to content

Add optional push-to-talk mode - #963

Closed
rsre wants to merge 6 commits into
AlexxIT:masterfrom
rsre:feat/microphone-mute-button
Closed

rsre wants to merge 6 commits into
AlexxIT:masterfrom
rsre:feat/microphone-mute-button

Conversation

@rsre

@rsre rsre commented Sep 7, 2026 •

Copy link
Copy Markdown

Summary

Adds an opt-in push-to-talk mode:

type: custom:webrtc-camera
url: doorbell
media: video,audio,microphone
ptt: true
  • renders a Hold to talk button below the video
  • captures and transmits the microphone only while the button is held
  • detaches and stops the microphone track while idle
  • mutes received camera audio while talking to prevent delayed echo
  • requests microphone access from the button gesture for iOS/WebKit compatibility
  • grants permission and negotiates an audio sender on the first hold, then shows Microphone ready — hold again to talk
  • displays HTTPS, permission, device, and capture errors on the card
  • defaults PTT cards to WebRTC mode unless a mode is explicitly configured

The implementation is contained in webrtc-camera.js; the vendored video-rtc.js is unchanged.

@rsre
rsre marked this pull request as draft September 7, 2026 20:58
@rsre rsre changed the title Add microphone mute control Add optional push-to-talk mode Sep 7, 2026
@rsre rsre closed this Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant