Questions tagged «media-player»

11
Android MediaPlayer错误(1,-2147483648)
我有两个要尝试加载到VideoView使用中的视频 videoView.setVideoURI(Uri.parse(url)); 这两个视频分别为视频1和视频2,它们具有以下规格(使用提取ffmpeg -i);实际上,它们是同一视频的两种不同编码: 影片1: Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '4fbfd5ece4b0932236fc234d.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isomavc1 creation_time : 2011-12-03 04:43:46 genre : Trailer artist : Paramount Pictures title : Captain America: …

16
android mediaRecorder.setAudioSource失败
我有android G1固件1.6,我正在尝试使用以下代码记录来自应用程序的语音。 MediaRecorder记录器=新的MediaRecorder(); records.setAudioSource(MediaRecorder.AudioSource.MIC); records.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); records.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); records.setOutputFile(PATH_NAME); records.prepare(); records.start(); 我的manifest.xml具有: <uses-permission android:name =“ android.permission.RECORD_AUDIO” /> 我有: 09-23 14:41:05.531:错误/ AndroidRuntime(1718):未捕获的处理程序:由于未捕获的异常而导致线程主退出 09-23 14:41:05.551:错误/ AndroidRuntime(1718):java.lang.RuntimeException:setAudioSource失败。 09-23 14:41:05.551:错误/ AndroidRuntime(1718):位于android.media.MediaRecorder.setAudioSource(本机方法) 如何正确录制语音?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.