Function rs2_config_enable_device_from_file_repeat_option

Function Documentation

void rs2_config_enable_device_from_file_repeat_option(rs2_config *config, const char *file, int repeat_playback, 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

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

  • file[in] The playback file of the device

  • repeat_playback[in] if true, when file ends the playback starts again, in an infinite loop; if false, when file ends playback does not start again, and should by stopped manually by the user.

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