android/media-samples

how can i received callback when pip was closed

haohaozaici opened this issue · 5 comments

when pip window was closed, my app still playing the video. i'm unwilling to stop video when onStop called, because maybe it just restored fullscreen. So i hope receive closed callback, i can really destroy activity and release my MediaPlayer.

don't finish the activity

I need the same callback to finish my activity. I am working with GLSurfaceView and PIP, my game renders in the PIP mode well, but i would like to destroy my resources and finish the game activity on PIP CLOSE. Help appreciated!