I have some locally stored mp3 files which are already encrypted. I want to play (stream) the files while they're decrypting rather than waiting for them to finish decrypting, then stream. However, when I use the FileDescriptor and attempt to stream the content, I get an IOException:
Unable to to create media player
setDataSourceFD failed.: status=0x80000000
java.io.IOException: setDataSourceFD failed.: status=0x80000000
at android.media.MediaPlayer.setDataSource(Native Method)
at android.media.MediaPlayer.setDataSource(MediaPlayer.java:976)
How can I resolve this issue and stream content as it decrypts?
P.S. I'm able to play already the already decrypted files, but I want them to play during the process of decryption to reduce the time taken before audio can play