Commit e5bbd438 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Feature/wrap ms factory c#

parent b969fc42
......@@ -280,6 +280,19 @@ namespace Linphone
}
}
#endif
public class MediastreamerFactory
{
public IntPtr nativePtr;
[DllImport(LinphoneWrapper.LIB_NAME, CallingConvention = CallingConvention.Cdecl)]
static extern int ms_factory_enable_filter_from_name(IntPtr nativePtr, string name, char enabled);
public void enableFilterFromName(string name, bool enabled)
{
ms_factory_enable_filter_from_name(nativePtr, name, enabled ? (char)1 : (char)0);
}
}
#endregion
#region Enums
......@@ -406,6 +419,19 @@ namespace Linphone
{{/isLinphoneCall}}
{{#isLinphoneCore}}
[DllImport(LinphoneWrapper.LIB_NAME, CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr linphone_core_get_ms_factory(IntPtr thiz);
public MediastreamerFactory MsFactory {
get
{
IntPtr ptr = linphone_core_get_ms_factory(nativePtr);
MediastreamerFactory factory = new MediastreamerFactory();
factory.nativePtr = ptr;
return factory;
}
}
/// Get the native window handle of the video window.
public string NativeVideoWindowIdString
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment