Add JNI for used codecs.
This commit is contained in:
parent
9a8f174742
commit
5e675d06d8
2 changed files with 15 additions and 1 deletions
|
@ -32,6 +32,8 @@ public class LinphoneCallParamsImpl implements LinphoneCallParams {
|
|||
private native void audioBandwidth(long nativePtr, int bw);
|
||||
private native void setMediaEncryption(long nativePtr, int menc);
|
||||
private native int getMediaEncryption(long nativePtr);
|
||||
private native long getUsedAudioCodec(long nativePtr);
|
||||
private native long getUsedVideoCodec(long nativePtr);
|
||||
private native void destroy(long nativePtr);
|
||||
|
||||
|
||||
|
@ -61,6 +63,18 @@ public class LinphoneCallParamsImpl implements LinphoneCallParams {
|
|||
setMediaEncryption(nativePtr, menc.mValue);
|
||||
}
|
||||
|
||||
public PayloadType getUsedAudioCodec() {
|
||||
long ptr = getUsedAudioCodec(nativePtr);
|
||||
if (ptr == 0) return null;
|
||||
return new PayloadTypeImpl(ptr);
|
||||
}
|
||||
|
||||
public PayloadType getUsedVideoCodec() {
|
||||
long ptr = getUsedVideoCodec(nativePtr);
|
||||
if (ptr == 0) return null;
|
||||
return new PayloadTypeImpl(ptr);
|
||||
}
|
||||
|
||||
private native boolean localConferenceMode(long nativePtr);
|
||||
public boolean localConferenceMode() {
|
||||
return localConferenceMode(nativePtr);
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 898a4ce91ee94e81b12e424599d641a58a47a2fb
|
||||
Subproject commit e6d835fa745550a043e18a3b850d0cb353ef9ae8
|
Loading…
Reference in a new issue