mirror of
https://github.com/androidx/media.git
synced 2025-05-04 22:20:47 +08:00

Renderers may be enabled for subsequent media items as soon as the current media item's renderer's isEnded() returns true. When a renderer is being enabled and the player is 'playing', that renderer is also started. When playing a mixed playlist of images and content with audio & video, the player may skip some image items because the early-starting of the audio renderer causes a clock update. A solution is to only start the "early-enabled" renderers at the point of media transition and add a condition on DefaultMediaClock to use the standalone clock when reading-ahead and the renderer clock source is not in a started state. Issue: androidx/media#1017 PiperOrigin-RevId: 613231227 (cherry picked from commit 638b2a3c86f7362041b09faed7c3c09609e29118)
Test data module
Provides sample data for media unit and instrumentation tests.