Fix memory leak, and all work well except startup and jni log
[rtmpclient.git] / app / src / main / jni / ai_suanzi_rtmpclient_Ffmpeg.h
index 6615073..22b129f 100644 (file)
@@ -18,13 +18,29 @@ JNIEXPORT jstring JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_getVersion
 /*
  * Class:     ai_suanzi_rtmpclient_Ffmpeg
  * Method:    init
+ * Signature: ()V
+ */
+JNIEXPORT void JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_init
+  (JNIEnv *, jobject);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    inithaha
  * Signature: (II)I
  */
-JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_init
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_inithaha
   (JNIEnv *, jobject, jint, jint);
 
 /*
  * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    initnew
+ * Signature: (IILjava/lang/String;)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_initnew
+  (JNIEnv *, jobject, jint, jint, jstring);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
  * Method:    flush
  * Signature: ()I
  */
@@ -55,6 +71,46 @@ JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_process
 JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_play
   (JNIEnv *, jobject, jobject, jstring);
 
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    push
+ * Signature: (Ljava/lang/Object;Ljava/lang/String;)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_push
+  (JNIEnv *, jobject, jobject, jstring);
+
+/*
+ * 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);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    test
+ * Signature: (I)I
+ */
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_test
+  (JNIEnv *, jobject, jint);
+
+/*
+ * Class:     ai_suanzi_rtmpclient_Ffmpeg
+ * Method:    setRtmpUrl
+ * Signature: (Ljava/lang/String;)V
+ */
+JNIEXPORT void JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_setRtmpUrl
+  (JNIEnv *, jobject, jstring);
+
 #ifdef __cplusplus
 }
 #endif