当前位置:网站首页>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 .
边栏推荐
- AUTOCAD——总结CAD画圆角的三种方式
- Stm32 - - - - interruption externe
- Math. Max() method obtains the maximum value in the array and returns Nan problem analysis
- “山大地纬杯”第十二届山东省ICPC大学生程序设计竞赛
- Generate post order traversal according to pre order traversal and mid order traversal
- Preliminary understanding of 3D printing and laser cutting process
- 网站如何在Google建立索引
- How to write and read ASM file system data
- Why do MySQL indexes use b+ trees at the bottom? After reading this article, you can easily handle the interview.
- ORB_SLAM3环境搭建及demo演示
猜你喜欢

Bitmap加载内存分析

C# 读取内存条占用大小,硬盘占用大小

STM32 ------ external interrupt

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

VS QT VTK 左下角显示同步小坐标轴

CTF go topic recurrence

一款高仿腾讯漫画的漫画阅读类 APP

一个人竟然撸了一个网易云音乐云村

6、STM32——串口数据收发基础

Generate post order traversal according to pre order traversal and mid order traversal
随机推荐
高仿書旗小說 Flutter 版,學起來
保障特殊困难群体安全,广州民政全力做好三防工作
【HackTheBox】 meow
有哪些劵商推荐?在线开户安全么?
Some explanations of Tim timer of embedded interface and STM32 template library function of NVIC
Stm32-------adc (voltage detection)
Telecommuting: how to become a master of time management| Community essay solicitation
Detailed quaternion
腾讯会议号设计的几种猜测
Bilibili × Blue bridge cloud course | online programming practice competition is new!
Bitmap加载内存分析
Task queue of laravel
Autofac详解
Fabric. JS manual bold text iText
嵌入式接口之TIM定时器与NVIC的STM32模板库函数的一些解释
Kotlin coroutine asynchronous flow
ACM. HJ89 24点运算 ●●●
BroadcastReciver 和LocalBroadcastManager区别
Grpc security -2: fast implementation of server-side JWT authentication
STM32-------外部中断