Media3 1.8.0 - What’s new? Note

Media3 1.8.0 - What’s new?

This release of Media3 version 1.8.0 introduces several key features and improvements. A new scrubbing mode for ExoPlayer enhances performance for user-driven seeks like dragging a seek bar. HlsInterstitialsAdsLoader now supports live streams and asset lists for server-guided ad insertion. MetadataRetriever has been updated to retrieve media duration without requiring playback, utilizing an AutoCloseable pattern.The release also includes optimizations for partial downloads with a new PreCacheHelper and automatic audio routing to XR virtual devices. ExoPlayer interactions with MediaCodec have been made more efficient by skipping unnecessary buffers. MediaSession module improvements include longer notification persistence for playback resumption and more user-friendly live stream notifications.Transformer APIs now support faster trim operations using MP4 edit lists, avoiding full re-transcoding for trim-only edits. CodecDbLite optimizes encoder configurations on a chipset-by-chipset basis for improved video quality. The Composition Demo app has been rebuilt with Kotlin and Compose, showcasing multi-asset editing capabilities with adaptive layouts and a custom video compositor. These updates aim to provide a more robust and efficient media playback and editing experience.