After lots of searching I didn't find any answer how to solve the problem described in the title.
I want to send intent to the system in order to play some media. It can be everywhere, in an encrypted zip, on FTP server or on my PC via SMB access. I use input and output streams as a pipe between different protocols, so a file can be copied between them without any obstacles.
What i want to achieve is to give an access to this input stream for any streaming app available in the system. For example the streaming app can play a song located on my PC's SMB shares or directly from an encrypted zip without extracting/downloading it, only using the given input stream.
The only thing I have found so far is streaming from HTTP urls which is not my case. Does anyone know a possible solution for that?