Comments (4)
应该可以现在onTouch先判断一下有无获取权限
from cameraview.
你的手机是6.0的,第一次打开的时候没有弹出权限获取提示框嘛?
from cameraview.
我手头上的测试机ViVo Y66 android6.0,第一次打开会自动弹出拍摄的权限提示框,但是录音的提示框要按下按钮之后,开始录制的时候才会弹出这个录音的权限哦。。。
应该是提示框的Dialog弹出,界面控件失去焦点了,所以captureButton无法再去捕获MotionEvent,所以动画默认自动全部执行完毕了。。。
关于您说的在操作之前去检查权限,这个在ViVo Y66 android6.0上,是不生效的哦。
所以想请教您,能否在自定义控件captureButton上去做相关的处理。比如判断有没有弹出框,这样去取消动画了。
以上,非常感谢您的回复 :)
from cameraview.
你试试看在 MOTION_CANCEL 这个onTouch 事件打印一下LOG,看看弹出Dialog时候并且点击后会不会执行这个事件,如果执行的话你就可以在这里去停止动画
from cameraview.
Related Issues (20)
- 引入源码,修改vedio名字,录制视频成功后导致崩溃 HOT 3
- 能支持下,暂停/继续录制功能吗
- app:iconMargin 未生效
- 基于CameraX重写,解决已知问题
- 怎么限制视频的时长、大小?
- VIVO X21 UDA MediaRecorder: start failed: -38 HOT 6
- 请问要怎么对接美颜sdk呢 HOT 1
- 大神,请问前置摄像头录制视频出来的结果镜像问题该怎么解决? HOT 2
- 横排好像有问题
- 这个项目已经三年没有维护了,可能无法正常启动了
- 已使用CameraX重写,适配Android Q HOT 3
- startPreview failed 这个怎么解决,作者请看看,谢谢!
- 点击拍照后,图片不能放大缩小 HOT 1
- 已经重写适配android16 至 android30
- hjh
- 大佬,能否提供给出主动拍照的接口
- 能否提供切换前后置摄像头的接口?
- maven { url 'https://dl.bintray.com/cjt/maven' }过时了
- 这个库已经很久没人维护了,如果有需要可以看此库
- 111
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cameraview.