I want to make a program that can play large media files. When I use InputStream to load data from files, it'll load all data into InputStream. So it will take much time to run and doesn't run well. It play more slowly than normal.
Now, I want to load a part of data into InputStream (like buffer) and play with this InputStream? After player finish a data, program will load next data to InputStream and play.
How can I do that?
PS: Sorry for my English.