Skip to main content

start_recording

Function start_recording 

Source
pub fn start_recording(
    path: String,
    settings: Option<CaptureSettings>,
    audio_socket: &str,
) -> Result<RecordingStatus, Error>
Expand description

Start the built-in MP4 recorder on path: with settings, a recorder-owned H.264 capture of the display and backend they name (any other codec is refused); without, the capture the PIXELFLUX_RECORD_* environment describes. audio_socket names pcmflux’s recording socket, empty for none.