예제 #1
0
 @Override
 public @NonNull ExternalApiResult invoke(List<Object> parameters) {
   ActivityHelper.registerActionRequestCode(MediaHelper.CAPTURE_VIDEO);
   mOutputMediaFile = MediaHelper.captureVideo(getActivity());
   return ExternalApiResult.SUCCESS_WAIT;
 }
예제 #2
0
 @Override
 public @NonNull ExternalApiResult invoke(List<Object> parameters) {
   ActivityHelper.registerActionRequestCode(MediaHelper.TAKE_PICTURE);
   mOutputMediaFile = MediaHelper.takePicture(getActivity());
   return ExternalApiResult.SUCCESS_WAIT;
 }