如何在android中的录制屏幕中以编程方式实时获取/显示文件大小

时间:2015-04-21 10:13:53

标签: android screen-recording

我的录音代码如下。

List<String> videotrack = new LinkedList<String>();

while (videoRecordContinue) {

Long tsLong = System.currentTimeMillis() / 1000;
path = "/myTest.mp4";

videotrack.add(path);

Process proc;

proc = Runtime.getRuntime().exec("screenrecord --size 720x1280 --bit-rate 2000000" 
       + Environment.getExternalStorageDirectory().getAbsolutePath() + videoPath);

proc.waitFor();

}

如何实时检查编码大小?

0 个答案:

没有答案