Add Player.replaceMediaItem(s)
This methods allows to replace single items or a range of items directly without using separate operations for add and remove. The advantage is more readable code for apps and the potential for player implementations to optimize this process (e.g. only replace values without interrupting playback). The current change just introduces the API with its default behavior. The default logic will be removed again in the future in favor of better logic in the Player implementations. Issue: google/ExoPlayer#8046 PiperOrigin-RevId: 532151471 (cherry picked from commit 7289186c937245a4f328f4c9b6e9cda34129306a)
Showing
with
59 additions
and
0 deletions
Please
register
or
sign in
to comment