[][src]Function realsense_sys::rs2_config_enable_device_from_file

pub unsafe extern "C" fn rs2_config_enable_device_from_file(
    config: *mut rs2_config,
    file: *const c_char,
    error: *mut *mut rs2_error
)

Select a recorded device from a file, to be used by the pipeline through playback. The device available streams are as recorded to the file, and \c resolve() considers only this device and configuration as available. This request cannot be used if enable_record_to_file() is called for the current config, and vise versa By default, playback is repeated once the file ends. To control this, see 'rs2_config_enable_device_from_file_repeat_option'.

\param[in] config A pointer to an instance of a config \param[in] file The playback file of the device \param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored