Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要做的是检测用户是否向下拖动 PIP 窗口(向下拖动以关闭)。当我这样做时,该onPictureInPictureModeChanged方法被调用
onPictureInPictureModeChanged
但我怎样才能具体检测解雇?
每当用户拖动以关闭 PIP 窗口时,都会调用 onStop()。
只需添加这些行。
@Override protected void onStop() { //your code here player.release(); super.onStop(); Log.v(TAG, "onStop()..."); }