-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d780b7
commit be4dbc9
Showing
3 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
#include <jni.h> | ||
#include <string> | ||
#include "librtmp/rtmp.h" | ||
#include <x264.h> | ||
|
||
extern "C" JNIEXPORT jstring JNICALL | ||
Java_kim_hsl_rtmp_MainActivity_stringFromJNI( | ||
JNIEnv* env, | ||
jobject /* this */) { | ||
std::string hello = "Hello from C++"; | ||
RTMP_Alloc(); | ||
x264_picture_t *p = new x264_picture_t; | ||
return env->NewStringUTF(hello.c_str()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters