@Override
                        public void onReceive(Context context, Intent intent) {
                            if (intent == null
                                    || !ACTION_MEDIA_CONTROL.equals(intent.getAction())) {
                                return;
                            }

                            // This is where we are called mBack from Picture-in-Picture action
                            // items.
                            final int controlType = intent.getIntExtra(EXTRA_CONTROL_TYPE, 0);
                            switch (controlType) {
                                case CONTROL_TYPE_PLAY:
                                    mVideoView.start();
                                    break;
                                case CONTROL_TYPE_PAUSE:
                                    mVideoView.pause();
                                    break;
                                case CONTROL_TYPE_REPLAY:
                                    mVideoView.replay(true);
                                    break;
                            }
                        }
Update the state of pause/resume action item in Picture-in-Picture mode.

@param iconId      The icon to be used.
@param title       The title text.
@param controlType The type of the action. either {@link #CONTROL_TYPE_PLAY} or {@link
                   #CONTROL_TYPE_PAUSE}.
@param requestCode The request code for the {@link PendingIntent}.
dkplayer-sample/src/main/java/xyz/doikki/dkplayer/activity/pip/AndroidOPiPActivity.java