ZLMediaKit/webrtc_player/android/zlm/src/main/cpp/rtc.cpp

10 lines
254 B
C++
Raw Normal View History

2024-05-09 16:58:15 +08:00
#include <jni.h>
#include <string>
extern "C" JNIEXPORT jstring JNICALL
Java_com_zlm_rtc_NativeLib_stringFromJNI(
JNIEnv* env,
jobject /* this */) {
std::string hello = "Hello from C++";
return env->NewStringUTF(hello.c_str());
}