Function rs2_create_playback_device

Function Documentation

rs2_device *rs2_create_playback_device(const char *file, rs2_error **error)

Creates a playback device to play the content of the given file

Parameters:
  • file[in] Path to the file to play

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

Returns:

A pointer to a device that plays data from the file, or null in case of failure