In the Android developer guide, under Building an Audio App section, there is a statement:
The preferred architecture for an audio app is a client/server design. The player and its media session are implemented inside a MediaBrowserService, and the UI and media controller live inside an Android activity along with a MediaBrowser.
In the other hand, we have also the MediaPlayer class.
Which way is prefered in which situations?