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

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -