Expand description
System-audio and microphone capture with meeting detection for macOS, Windows, and Linux.
use meeting_record::{meetings, Error, MeetingEvent, Platform};
let watcher = meetings::watch(|event, meeting| {
if event == MeetingEvent::Started && meeting.should_record {
// `platform` is a stable identifier, not a label: match on it.
match meeting.platform {
Platform::Zoom | Platform::Teams => { /* ... */ }
_ => {}
}
}
})?;Capture and watching are process-wide singletons. Both return a guard that stops them on drop.
Modules§
Structs§
- Audio
Chunk - Audio
Process - Audio
Track - One interleaved float32 PCM track;
Sourceadds what only that track reports. - Cancellation
Token - Shared cancellation for capture and permission waits. Cancellation is permanent.
- Capture
Info - Actual capture scope and capabilities, reported by the native backend.
- Capture
Options - Capture
Session - Owns the audio tracks and their shared recording lifecycle.
- Meeting
- Microphone
- What only the microphone track reports.
- Microphone
Processing - Optional microphone effects for input rates from 8 to 192 kHz. All default off.
- Mixed
Audio - Optional mono s16le mix. Read until
Noneto consume the final tail. - Mixed
Audio Chunk - Mixed
Audio Options - Format of the optional mono s16le mixed output.
- System
Audio - What only the system-audio track reports.
- Watcher
- Stops watching when dropped.
Enums§
- Capture
Fallback - Details present only when the backend selects a fallback capture path.
- Capture
State - Capture
Target - Error
- Failure from a permission, detection, or capture operation.
- Interruption
Reason - Reason for source loss.
- Meeting
Event - Microphone
Source - Permission
- Permission
Status - Windows has no prompts: system audio and accessibility are always granted, and the microphone follows its privacy settings.
- Platform
- Conferencing platform with a stable
Platform::as_stridentifier. - Track
- Track
Availability - Availability of a track’s sources, independent of pause and stop.
- Track
Event - Source availability changes independently of recording pause and stop. Lost devices are retried; exited apps require selecting a new process target.