当前位置:网站首页>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 .
边栏推荐
- Autofac详解
- CTF—Go题目复现
- Bitmap加载内存分析
- 7、STM32——LCD
- Analysis on the advantages and disadvantages of the best 12 project management systems at home and abroad
- Unknown character set index for field ‘255‘ received from server.
- Math. Max() method obtains the maximum value in the array and returns Nan problem analysis
- ORB_SLAM3环境搭建及demo演示
- 3D打印和激光切割流程的初步了解
- 2022山东健博会,济南国际大健康产业博览会,中国营养健康展
猜你喜欢

Several guesses about the design of Tencent conference number

HAOGE's blog Road

ORB_SLAM3环境搭建及demo演示

Some explanations of Tim timer of embedded interface and STM32 template library function of NVIC

【观察】戴尔科技+英特尔傲腾技术:以“纳秒之速”领跑存储创新

PyQt5_ Qtablewidget paging radio right-click menu control

微信视频号如何用 PC 电脑做直播?

Sorry, your USB cable may be wrong!

Autofac详解

Postman返回值中文乱码????
随机推荐
Why can't the netherworld fortress machine be remotely connected to the server? What are the ways to solve such problems?
The digital transformation index report 2021 released by Tencent Research Institute has accelerated the digital transformation and upgrading of mainland enterprises!
kubernetes之常用核心资源对象
Kotlin 协程 异步 异步流
企业网站的制作流程是什么?设计和制作一个网站需要多长时间?
Construction of cache stack FIFO in different application scenarios for PLC data operation series (detailed algorithm explanation)
浩哥的博客之路
Telecommuting: how to become a master of time management| Community essay solicitation
短视频挺进在线音乐腹地
高仿書旗小說 Flutter 版,學起來
WebService client request failed can not create a secure xmlinputfactory
Autofac详解
CTF—Go题目复现
Install using snap in opencloudos NET 6
Flutter中的GetX状态管理用起来真的那么香吗?
高仿书旗小说 Flutter 版,学起来
19 MySQL optimizations commonly used in projects
网站如何在Google建立索引
C# 读取内存条占用大小,硬盘占用大小
laravel之任务队列