7using System.Threading.Tasks;
17 #region --Client API--
34 public HEVCRecorder(
int width,
int height,
float frameRate,
int sampleRate = 0,
int channelCount = 0,
35 int bitrate = (
int) (960 * 540 * 11.4f),
int keyframeInterval = 3)
37 recorder =
new NativeRecorder((callback, context) => Bridge.CreateHEVCRecorder(
width, height, frameRate,
38 bitrate, keyframeInterval, sampleRate, channelCount,
Internal.Utility.GetPath(
@".mp4"), callback,
using Leap.Unity.Interaction. Internal
Task< string > FinishWriting()
Finish writing and return the path to the recorded media file.
void CommitFrame(IntPtr nativeBuffer, long timestamp)
Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout.
void CommitSamples(float[] sampleBuffer, long timestamp)
Commit an audio sample buffer for encoding.
void CommitFrame< T >(T[] pixelBuffer, long timestamp)
Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout.