我在android設備上錄製音頻,它會在設備上播放,但不會在電腦上播放。我覺得它與我給它的道路有關。在路徑中,我指定了一個文件擴展名。我已經嘗試過沒有擴展和.3gp(與適當的輸出格式設置),但它不會在電腦上播放。任何人都可以對此有所瞭解嗎?MediaRecorder音頻不會在計算機上播放
VLC提供了以下錯誤
沒有合適的解碼器模塊: VLC不支持的音頻或視頻格式「SAMR」。不幸的是,你無法解決這個問題。
// Set up sound recording
recorder = new MediaRecorder();
path = "/sdcard/prism/sound/";
// Make sure the directory we plan to store the recording in exists
directory = new File(path);
directory.mkdirs();
recorder.reset();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
recorder.setOutputFile(path + username + "_" + taskId + ".mpeg4");// + ".mp3");
//Sometime later after button presses recorder.prepare() and recorder.start() are called
// then after stop is pressed recorder.stop() and recorder.release() are called