Fix memory leak, and all work well except startup and jni log
[rtmpclient.git] / app / src / main / jni / ai_suanzi_rtmpclient_Ffmpeg.h
index bf88a71..22b129f 100644 (file)
@@ -33,6 +33,14 @@ JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_inithaha
 
 /*
  * 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
  */
@@ -95,6 +103,14 @@ JNIEXPORT jstring JNICALL Java_ai_suanzi_rtmpclient_Ffmpeg_getPerfectDevice
 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