Skip to content

feat: ask to stop when the meeting app leaves the call (#148) - #149

Draft
raphaelm22 wants to merge 1 commit into
ObscureAintSecure:masterfrom
raphaelm22:feat/meeting-end-prompt
Draft

raphaelm22 wants to merge 1 commit into
ObscureAintSecure:masterfrom
raphaelm22:feat/meeting-end-prompt

Conversation

@raphaelm22

Copy link
Copy Markdown

Closes #148

What

While recording, TalkTrack asks whether to stop once the meeting app has left the call.

  • app/recording/meeting_end.py (no Qt)
    • read_mic_usage reads Windows' microphone privacy store (CapabilityAccessManager\ConsentStore\microphone) with winreg. It covers packaged apps by package family name and desktop apps under NonPackaged.
    • meeting_apps_using_mic keeps the curated meeting apps whose LastUsedTimeStop is 0, i.e. in use now. The apps are Teams (new and classic), Zoom, Webex, Slack, Skype and the browsers.
    • MeetingEndWatcher arms when one of them is seen on the microphone. It fires once, after every armed app has been off it for 20 s.
  • MainWindow
    • One watcher per recording: created on the first RECORDING, kept across pause/resume, dropped on any other state.
    • A 2 s QTimer polls the store.
    • When the watcher fires: MeetingEndDialog plus a tray notification.
  • MeetingEndDialog: non-modal and stay-on-top, because the meeting app is usually in front.
    • Buttons: Stop recording (default) and Keep recording.
    • With no answer it stops after 60 s.
    • Esc or closing the window keeps recording.
    • It closes by itself if the recording stops some other way.
  • Setting: Settings > General, "Ask to stop when the meeting app leaves the call", on by default. An existing settings.json picks the default up through the deep-merge.

Why this signal

Without a readable store there are no entries, and so no prompt at all, never a wrong stop.

Tests

  • Unit: tests/test_meeting_end.py, 19 tests. They cover key-to-app mapping, in-use detection, unreadable store / non-Windows, watcher timing (grace, blips, re-arm, several apps), MainWindow wiring against a stub window, and the dialog's text helper. Full suite: 427 passed.
  • Isolated headless MainWindow (temp config, scripted microphone usage):
    • the prompt appears, stays on top, and Stop stops the recording
    • stopping tears the watcher down
    • the default applies to an existing settings.json, and the Settings checkbox saves
  • Dialog, offscreen: countdown → stop; Esc and window close → keep; dismiss emits nothing.
  • Real registry: read on Windows 11 with new Teams in a call, it shows Teams in use.

Draft until a recording has been stopped through this prompt at the end of a real Teams call.

🤖 Generated with Claude Code

…cure#148)

A forgotten Stop keeps recording silence for as long as nobody notices,
and silence auto-stop can't catch it in legacy mode (ObscureAintSecure#104). Windows
records which apps use the microphone for its privacy indicator; a
conferencing app holds it for the whole call, muted or not, and lets
go when you leave.

While recording, MainWindow polls that store every 2 s. Once a meeting
app (Teams, Zoom, Webex, Slack, browsers) has been on the microphone
and all of them have been off it for 20 s, a stay-on-top dialog and a
tray notification ask whether to stop; with no answer the recording
stops after 60 s. "Keep recording" disarms it until an app takes the
microphone again. On by default (Settings > General); no readable data
means no prompt.
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.

Ask to stop the recording when the meeting app leaves the call (microphone released)

1 participant