android - sinch video chat not showing local view or remote view -
i have integrated sinch video chat in application based of sinch video push sample
the local view , remote view show black screen , not show , generate crash in background
03-28 12:02:59.371 16607-19169/com.forsale.forsale e/logging: videocapturerandroid: java.lang.runtimeexception: fail connect camera service @ android.hardware.camera.<init>(camera.java:568) @ android.hardware.camera.open(camera.java:405) @ org.webrtc.sinch.videocapturerandroid.startcaptureoncamerathread(videocapturerandroid.java:450) @ org.webrtc.sinch.videocapturerandroid.access$1100(videocapturerandroid.java:47) @ org.webrtc.sinch.videocapturerandroid$7.run(videocapturerandroid.java:460) @ android.os.handler.handlecallback(handler.java:739) @ android.os.handler.dispatchmessage(handler.java:95) @ android.os.looper.loop(looper.java:158) @ android.os.handlerthread.run(handlerthread.java:61)
can 1 please?
inside manifest file:
<uses-feature android:name="android.hardware.camera" /> <uses-feature android:name="android.hardware.camera.autofocus" /> <uses-permission android:name="android.permission.camera"></uses-permission>
do not forget request permissions here discribed:
https://developer.android.com/training/permissions/requesting.html
in breif:
if (contextcompat.checkselfpermission(this, manifest.permission.camera) != packagemanager.permission_granted) { activitycompat.requestpermissions(this, new string[]{manifest.permission.camera}, 50); } else { startcamera();
}
Comments
Post a Comment