From 25925d243e382e86125856545a2fc962d272f64b Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 23 May 2020 17:50:29 +0100 Subject: [PATCH] All chosen codecs in SnapshotVideoRecorder.java should use "audio/mp4a-latm". Setting DEVICE_DEFAULT to use it's actual value would change the behaviour of the class. --- .../otaliastudios/cameraview/video/SnapshotVideoRecorder.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cameraview/src/main/java/com/otaliastudios/cameraview/video/SnapshotVideoRecorder.java b/cameraview/src/main/java/com/otaliastudios/cameraview/video/SnapshotVideoRecorder.java index fa0e2bc1..44869dd1 100644 --- a/cameraview/src/main/java/com/otaliastudios/cameraview/video/SnapshotVideoRecorder.java +++ b/cameraview/src/main/java/com/otaliastudios/cameraview/video/SnapshotVideoRecorder.java @@ -148,9 +148,8 @@ public class SnapshotVideoRecorder extends VideoRecorder implements RendererFram case AAC: case HE_AAC: case AAC_ELD: - audioType = "audio/mp4a-latm"; break; case DEVICE_DEFAULT: - audioType = "audio/3gpp"; + audioType = "audio/mp4a-latm"; break; } TextureConfig videoConfig = new TextureConfig(); AudioConfig audioConfig = new AudioConfig();