fix bug when long runing in background
[rtmpclient.git] / app / src / main / jni / ai_suanzi_rtmpclient_Ffmpeg.h
index 1f70183..2bdd6a7 100644 (file)
@@ -15,6 +15,70 @@ extern "C" {
 JNIEXPORT jstring JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_getVersion
   (JNIEnv *, jobject);
 
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    init
+ * Signature: (II)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_init
+  (JNIEnv *, jobject, jint, jint);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    flush
+ * Signature: ()I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_flush
+  (JNIEnv *, jobject);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    close
+ * Signature: ()I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_close
+  (JNIEnv *, jobject);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    process
+ * Signature: ([B)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_process
+  (JNIEnv *, jobject, jbyteArray);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    play
+ * Signature: (Ljava/lang/Object;Ljava/lang/String;)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_play
+  (JNIEnv *, jobject, jobject, jstring);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    push
+ * Signature: (Ljava/lang/Object;)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_push
+  (JNIEnv *, jobject, jobject);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    preview
+ * Signature: (Ljava/lang/Object;)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_preview
+  (JNIEnv *, jobject, jobject);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    getPerfectDevice
+ * Signature: ()Ljava/lang/String;
+ */
+JNIEXPORT jstring JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_getPerfectDevice
+  (JNIEnv *, jobject);
+
 #ifdef __cplusplus
 }
 #endif