I'm trying to modify (extend) the FileInputStream
class so that I can open an encrypted file and use the stream for MediaPlayer's setDataSource(FileDescriptor)
. Problem is I don't know which method should be overridden to do the decryption inside the stream. I tried overriding all the read()
methods, but the mediaPlayer doesn't seem to use them.
Any suggestions?