Answer the question
In order to leave comments, you need to log in
Android Development: Audio Streaming
It was required to write an application for playing a number of music files located remotely on the server. I got into the help, it seems to be as easy as shelling pears: I
tried it - it really works. That's just for unclear reasons decently loads a smartphone. Brakes in the interface during playback are more than noticeable. CHADNT? Ideally, you need to play the file remotely with the ability to rewind (and, accordingly, determine the length).
MediaPlayer mp = new MediaPlayer();
mp.setDataSource(PATH_TO_FILE);
mp.prepare();
mp.start();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question