使用MediaRecorder录制.amr文件,
如果存储在sdcard上,则一切正常(录音,播放)
如果选择录音文件存储在/data/data/xxx.xxx/user-data下(注:xxx.xxx是程序名)
则可以正常录音,文件也正常生成;但是问题是无法播放。
提示:"sorry, the player does not support this type of audio file"
--此处播放使用的是Android自带的播放器。猜测:
1,权限问题?
2,路径中含有“.”?
3,其他问题原因是什么,怎么解决,请指教。

解决方案 »

  1.   

    附logcat:ERROR/PlayerDriver(555): Command (PLAYER_SEEK) was cancelledERROR/PlayerDriver(555): Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupportederror (1, -4)
      

  2.   

    Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported我也是这个毛病,感觉代码没问题啊,就是运行不出来!