簡體   English   中英

錄制的視頻無聲播放

[英]Recorded Video playing without sound

我已按照錄制視頻。 我已使用以下編碼播放錄制的視頻。

url =“ file:///mnt/sdcard/CaptureVideo/1510402819.3gpp”

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

我嘗試使用mp4和mp3格式仍然聽不到聲音。

注意:如果我正在直接播放錄制的視頻而無法聽到聲音。.任何人都可以幫助我..

嘗試這個 :

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

如下設置AudioSource和Audio Encoder,

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);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM