047fe21c14
DefaultControlDispatcher was removed in ExoPlayer 2.16.0, so the class extending it that handled play/pause was removed in #8020. The new solution is to use an instance of ForwardingPlayer. Call sessionConnector.setPlayer with an instance of ForwardingPlayer that overrides play() and pause() and calls the callback methods. |
||
---|---|---|
.. | ||
event | ||
helper | ||
listeners/view | ||
mediaitem | ||
mediasession | ||
mediasource | ||
playback | ||
playqueue | ||
resolver | ||
seekbarpreview | ||
AudioServiceLeakFix.java | ||
MainPlayer.java | ||
NotificationConstants.java | ||
NotificationUtil.java | ||
Player.java | ||
PlayerServiceBinder.java | ||
PlayerState.java | ||
PlayQueueActivity.java |