当前位置:网站首页>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"
边栏推荐
- 版本管理工具使用
- 二分查找
- 基于邻接表的广度优先遍历
- 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]
- 如何在 R 中的绘图中添加回归方程
- Termux install openssh
- UTONMOS:以数字藏品助力华夏文化传承和数字科技发展
- PyQt theme
- 55 pictures make you feel a bit B-tree at one time
- 请指教同花顺软件究竟是什么?在线开户安全么?
猜你喜欢
How to check and cancel subscription auto renewal on iPhone or iPad
Scala Basics (II): variables and data types
为 ServiceCollection 实现装饰器模式
Largeur d'abord traversée basée sur la matrice de contiguïté
Eureka registration information configuration memo
Dynamic analysis and calculation of expression, flee is really sweet to use
奶牛排序问题
Depth first traversal of Graphs
Redis classic 20 questions
Interviewer: please name four ways to exchange the values of two variables without using third-party variables
随机推荐
Timer case
Interviewer: please name four ways to exchange the values of two variables without using third-party variables
股票开户怎么开户?网上开户是否安全么?
OpenAPI 3.0 specification - Food Guide
网上股票开户安全吗?
Wechat applet
Eureka registration information configuration memo
# 云原生训练营毕业总结
Blazor University (33)表单 —— EditContext、FieldIdentifiers
MySQL根据查询的数据更新记录
55 pictures make you feel a bit B-tree at one time
Snake game
在 R 中创建非线性最小二乘检验
Remember a simple JVM tuning experience
Implement decorator pattern for servicecollection
Share some remote office experience in Intranet operation | community essay solicitation
MySQL必須掌握4種語言!
Analytic hierarchy process
Google 推荐在 MVVM 架构中使用 Kotlin Flow
Here comes the official zero foundation introduction jetpack compose Chinese course!