ExoPlayer has become Google’s de-facto embedded media player for apps. Unlike the
MediaPlayer, ExoPlayer can be updated outside of the operating system, allowing more users to take advantage of new features and security fixes. For example, ExoPlayer version 2.1 has just been published, allowing any app that plays video and audio to take advantage of these new features immediately.
Seeking in live streams is now supported in supported streams, making it easy to add time-shifting capabilities to your player or Live Channel.
Another highlighted feature is around closed captions. This feature, which overlays words and sometimes audio effects on screen, can just be implemented simply, or support various standards which can allow for richer captioning. CEA-608 captions can have special styles such as positioning the words in different places based on where the speaker is standing. Text can be plain or italicized for emphasis. Now, these additional styles are displayed as specified.
While ExoPlayer may be focused on video, it can also play audio content. As music plays, information about this data can be displayed using ID3 tags. These tags can now be easily read from media tracks as shown in the example on Medium.
If you’re still using
MediaPlayer in your app, it may be time to look at using ExoPlayer. With better support on more API levels, it can provide users and developers a better experience.