
This utility helps apps to forward to another Player while overriding selected behavior or state values. The advantage to a ForwardingPlayer is that the SimpleBasePlayer base class keeps ensuring correctness, listener handling etc. The default forwarding logic tries to stay as close as possible to the original method calls, even if not strictly required by the Player interface (e.g. calling single item addMediaItem instead of addMediaItems if only one item is added). Issue: androidx/media#1183 PiperOrigin-RevId: 650155924