我正在通过录制APIC的媒体记录某些音频文件。
mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
mRecorder.setOutputFile(mFileName);
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
then I upload said file to server , now when I try to play it , mediaplayer is simply unable to do so.
这里的是代号。
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
mediaPlayer.setDataSource(filePath);
mediaPlayer.prepareAsync();
我应当利用何种环境来允许流传视听。