Skip to content

Commit 464b4ad

Browse files
committed
show the result of ffprobe
show the result of ffprobe
1 parent aa7a6cd commit 464b4ad

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

app/src/main/java/com/frank/ffmpeg/activity/ProbeFormatActivity.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import android.os.Bundle;
55
import android.os.Handler;
66
import android.os.Message;
7+
import android.text.TextUtils;
78
import android.view.View;
89
import android.widget.ProgressBar;
910
import android.widget.RelativeLayout;
@@ -43,6 +44,10 @@ public void handleMessage(Message msg) {
4344
case MSG_FINISH:
4445
progressProbe.setVisibility(View.GONE);
4546
layoutProbe.setVisibility(View.VISIBLE);
47+
String result = (String) msg.obj;
48+
if (!TextUtils.isEmpty(result) && txtProbeFormat != null) {
49+
txtProbeFormat.setText(result);
50+
}
4651
break;
4752
default:
4853
break;
@@ -59,7 +64,6 @@ int getLayoutId() {
5964
protected void onCreate(Bundle savedInstanceState) {
6065
super.onCreate(savedInstanceState);
6166

62-
hideActionBar();
6367
initView();
6468
ffmpegHandler = new FFmpegHandler(mHandler);
6569
}

app/src/main/java/com/frank/ffmpeg/handler/FFmpegHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void onEnd(int resultCode, String resultMsg) {
8282
if(isContinue) {
8383
mHandler.obtainMessage(MSG_CONTINUE).sendToTarget();
8484
}else {
85-
mHandler.obtainMessage(MSG_FINISH).sendToTarget();
85+
mHandler.obtainMessage(MSG_FINISH, resultMsg).sendToTarget();
8686
}
8787
}
8888
});

0 commit comments

Comments
 (0)