height) which defines the pixel size of the output video. With this in mind, the
IMediaRecorderinterface exposes the
RGBA8888pixel buffer. This could be a
Color32provided by Unity's
WebCamTexture.GetPixels32methods; it could be a managed
byteprovided by the NatDevice camera preview or an OpenCV matrix; or it can be any other managed numeric array that contains data which can be interpreted as an
CommitFramemethod has an overload that takes in a pointer to an
RGBA8888pixel buffer in native memory. This is useful for applications that want to avoid garbage collection when working with large pixel buffers in managed memory.
CommitSamplesmethod has an overload that takes a pointer to a
floatsample buffer in native memory. This is useful for applications that want to avoid garbage collection and extra allocations for high performance recording.
System.IOAPI's to move the file where you want it.