Function rs2_config_enable_device_from_file

Function Documentation

void rs2_config_enable_device_from_file(rs2_config *config, const char *file, rs2_error **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 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’.

Parameters:
  • config[in] A pointer to an instance of a config

  • file[in] The playback file of the device

  • error[out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored