Android Media Server passed away after some part played with error 100 0

I put the file in local storage /data/data//files/abc.mp4

and specify the path in videoView.setVideoURI (Uri.parse (localFilePath));

and get an error after any part of the file being played

 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.
+4
source share
1 answer

I had the same problem with my MediaPlayer, but it works correctly after adding reset mediaPlayer.reset();

+1
source

Source: https://habr.com/ru/post/1540488/


All Articles