简体   繁体   English

Android自定义摄像机的最小持续时间

[英]Android custom video camera minimum duration

i'm developing android application which used camera feature. 我正在开发使用相机功能的android应用程序。 it can capture video fragment. 它可以捕获视频片段。 But i found some problem with fragments < 1sec and didn't find any information about minimal video duration. 但是我发现片段<1秒存在一些问题,并且没有找到有关最小视频持续时间的任何信息。 Who knows something about it? 谁知道这件事? What's minimal duration for video? 视频的最短播放时间是多少?

for record video limited video you can use following code, in this case video will recorded of 15 seconds 对于录制视频受限视频,您可以使用以下代码,在这种情况下,视频将录制15秒

int VIDEORECORD=1; int VIDEORECORD = 1;

int DURATION=15 /* time given IN seconds */ int DURATION = 15 / *时间以秒为单位* /

Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); Intent cameraIntent =新Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); cameraIntent.putExtra(MediaStore.EXTRA_DURATION_LIMIT,DURATION); cameraIntent.putExtra(MediaStore.EXTRA_DURATION_LIMIT,DURATION); startActivityForResult(cameraIntent, VIDEORECORD); startActivityForResult(cameraIntent,VIDEORECORD);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM