Commit 4f85b8a5 authored by DanmeiChen's avatar DanmeiChen

changer usage of MediastreamerAndroidContext.setContext

parent 60031cdc
......@@ -104,10 +104,11 @@ public class LinphoneCoreFactoryImpl extends LinphoneCoreFactory {
fcontext = (Context)context;
boolean openh264DownloadEnabled = false;
if (context != null) openh264DownloadEnabled = loadingDownloadedOpenH264(fcontext);
MediastreamerAndroidContext.setContext(context);
File user = userConfig == null ? null : new File(userConfig);
File factory = factoryConfig == null ? null : new File(factoryConfig);
LinphoneCore lc = new LinphoneCoreImpl(listener, user, factory, userdata, context);
MediastreamerAndroidContext.setContext(context,lc.getMSFactory());
lc.enableDownloadOpenH264(openh264DownloadEnabled);
return lc;
} catch (IOException e) {
......@@ -121,8 +122,9 @@ public class LinphoneCoreFactoryImpl extends LinphoneCoreFactory {
fcontext = (Context)context;
boolean openh264DownloadEnabled = false;
if (context != null) openh264DownloadEnabled = loadingDownloadedOpenH264(fcontext);
MediastreamerAndroidContext.setContext(context);
LinphoneCore lc = new LinphoneCoreImpl(listener, context);
MediastreamerAndroidContext.setContext(context,lc.getMSFactory());
lc.enableDownloadOpenH264(openh264DownloadEnabled);
return lc;
} catch (IOException e) {
......
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