Android Media Server在部分播放错误100 0后死亡

时间:2014-05-14 08:48:30

标签: android android-videoview

我已将文件放入本地存储空间/data/data/<packagename>/files/abc.mp4

并在videoView.setVideoURI(Uri.parse(localFilePath));

中提供路径

并在文件的某些部分播放后出现错误

 A/libc(4801): Fatal signal 11 (SIGSEGV) at 0x80000000 (code=1), thread 4801 (mediaserver)
 E/MediaPlayer(4071): error (100, 0)
 E/MediaPlayer(4071): Error (100,0)
 E/VideoPlayerActivity(4071): 0
 E/MediaPlayer(4071): stop called in state 0
 E/MediaPlayer(4071): error (-38, 0)
 E/ALSALib(4823): external/alsa-lib/src/control/cards.c:230:(snd_card_get_aml_card) cardname =AML-DUMMY-CODEC, card = 0
 E/ALSALib(4823): external/alsa-lib/src/control/cards.c:230:(snd_card_get_aml_card) cardname =AML-DUMMY-CODEC, card = 0
 E/AudioFlinger(4823): int android::load_audio_interface(char const*, audio_hw_device_t**) couldn't load audio hw module audio.usb (No such file or directory)
 E/AudioService(3393): Media server died.
 E/AudioService(3393): Media server started.

1 个答案:

答案 0 :(得分:1)

我的MediaPlayer遇到了同样的问题,但在添加重置mediaPlayer.reset();

后它正常工作