I have a very big(>1 gb) encrypted file, When I decrypt it, I get byte array in chunk with method such as
getByteArray(position,size)
Here position determines the position from where the byte array has to be extracted and of which size.
Now I want to play the byte array chunks so received without writing them to a file in storage, I tried CustomMediaDataSource
but it is not available below api 23.
I tried converting it to inputstream
but it gave me OutOfMemoryException
Is there any way to achieve this?