开发者

android: How to compress a video?

In my app, the user can upload a captured video into a database. Since the ca开发者_JAVA技巧ptured video is quite large it'll take long time to get uploaded. So I need to know how can I compress that capturing video.

I have tried following code

Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);                                 
intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY,0);    
startActivityForResult(intent, SOME_NUMBER); 

But regardless of whatever the quality level I put there it gives me same quality videos.

My question:So tell me a way to fix this or suggest me a way to compress a captured video?

thanks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜