2012-06-11 54 views
1

我已按照this录制视频。我用下面的编码,以播放录制的视频..录制无声音视频播放

URL = “文件:///mnt/sdcard/CaptureVideo/1510402819.3gpp”

Intent i = new Intent(Intent.ACTION_VIEW); 
i.setDataAndType(Uri.parse(url), "video/*"); 
startActivity(i); 

我有尝试过的MP4和MP3格式仍然听不到声音。 。 。

注意:如果 我玩录制的视频直接无法听到声音.. 任何一个可以帮助我..

回答

0

设置的AudioSource和音频编码器如下,

recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT); 
recorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); 
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); 
recorder.setVideoEncoder(MediaRecorder.VideoEncoder.DEFAULT); 
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT); 
1

试试这个:

Intent movieIntent = new Intent(); 
movieIntent.setAction(android.content.Intent.ACTION_VIEW); 
movieIntent.setDataAndType(Uri.fromFile(file), "video/*"); 
startActivity(movieIntent);