Reviewing Android’s media options
Android, as a versatile mobile operating system, offers comprehensive support for various types of media, including but not limited to audio files (such as MP3, WAV, and OGG) and video content (such as MP4, WebM, and MKV). This broad support empowers developers to incorporate a wide range of media types into their applications that can be used for diverse user preferences and use cases. From educational apps that leverage video tutorials for learning to entertainment platforms streaming movies and music, media playback is at the heart of modern mobile applications, driving user engagement and satisfaction.
To start our journey, let’s look at which options we have in the Android ecosystem so that we can choose the most appropriate option to build the playback functionality of our app. We will start with MediaPlayer API and VideoView before considering ExoPlayer.
Learning about the MediaPlayer API
The MediaPlayer API is a powerful...