What i need to do is detect if user drag down the PIP window (drag down to dismiss).
When I do so, the onPictureInPictureModeChanged
method is called
but how can i detect the dismiss specifically?
Whenever user drag to dismiss the PIP window onStop() is called.
just add these lines.
@Override
protected void onStop() {
//your code here
player.release();
super.onStop();
Log.v(TAG, "onStop()...");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With