如何增加android中视频录制的持续时间? [英] How to increase the duration of Video recording in android?
本文介绍了如何增加android中视频录制的持续时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用MediaStore捕获视频,但是它最多只能录制8秒的视频,任何人都可以帮助我增加视频的持续时间.我正在使用android 2.2.
I use the MediaStore to capture the video, but it will record the video upto 8 seconds only ,can anyone help me to increase the duration of video. I am using android 2.2.
推荐答案
请参见在 MediaStore.ACTION_VIDEO_CAPTURE
意图中指定EXTRA_DURATION_LIMIT参数.
Specify an EXTRA_DURATION_LIMIT parameter in the MediaStore.ACTION_VIDEO_CAPTURE
Intent.
来自 StackOverflow-在Android上捕获视频的最大时长
intent.putExtra("android.intent.extra.durationLimit",30000);
这篇关于如何增加android中视频录制的持续时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文