Commit 6d7fdab6 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Improved LinphoneAndroid class in C# wrapper

parent aca36b38
Pipeline #211 failed with stage
in 0 seconds
......@@ -255,6 +255,8 @@ namespace Linphone
/// </summary>
public class LinphoneAndroid
{
public static IntPtr AndroidContext { get; set; }
[DllImport(LinphoneWrapper.LIB_NAME, CallingConvention = CallingConvention.Cdecl)]
static extern void ms_set_jvm_from_env(IntPtr jnienv);
......@@ -267,8 +269,9 @@ namespace Linphone
/// </summary>
public static void setAndroidContext(IntPtr jnienv, IntPtr context)
{
AndroidContext = context;
ms_set_jvm_from_env(jnienv);
setMediastreamerAndroidContext(jnienv, context);
setMediastreamerAndroidContext(jnienv, AndroidContext);
}
}
#endif
......
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