-
Notifications
You must be signed in to change notification settings - Fork 621
Expose the playback and record APIs through C# #573
Comments
Is this likely to be worked on soon? I'm starting work on a project and I'd very much prefer to do it in C#, but if there's a chance this will be pushed back for more important features, I might take the hit and resort to C, which I haven't used in a while. Thanks! |
is this still on track to be included in the 1.4.0 release? |
bumping this again and lmk if there's anything i can do to help 😸 this will be awesome when it's added. ❤️ |
This would be EXTREMELY helpful. Please add this ASAP 🙏 |
@Thebinoman agreed it'll be great, but in the meantime, you can get really far with a light wrapper around the native methods (see https://github.com/microsoft/Azure-Kinect-Sensor-SDK/blob/develop/src/csharp/SDK/Native/NativeMethods.cs) and some reflection to get the native handles. Enough so that we've shipped with that code and not really had any recording issues. Happy to post some example code if that's helpful. |
Thank you. I wasn't aware of that. I saw the namespace Microsoft.Azure.Kinect.Sensor.Native, but couldn't figure out how to use it. I haven't found documentation about that. Good to know it already been implemented. Yes, code examples would be great, especially of how to get body tracking to work with playback. BTW, I'm using unity, are you aware of any issues or gotchas on this (body tracking with playback from an .mkv file)? Thanks! |
all of this was based on thedewi's amazing work in #1711 (which is based on Brent-A's work in #822) here's what i think the minimum steps are for you to get a recording going:
can't speak to Unity, but don't see why it wouldn't work. if you find gotchas be sure to share them with the class :) |
@natelowry However, do you know how to play the recorded file? |
same deal using see the rest of the things here: dig into those PR's referenced above as they have all the code you need. |
Thanks @natelowry. Very late reply, but you should be able to build my PR #1711 directly, and call |
Describe the bug
The Playback and Record APIs are not currently exposed in the C# API.
Expected behavior
The Playback and Record APIs should be wrapped so that they are accessible through the C#APIs. In addition they should have appropriate tests to ensure that the functionality works.
Sub tasks
The text was updated successfully, but these errors were encountered: