Function rs2_playback_get_duration

Function Documentation

unsigned long long int rs2_playback_get_duration(const rs2_device *device, rs2_error **error)

Gets the total duration of the file in units of nanoseconds

Parameters:
  • device[in] A playback device

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

Returns:

Total duration of the file in units of nanoseconds