mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
* feat(capture-core): host-named manifest and microphone warm-up * docs(capture-core): say system audio and the microphone share one AAC track * fix(capture-core): don't list a failed source's missing video in the manifest * fix(capture-core): import MANIFEST_NAME only where tests use it
56 lines
1.9 KiB
Rust
56 lines
1.9 KiB
Rust
//! Screen recording for macOS on `ScreenCaptureKit`.
|
|
//!
|
|
//! A host describes a recording with a [`Plan`] and starts it with [`Recorder::start`]. Each
|
|
//! display, window or region source records to its own H.264 MP4 through an
|
|
//! `SCRecordingOutput`.
|
|
//! [`Recording::stop`] returns at once; the files are finished on the recording's own thread and
|
|
//! come back from [`Finishing::wait`] along with a versioned [`Manifest`] that places every file
|
|
//! on one clock: Mach host time in nanoseconds.
|
|
//!
|
|
//! The crate holds no global state and starts nothing that outlives a recording.
|
|
#![cfg(target_os = "macos")]
|
|
|
|
mod av_writer;
|
|
mod clicks;
|
|
mod cursor;
|
|
mod error;
|
|
mod external_audio;
|
|
mod final_frame_hold;
|
|
mod frames;
|
|
mod input;
|
|
mod manifest;
|
|
mod native;
|
|
mod plan;
|
|
mod probe;
|
|
mod screenshot;
|
|
mod session;
|
|
mod system_audio;
|
|
#[cfg(test)]
|
|
mod test_dir;
|
|
mod time;
|
|
|
|
pub use cursor::{
|
|
CursorButton, CursorButtonEvent, CursorButtonState, CursorCapture, CursorCaptureDiagnostics,
|
|
CursorClickCaptureStatus, CursorPositionSample, CursorTelemetry, Millis,
|
|
NORMALIZED_COORDINATE_MAX, NormalizedCoordinate,
|
|
};
|
|
pub use error::Error;
|
|
pub use external_audio::ExternalAudioSink;
|
|
pub use final_frame_hold::{FinalFrameHold, FinalFrameHoldError, hold_final_video_frame};
|
|
pub use frames::{Frame, FrameTap};
|
|
pub use input::{
|
|
HostEvent, HostInputReceiver, HostInputSender, InputEvent, KeyPolicy, Modifiers, RecordedInput,
|
|
filter_key, host_channel, secure_input_enabled,
|
|
};
|
|
pub use manifest::{
|
|
AudioGap, Clock, FileEntry, FileKind, MANIFEST_VERSION, Manifest, Permission, SourceEntry,
|
|
TrackKind,
|
|
};
|
|
pub use native::Recorder;
|
|
pub use plan::{
|
|
AudioPlan, CursorDrawing, Exclusions, ExternalMic, Input, MANIFEST_NAME, MIC_WARMUP, Mic,
|
|
Names, Plan, Rect, Source, SourcePlan,
|
|
};
|
|
pub use screenshot::{Image, screenshot};
|
|
pub use session::{Finished, Finishing, Recording, SourceCursor};
|
|
pub use time::{HostTime, MediaTime, Timebase};
|