android - MediaPlayer throws IOException for wav file -



android - MediaPlayer throws IOException for wav file -

i have sound recording app on android, , i've encountered unusual issue on friend's phone.

one of recordings did not work , throws:

e/mediaplayer-jni(5996): qcmediaplayer mediaplayer not nowadays e/mediaplayer(5996): unable create media player e/com.audiorec.player.mediaplayer(5996): setdatasourcefd failed.: status=0x80000000 e/com.audiorec.player.mediaplayer(5996): java.io.ioexception: setdatasourcefd failed.: status=0x80000000

but playing success on windows media player, vlc player, etc !!!!!!!!!

could take on header of "recordingnotok.wav" file?

here both recordings

for recordingnotok.wav file, sounds specified size of info chunk bigger file size: 00 f8 0a 00 in little endian 718848 bytes while whole file size 716844 , actual info size available chunk 716800

this number can found here (3rd line after 'data'):

52 49 46 46 24 f0 0a 00 57 41 56 45 66 6d 74 20 riff $ð?? wave fmt 10 00 00 00 01 00 02 00 80 3e 00 00 00 fa 00 00 ???? ???? >?? ?ú?? 04 00 10 00 64 61 74 61 00 f8 0a 00 00 00 00 00 ???? info ?ø?? ????

basically seems file has been truncated. players might ignore , seek play whatever available end of file. guess on android tries read whole file first according expected size hence ioexception

android audio android-mediaplayer

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -