mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 12:38:09 +00:00
add amr support to linphone-android
This commit is contained in:
parent
1e2a21ea2a
commit
9aa95c08cc
1 changed files with 14 additions and 1 deletions
|
|
@ -88,6 +88,7 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
private native void setRing(long nativePtr, String path);
|
||||
private native String getRing(long nativePtr);
|
||||
private native long[] listVideoPayloadTypes(long nativePtr);
|
||||
private native long[] listAudioPayloadTypes(long nativePtr);
|
||||
private native void enableKeepAlive(long nativePtr,boolean enable);
|
||||
private native boolean isKeepAliveEnabled(long nativePtr);
|
||||
private native int startEchoCalibration(long nativePtr,Object data);
|
||||
|
|
@ -413,7 +414,7 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
return getRing(nativePtr);
|
||||
}
|
||||
|
||||
public PayloadType[] listVideoCodecs() {
|
||||
public PayloadType[] getVideoCodecs() {
|
||||
long[] typesPtr = listVideoPayloadTypes(nativePtr);
|
||||
if (typesPtr == null) return null;
|
||||
|
||||
|
|
@ -425,6 +426,18 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
|
||||
return codecs;
|
||||
}
|
||||
public PayloadType[] getAudioCodecs() {
|
||||
long[] typesPtr = listAudioPayloadTypes(nativePtr);
|
||||
if (typesPtr == null) return null;
|
||||
|
||||
PayloadType[] codecs = new PayloadType[typesPtr.length];
|
||||
|
||||
for (int i=0; i < codecs.length; i++) {
|
||||
codecs[i] = new PayloadTypeImpl(typesPtr[i]);
|
||||
}
|
||||
|
||||
return codecs;
|
||||
}
|
||||
public boolean isNetworkReachable() {
|
||||
throw new RuntimeException("Not implemented");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue