Add MoonBridge.getPendingAudioFrames() and MoonBridge.getPendingVideoFrames()

This commit is contained in:
Cameron Gutman 2019-05-07 20:35:31 -07:00
parent d48e964d05
commit 5cca5cd352
3 changed files with 15 additions and 1 deletions

View File

@ -208,5 +208,9 @@ public class MoonBridge {
public static native String findExternalAddressIP4(String stunHostName, int stunPort);
public static native int getPendingAudioFrames();
public static native int getPendingVideoFrames();
public static native void init();
}

@ -1 +1 @@
Subproject commit 59481c085a7f774c5d30374636f8bc75da7c676c
Subproject commit dffe51e885bcb5e09f90288f30268846f08c25de

View File

@ -81,3 +81,13 @@ Java_com_limelight_nvstream_jni_MoonBridge_findExternalAddressIP4(JNIEnv *env, j
return NULL;
}
}
JNIEXPORT jint JNICALL
Java_com_limelight_nvstream_jni_MoonBridge_getPendingAudioFrames(JNIEnv *env, jclass clazz) {
return LiGetPendingAudioFrames();
}
JNIEXPORT jint JNICALL
Java_com_limelight_nvstream_jni_MoonBridge_getPendingVideoFrames(JNIEnv *env, jclass clazz) {
return LiGetPendingVideoFrames();
}