mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Add JNI for used codecs.
This commit is contained in:
parent
767a567bd6
commit
f385c6d2f0
1 changed files with 14 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ public class LinphoneCallParamsImpl implements LinphoneCallParams {
|
||||||
private native void audioBandwidth(long nativePtr, int bw);
|
private native void audioBandwidth(long nativePtr, int bw);
|
||||||
private native void setMediaEncryption(long nativePtr, int menc);
|
private native void setMediaEncryption(long nativePtr, int menc);
|
||||||
private native int getMediaEncryption(long nativePtr);
|
private native int getMediaEncryption(long nativePtr);
|
||||||
|
private native long getUsedAudioCodec(long nativePtr);
|
||||||
|
private native long getUsedVideoCodec(long nativePtr);
|
||||||
private native void destroy(long nativePtr);
|
private native void destroy(long nativePtr);
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -61,6 +63,18 @@ public class LinphoneCallParamsImpl implements LinphoneCallParams {
|
||||||
setMediaEncryption(nativePtr, menc.mValue);
|
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);
|
private native boolean localConferenceMode(long nativePtr);
|
||||||
public boolean localConferenceMode() {
|
public boolean localConferenceMode() {
|
||||||
return localConferenceMode(nativePtr);
|
return localConferenceMode(nativePtr);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue