java - CamcorderProfile.get(int) returns null for any value -
in app i'm using mediarrcorder recording videos, works fine, problem appears huawei devices, camcorderprofile.get(int)
returns null, tried many number getting camcorderprofile, nothing worked. here mediarecorder init params
mediarecorder.setpreviewdisplay(surfaceholder.getsurface()); mediarecorder.setcamera(camera); mediarecorder.setorientationhint(270); mediarecorder.setaudiosource(mediarecorder.audiosource.camcorder); mediarecorder.setvideosource(mediarecorder.videosource.camera); mediarecorder.setprofile(camcorderprofile.get(videoquality));
here mediarecorder.setprofile() throws null pointer exception. had same problem? os version 4.2.2
Comments
Post a Comment