S
S
S0ulReaver2011-02-21 20:23:32
Android
S0ulReaver, 2011-02-21 20:23:32

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

1 answer(s)
O
Oleg, 2014-08-28
@Master255

shouldn't slow down. The problem is in the device.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question