Pass Handler together with Runnable callbacks for playlist commands.
We currently either use the app thread returned by the player or the thread the commands are called on depending on whether the media source is already prepared or not. This change lets the application decide which callback thread to use. As a side effect, we also don't longer need access the player instance passed to MediaSource.prepare. PiperOrigin-RevId: 227871111
Showing
with
208 additions
and
136 deletions
Please
register
or
sign in
to comment