android - EXTRA_VIDEO_QUALITY is ignored -


i trying record video intent, , quality of video high , size higher 5mb.

i using samsung galaxy s running android 4.2.2

here code:

            intent = new intent("android.media.action.video_capture");             // i.putextra(android.provider.mediastore.extra_output,             // uri.fromfile(fileutils.getfilename(filetypes.video)));             i.putextra(android.provider.mediastore.extra_video_quality, 0);             i.putextra(android.provider.mediastore.extra_size_limit, 5242880);             i.putextra("android.intent.extra.durationlimit", 45);             startactivityforresult(i, config.record_video); 

check out documentation mediastore.extra_video_quality

it says value 0 means low quality. change value 1.

and value 5mb set 5491520l.

all be:

import android.provider.mediastore; ...   intent = new intent(mediastore.video_capture); ... i.putextra(mediastore.extra_video_quality, 1); i.putextra(mediastore.extra_size_limit, 5491520l);//5*1048*1048=5mb i.putextra(mediastore.extra_duration_limit,45); startactivityforresult(i, config.record_video); 

Comments