Set Player separately in AdsLoader interface.
Passing the player through MediaSource.prepare is only needed for the AdsLoader and complicates other usages of MediaSource. Providing the player directly to the AdsLoader is also in line with the usage pattern of PlayerView and other components. Also rename methods to start/stop to better reflect their usage. PiperOrigin-RevId: 227682112
Showing
with
85 additions
and
46 deletions
Please
register
or
sign in
to comment