[英]Android record video with options
我想錄制某些選項的視頻。 如最大持續時間,質量等。是否可以在沒有自定義實現的情況下做到這一點-僅通過調用intent?
Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
//add custom options here?
startActivityForResult(intent, TAKE_VIDEO);
使用以下代碼:
intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0);
intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 200);
有關更多選項,請查看以下內容:
http://developer.android.com/reference/android/provider/MediaStore.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.