From cd257651b000c9a43ede98d4c4a5b10cf1e1fd3b Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Wed, 1 Jun 2022 14:31:16 +0200 Subject: [PATCH] Allow to get the native pointer on core in order to be used from C function. A use case is that a framework can use SwapChainPanel where it wasn't build in nuget (using Windows Bridge version in a UWP application). --- wrappers/csharp/wrapper_impl.mustache | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wrappers/csharp/wrapper_impl.mustache b/wrappers/csharp/wrapper_impl.mustache index 3d405143e4..b73d2a1236 100644 --- a/wrappers/csharp/wrapper_impl.mustache +++ b/wrappers/csharp/wrapper_impl.mustache @@ -600,6 +600,9 @@ namespace Linphone [DllImport(LinphoneWrapper.LIB_NAME, CallingConvention = CallingConvention.Cdecl)] static extern void linphone_core_set_native_video_window_id(IntPtr thiz, IntPtr windowId); + public IntPtr getNativePtr(){ + return nativePtr; + } /// /// Get the native window handle of the video window. On Windows UWP/WindowsStore, this is a SwapChainPanel. eg: LinphoneManager.Instance.Core.NativeVideoWindowId = panel; The rendering is automatically done by Linphone. /// -- GitLab