mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-18 18:42:46 +00:00
Add MoonBridge.getPendingAudioFrames() and MoonBridge.getPendingVideoFrames()
This commit is contained in:
parent
d48e964d05
commit
5cca5cd352
@ -208,5 +208,9 @@ public class MoonBridge {
|
|||||||
|
|
||||||
public static native String findExternalAddressIP4(String stunHostName, int stunPort);
|
public static native String findExternalAddressIP4(String stunHostName, int stunPort);
|
||||||
|
|
||||||
|
public static native int getPendingAudioFrames();
|
||||||
|
|
||||||
|
public static native int getPendingVideoFrames();
|
||||||
|
|
||||||
public static native void init();
|
public static native void init();
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 59481c085a7f774c5d30374636f8bc75da7c676c
|
Subproject commit dffe51e885bcb5e09f90288f30268846f08c25de
|
@ -80,4 +80,14 @@ Java_com_limelight_nvstream_jni_MoonBridge_findExternalAddressIP4(JNIEnv *env, j
|
|||||||
__android_log_print(ANDROID_LOG_ERROR, "moonlight-common-c", "STUN failed to get WAN address: %d", err);
|
__android_log_print(ANDROID_LOG_ERROR, "moonlight-common-c", "STUN failed to get WAN address: %d", err);
|
||||||
return NULL;
|
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();
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user