|
Post by fnllc on Oct 2, 2019 16:46:57 GMT
If Video Capture permission is not given, the record video callback is called twice with these params:
APP| {"mode"=>"new", "rho_callback"=>"1", "runtimeError"=>"Permission Denial: starting Intent { act=android.media.action.VIDEO_CAPTURE cmp=com.motorola.camera2/com.motorola.camera.Camcorder (has extras) } from ProcessRecord{6f7b948 30910:com.mybusiness.myapp/u0a321} (pid=30910, uid=10321) with revoked permission android.permission.CAMERA"}
APP| {"mode"=>"new", "rho_callback"=>"1", "runtimeError"=>"Video capture cancelled by the user"}
Note how there is no "status"=>"error" param also.
I have tried to look at the source code, but I'm not finding the location where this is handled in the Rhodes source code. I'm just pointing out that the callback params are non standard.
|
|