当前位置:网站首页>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 .
边栏推荐
- Solve the problem that slf4j logs are not printed
- [Xilinx ax7103 microbalze Learning Notes 6] MicroBlaze custom IP core packaging experiment
- 6. STM32 - serial port data transceiver Foundation
- Androidkotlin comprehensive and detailed class usage grammar learning guide
- MySQL transaction isolation
- 牛客网:接雨水的双指针问题
- C# 读取内存条占用大小,硬盘占用大小
- 3D打印和激光切割流程的初步了解
- AUTOCAD——总结CAD画圆角的三种方式
- 网站如何在Google建立索引
猜你喜欢

Nlog详解

Is the geTx status management in the flutter really so good to use?

2022山东健博会,济南国际大健康产业博览会,中国营养健康展

Bitmap load memory analysis

STM32------ADC(电压检测)

Talking about the knowledge of digital transformation

Flutter中的GetX状态管理用起来真的那么香吗?

Autofac详解

Analysis on the advantages and disadvantages of the best 12 project management systems at home and abroad

PyQt5_QTableWidget分页单选右键菜单控件
随机推荐
Bilibili×蓝桥云课|线上编程实战赛全新上新!
The digital transformation index report 2021 released by Tencent Research Institute has accelerated the digital transformation and upgrading of mainland enterprises!
PHP curl function extension basic usage
【设计】1359- Umi3 如何实现插件化架构
网站如何在Google建立索引
What is the production process of enterprise website? How long does it take to design and build a website?
Sorry, your USB cable may be wrong!
VS QT VTK 左下角显示同步小坐标轴
对不起,你的USB走线可能搞错了!
图论(最近公共祖先LCA)
Four traversals of map sets
有哪些劵商推荐?在线开户安全么?
Detailed quaternion
微信视频号如何用 PC 电脑做直播?
C# 读取内存条占用大小,硬盘占用大小
高仿书旗小说 Flutter 版,学起来
How to index websites in Google
Autofac详解
STM32-------外部中斷
小程序容器到底是什么