|author||Justin Berger <firstname.lastname@example.org>||2018-03-10 18:58:06 -0700|
|committer||Justin Berger <email@example.com>||2018-03-10 18:58:06 -0700|
Added blurb in readme about playback functionality
Diffstat (limited to 'README.md')
1 files changed, 19 insertions, 0 deletions
@@ -263,6 +263,25 @@ Compiling this minimal example only requires the include path for survive.h as w
As mentioned, only the pose from lighthouse number `0` is used. Since the callback is called for all tracked devices, `so->codename` can be used to differentiate between devices like `HMD`, `WM0`, etc.
+libsurvive has an integrated tool that allows you to record and playback streams from all supported devices. To save off a stream, invoke it as follows:
+cp *_config.json my_playback
+This gives you a directory -- my_playback -- with all the device configurations and events file you need to replay it.
+To actually replay it, put that directory path in the 'PlaybackDir' configuration value in config.json and run libsurvive as usual. Note that this will purposefully stop the USB devices from loading as to not confuse the library with inconsistent data.
+## Playback speed
+There is also a config variable -- `PlaybackFactor` -- which adjusts the speed at which playback happens. A value of 1 emulates the same time the events file took to create, a value of 0 streams the data in as fast as possible.
* The tracking quality is bad/jitters/too slow!