当前位置:网站首页>How to achieve the turning effect of wechat video recording?
How to achieve the turning effect of wechat video recording?
2022-06-23 23:41:00 【Android Guide】

Good morning , I am Lao Bei , official account 「GitHub Point north 」 Will recommend GitHub Useful projects on , Tap the value of open source , Welcome to your attention .
My quotation
WeChat chat , Send a recorded video , Long press the button , There is a looping effect during recording , How can this effect be achieved ? If you write it yourself, it probably involves knowledge points Android Customize View Medium drawArc Draw an arc , But we can go first GitHub Find out if there are any similar libraries , The principle is “ Most of the time, you don't need to know much about the principle at all , Just stand on the ding ding of the giant ”, The so-called predecessors plant trees, and later generations enjoy the cool .
very good ,GitHub There are really , be known as CameraVideoButton, Imitation Instagram Animation buttons for taking photos or recording videos , Recommended to you , Language is
Kotlin, Words GitHub What a treasure .
Results the preview

Use
The project and app build.gradle:
allprojects {
repositories {
//...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.iammert:CameraVideoButton:0.2'
}
xml quote :
<com.iammert.library.cameravideobuttonlib.CameraVideoButton android:id="@+id/button" android:layout_width="120dp" android:layout_height="120dp" app:cvb_recording_color="#D438A2"/>
Code callback :
videoRecordButton.actionListener = object : CameraVideoButton.ActionListener{
override fun onStartRecord() {
Log.v("TEST", "Start recording video")
}
override fun onEndRecord() {
Log.v("TEST", "Stop recording video")
}
override fun onDurationTooShortError() {
Log.v("TEST", "Toast or notify user")
}
override fun onSingleTap() {
Log.v("TEST", "Take photo here")
}
}
GitHub Address
https://github.com/iammert/CameraVideoButton
above , Today's sharing , Think the content is good , Please order some more 「 Fabulous 」 Under the support , Thank you very much .
边栏推荐
- 解决Slf4j日志不打印问题
- 2022 information security engineer examination knowledge point: access control
- The fortress machine installs pytorch, mmcv, and mmclassification, and trains its own data sets
- AIX system monthly maintenance check (I)
- Detailed quaternion
- 高仿书旗小说 Flutter 版,学起来
- Math. Max() method obtains the maximum value in the array and returns Nan problem analysis
- Activity的onSaveInstanceState回调时机
- 国内外最好的12款项目管理系统优劣势分析
- 根据先序遍历和中序遍历生成后序遍历
猜你喜欢

高仿书旗小说 Flutter 版,学起来

Telecommuting: how to become a master of time management| Community essay solicitation

Can the characteristics of different network structures be compared? Ant & meituan & NTU & Ali proposed a cross architecture self supervised video representation learning method CaCl, performance SOTA

对不起,你的USB走线可能搞错了!

Bilibili×蓝桥云课|线上编程实战赛全新上新!

Analysis of Alibaba cloud Tianchi competition -- prediction of o2o coupon

完整开源项目之诗词吧 APP

Autofac详解

《阿里云天池大赛赛题解析》——O2O优惠卷预测

Practice of issuing vouchers for Tiktok payment of 100000 TPS traffic
随机推荐
Cs5213 HDMI to VGA with audio signal output scheme
Image segmentation - data annotation
嵌入式接口复习资料
Stm32 - - - - interruption externe
思考(八十七):协议加密与压缩
Four traversals of map sets
PLC数据操作系列之构造不同应用场景的缓存栈FIFO(算法详解)
再见,2020,这碗毒鸡汤,我先干了
[observation] Dell technology + Intel aoteng Technology: leading storage innovation with "nanosecond speed"
“山大地纬杯”第十二届山东省ICPC大学生程序设计竞赛
远程办公之:如何成为时间管理大师?| 社区征文
抖音支付十万级 TPS 流量发券实践
STM32-------外部中断
【观察】戴尔科技+英特尔傲腾技术:以“纳秒之速”领跑存储创新
AIX系统月维护查什么(二)
Flutter中的GetX状态管理用起来真的那么香吗?
Zynq ultrascale+ RF data converter IP configuration - ADC
Go language core 36 lectures (go language practice and application 23) -- learning notes
Stm32----- timer
【Xilinx AX7103 MicroBalze学习笔记6】MicroBlaze 自定义 IP 核封装实验