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

Popular posts from this blog

python - RuntimeError: can't re-enter readline -

python - PyInstaller UAC not working in onefile mode -

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -