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.

pull/861/head
Ryan 5 years ago
parent 03e386bd5a
commit 25925d243e
  1. 3
      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();

Loading…
Cancel
Save