mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

This avoids that these settings have to be resolved inline, potentially blocking the main thread. They can be resolved at the time of track selection on a background thread instead. As a side effect, we can also remove the context parameter from the Builder. Having the Context in the Builder is also a bad sign in the first place because it implies the potentially blocking calls can happen. PiperOrigin-RevId: 720523139