I have Android application, which stream radio stream with m3u extension. It is playing this stream in MediaPlayer through method setDatasource(url). Of course, this works greaet because I don't need to take a care about reading inputstream, buffer that, repeatedly send to the MediaPlayer with seeking the last position and so on.
But now I need to stream and also record the stream. How should I do that? What are your recommendations?
- Like use NanoHTTPD (but how, where should I start to study own webserver logic)
- Or use SockerHandler somehow?
- Or any other solution? I don't know even, where should I start to study this problem.
Many thanks