diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser
index 4cc1069..0894feb 100644
Binary files a/.idea/caches/build_file_checksums.ser and b/.idea/caches/build_file_checksums.ser differ
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 2da02bb..ff841fe 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -4,6 +4,31 @@
+
+
+
+
+
+
diff --git a/howellsdk/libs/armeabi-v7a/libplayer_jni.so b/howellsdk/libs/armeabi-v7a/libplayer_jni.so
index 4303650..60bf899 100644
Binary files a/howellsdk/libs/armeabi-v7a/libplayer_jni.so and b/howellsdk/libs/armeabi-v7a/libplayer_jni.so differ
diff --git a/howellsdk/src/main/jni/HiPlayDemo.cc b/howellsdk/src/main/jni/HiPlayDemo.cc
index 6e0b641..e8e27cd 100644
--- a/howellsdk/src/main/jni/HiPlayDemo.cc
+++ b/howellsdk/src/main/jni/HiPlayDemo.cc
@@ -845,20 +845,23 @@ static void on_yuv_callback(PLAY_HANDLE handle,
-static void on_source_callback(PLAY_HANDLE handle, int type, const char* buf, int len, unsigned long timestamp, long sys_tm, int w, int h, int framerate, int au_sample, int au_channel, int au_bits, long user){
+static void on_source_callback(PLAY_HANDLE handle, int type, const char* buf, int len, unsigned long timestamp, long sys_tm, int w, int h, int framerate, int au_sample, int au_channel, int au_bits, long user) {
// LOGE("on source_callback type=%d len=%d w=%d h=%d timestamp=%ld sys_tm=%ld framerate=%d au_sample=%d au_channel=%d au_bits=%d",type,len,w,h,timestamp,sys_tm,framerate,au_sample,au_channel,au_bits);
// int ret = hwplay_is_pause(handle);
// LOGE("on source callback is pause=%d\n",ret);
- if (res!=NULL){
- if (res->is_exit){
+ if (res != NULL) {
+ if (res->is_exit) {
LOGE("on source callback is exit return");
return;
}
}
-// res->stream_len += len;
+ if (user == 2) {//local
+ res->stream_len += len;
+ user=0;
+ }
if (res!=NULL){
if (res->isFirstTime){
res->isFirstTime = 0;
@@ -1311,7 +1314,7 @@ JNIEXPORT jboolean JNICALL Java_com_howell_jni_JniUtil_localReadyPlay
hwplay_set_max_framenum_in_buf(ph,12);
LOGI("open local file ph=%d",ph);
hwplay_open_sound(ph);
- hwplay_register_source_data_callback(ph,on_source_callback,0);//user data==0
+ hwplay_register_source_data_callback(ph,on_source_callback,2);//user data==2
hwplay_register_yuv_callback_ex(ph,on_yuv_callback,0);
res->play_handle = ph;
env->ReleaseStringUTFChars(path,_path);
diff --git a/howellsdk/src/main/obj/local/armeabi-v7a/libplayer_jni.so b/howellsdk/src/main/obj/local/armeabi-v7a/libplayer_jni.so
index 9c86076..166ef37 100644
Binary files a/howellsdk/src/main/obj/local/armeabi-v7a/libplayer_jni.so and b/howellsdk/src/main/obj/local/armeabi-v7a/libplayer_jni.so differ
diff --git a/howellsdk/src/main/obj/local/armeabi-v7a/objs/player_jni/HiPlayDemo.o b/howellsdk/src/main/obj/local/armeabi-v7a/objs/player_jni/HiPlayDemo.o
index 82a9b10..813f301 100644
Binary files a/howellsdk/src/main/obj/local/armeabi-v7a/objs/player_jni/HiPlayDemo.o and b/howellsdk/src/main/obj/local/armeabi-v7a/objs/player_jni/HiPlayDemo.o differ