forked from mirrors/linphone-iphone
ffmpeg as shared library.
This commit is contained in:
parent
4ac9d2148b
commit
173b47ff1a
1 changed files with 16 additions and 0 deletions
|
|
@ -21,9 +21,25 @@ package org.linphone.core;
|
|||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.linphone.LinphoneManager;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
public class LinphoneCoreFactoryImpl extends LinphoneCoreFactory {
|
||||
|
||||
private static void loadOptionalLibrary(String s) {
|
||||
try {
|
||||
System.loadLibrary(s);
|
||||
} catch (Throwable e) {
|
||||
Log.w(LinphoneManager.TAG, "Unable to load optional library lib" + s);
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
loadOptionalLibrary("avutil");
|
||||
loadOptionalLibrary("swscale");
|
||||
loadOptionalLibrary("avcore");
|
||||
loadOptionalLibrary("avcodec");
|
||||
System.loadLibrary("linphone");
|
||||
}
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue