android - Fail to connect to camera service cause null -


using twilio , when receiving call front camera fail load.

note : works fine when calling.

error message : unable open camera camera 1, facing front, orientation 270:fail connect camera service cause null

code

  cameracapturer= cameracapturerfactory.createcameracapturer(this, cameracapturer.camerasource.camera_source_front_camera, capturererrorlistener())  /* 

* cameracapture error listener */

 public capturererrorlistener capturererrorlistener() {     return new capturererrorlistener() {         @override         public void onerror(capturerexception e) {              log.e(tag, "camera capturer error: " + e.getmessage()+" cause  "+e.getcause());          }     }; } 


Comments

Popular posts from this blog

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

I could not debug scala remote application on eclipse or IntelliJ IDEs -