当前位置:网站首页>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 .
边栏推荐
- 高仿書旗小說 Flutter 版,學起來
- How to index websites in Google
- Go language core 36 lectures (go language practice and application 23) -- learning notes
- Several guesses about the design of Tencent conference number
- 高仿斗鱼 APP
- PyQt5_ Qtablewidget paging radio right-click menu control
- 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
- 谈谈数字化转型晓知识
- 【Xilinx AX7103 MicroBalze学习笔记6】MicroBlaze 自定义 IP 核封装实验
- 微信录制视频转圈效果如何实现?
猜你喜欢

高仿斗鱼 APP

Bitmap加载内存分析

HDLBits-&gt;Circuits-&gt;Arithmetic Circuitd-&gt;3-bit binary adder

抖音支付十万级 TPS 流量发券实践

Golang 类型断言

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

STM32-------外部中断

The sandbox week is coming!

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

CTF—Go题目复现
随机推荐
【设计】1359- Umi3 如何实现插件化架构
Graph theory (tree diameter)
Short video enters the hinterland of online music
CTF—Go题目复现
1004. 最大连续1的个数 III ●●
WebService客户端请求失败 can not create a secure xmlinputfactory
STM32-------外部中斷
MySQL导致索引失效的几种情况
iNFTnews | 创造者经济的未来在Web3世界中该去向何处?
BroadcastReciver 和LocalBroadcastManager区别
[design] 1359- how umi3 implements plug-in architecture
Fabric.js 手动加粗文本iText
【Try to Hack】masscan
Kotlin 协程 异步 异步流
How can wechat video numbers be broadcast live on a PC?
Common core resource objects of kubernetes
【HackTheBox】Fawn
STM32-------定时器
不同网络结构的特征也能进行对比学习?蚂蚁&美团&南大&阿里提出跨架构自监督视频表示学习方法CACL,性能SOTA!...
Why do MySQL indexes use b+ trees at the bottom? After reading this article, you can easily handle the interview.