ExoPlayer 2.1 – Live Stream Seeking & Caption Styling

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.

Nick Felker

Nick Felker

Nick Felker is a student Electrical & Computer Engineering student at Rowan University (C/O 2017) and the student IEEE webmaster. When he's not studying, he is a software developer for the web and Android (Felker Tech). He has several open source projects on GitHub (http://github.com/fleker) Devices: Moto G-2013 Moto G-2015, Moto 360, Google ADT-1, Nexus 7-2013 (x2), Lenovo Laptop, Custom Desktop. Although he was an intern at Google, the content of this blog is entirely independent and his own thoughts.

More Posts - Website

Follow Me:
TwitterLinkedInGoogle PlusReddit