public static void InitializeDJISDK(VideoFrameDataCallback videoCallback, #endif BoolCallback connectedCallback, BoolCallback isFlyingCallback, DoubleCallback altitudeCallback, AttitudeCallback attitudeCallback, VelocityCallback velocityCallback ) { _sdkMutex.WaitOne(); try { _InitializeDJISDK(connectedCallback, isFlyingCallback, altitudeCallback, attitudeCallback, velocityCallback); _initialized = true; #if NETFX_CORE _SetVideoFrameBufferCallback(videoCallback); #else _SetVideoFrameDataCallback(videoCallback); #endif } finally { _sdkMutex.ReleaseMutex(); } }
private static extern void _SetVideoFrameDataCallback(VideoFrameDataCallback frameDataCallback = null);