当前位置:网站首页>Dreamcamera2 record key prompt sound into video during video recording
Dreamcamera2 record key prompt sound into video during video recording
2022-06-26 02:38:00 【bestwu0666】
The camera records the key prompt sound into the video during video recording
[ANSWER]
1. Record the manual focusing sound into the video
FocusOverlayManager updateFocusFinsh Method Cancel the focusing sound during video recording
mFocusRing.startActiveFocusedFocus();
if (mFocusArea != null) {
if (mAppController.isPlaySoundEnable()) {
- mCameraSound.play(MediaActionSound.FOCUS_COMPLETE);
+ if (!(mListener instanceof VideoModule && ((VideoModule) mListener).isRecording())) {
+ mCameraSound.play(MediaActionSound.FOCUS_COMPLETE);
+ }
}
} else {
mFocusRing.centerFocusLocation();
2. During the video recording, the prompt sound for starting the video recording will be recorded into the video
Add appropriate delay before starting recording , Make sure to start recording after the sound is released
+++ b/src/com/android/camera/VideoModule.java
@@ -2810,6 +2810,13 @@ public class VideoModule extends CameraModule implements
// Fix bug 540246 recording and music work together after we end call
mActivity.sendBroadcast(new Intent(PAUSE_ACTION));
}
+ try {
+ Thread.sleep(600);
+ } catch (Exception e){
+ e.printStackTrace();
+ }
/*}@*/
// if (useNewApi() && mShutterSoundEnable) {
// if (mCameraSound != null) {
3. During the video recording process, the key prompt sound for taking photos and pausing will be recorded into the video
Cancel the prompt tone of taking pictures and pause key during recording
android:soundEffectsEnabled="false"
--- a/idh.code/vendor/sprd/platform/packages/apps/DreamCamera2/res/layout/dream_bottom_bar_contents.xml
+++ b/idh.code/vendor/sprd/platform/packages/apps/DreamCamera2/res/layout/dream_bottom_bar_contents.xml
@@ -38,6 +38,7 @@
android:background="#ff0000" -->
<com.android.camera.ui.RotateImageView
android:id="@+id/video_capture_button"
+ android:soundEffectsEnabled="false"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="center"
@@ -112,6 +113,7 @@ android:background="#ff0000" -->
<com.android.camera.ui.RotateImageView
android:id="@+id/btn_video_pause"
+ android:soundEffectsEnabled="false"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="center"
边栏推荐
- Possible values for @supply in kotlin
- Is it safe to open a securities account at the school of Finance and business in 2022?
- How do I fix the iPhone green screen problem? Try these solutions
- 音视频与CPU架构
- Redis classic 20 questions
- Markov decision process (MDP): gambler problem
- 版本管理工具使用
- Prometeus 2.33.0 new features
- 如何在 ggplot2 中向绘图中添加表格
- Bloc入门之Cubit详解
猜你喜欢

How do I take a screenshot of the iPad? 7 ways to take quick screenshots of iPad

图的广度优先遍历

Depth first traversal of Graphs

基於鄰接矩陣的廣度優先遍曆

Scala Basics (II): variables and data types

分享一些在内网操作的远程办公经验| 社区征文

Breadth first traversal based on adjacency table

Chapter I: essential information collection of penetration test

MySQL必須掌握4種語言!

The programmer's eight-year salary change has made netizens envious: you pay me one year's salary per month
随机推荐
如何在 ggplot2 中删除网格线(附示例)
OA process editing
Simplex method (1)
PyQt theme
业务流程图设计
What is flush software? Is online account opening safe?
R语言 生存分析
Digital commodity DGE -- the dark horse of wealth in digital economy
2022-06-25: given a positive number n, it means that there are tasks 0~n-1. Given an array of length N, time[i] means the time when task I is completed. Given a two-dimensional array matrix, matrix[j]
【机器学习】基于多元时间序列对高考预测分析案例
记一个RestControll和Controller 引起的折磨BUG
Dynamic analysis and calculation of expression, flee is really sweet to use
regular expression
Wechat launched a web version transmission assistant. Is it really easy to use?
MySQL必須掌握4種語言!
为 ServiceCollection 实现装饰器模式
Breadth first traversal of Graphs
7 tips to change your life
Agent challenge - "Olympic running"
在同花顺网上开户安全吗?如何网上开一个券商账户