Function rs2_playback_device_set_status_changed_callback

Function Documentation

void rs2_playback_device_set_status_changed_callback(const rs2_device *device, rs2_playback_status_changed_callback *callback, rs2_error **error)

Register to receive callback from playback device upon its status changes

Callbacks are invoked from the reading thread, any heavy processing in the callback handler will affect the reading thread and may cause frame drops\ high latency

Parameters:
  • device[in] A playback device

  • callback[in] A callback handler that will be invoked when the playback status changes

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