Function rs2_playback_device_set_real_time

Function Documentation

void rs2_playback_device_set_real_time(const rs2_device *device, int real_time, rs2_error **error)

Set the playback to work in real time or non real time

In real time mode, playback will play the same way the file was recorded. In real time mode if the application takes too long to handle the callback, frames may be dropped. In non real time mode, playback will wait for each callback to finish handling the data before reading the next frame. In this mode no frames will be dropped, and the application controls the frame rate of the playback (according to the callback handler duration).

Parameters:
  • device[in] A playback device

  • real_time[in] Indicates if real time is requested, 0 means false, otherwise true

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