How to implement recording (saving) of an audio stream from the Internet? There is a link to a file of type .mp3, when you click on the "Start" button, you must start saving the file being played to the phone, and when you click on "Stop", stop recording. Which way to dig? I did not find such examples.

  • Just take any libu (at least standard) and make a GET request to the file address. The file will be in the server response. - Yuriy SPb
  • And what is the standard name? - Scorpion
  • I do not know) Never used) I advise OkHttp . In general, the question is not very clear. Do you already have a replay done? And you just need to download? If you use MediaPlayer , then maybe there already is such a feature out of the box. It seems to be loading and playing at the same time. Perhaps you can file the final and pull through it. - Yuriy SPb
  • Maybe here it will work: stackoverflow.com/a/36033301/3212712 . But it is not clear - you need to download and play the file, download the file being played or the file download manager with progress and other things you need to do. It is not very clear what links you give. Try to localize the problem and formulate the question more precisely - YuriySPb
  • I have played through exoplayer. Now I want to add a function to record the audio being played - Scorpion

0