adding controls to exit pip or switch to background audio
This commit is contained in:
parent
05595b7b4e
commit
a11a62ede4
@ -406,14 +406,14 @@ public class VideoPlayActivity extends AppCompatActivity {
|
|||||||
registerReceiver(receiver, filter);
|
registerReceiver(receiver, filter);
|
||||||
|
|
||||||
Log.v(TAG,"switched to pip ");
|
Log.v(TAG,"switched to pip ");
|
||||||
floatMode=true;
|
// videoPlayerFragment.useController(false);
|
||||||
} else {
|
} else {
|
||||||
videoPlayerFragment.showControls(true);
|
videoPlayerFragment.showControls(true);
|
||||||
if (receiver != null) {
|
if (receiver != null) {
|
||||||
unregisterReceiver(receiver);
|
unregisterReceiver(receiver);
|
||||||
}
|
}
|
||||||
Log.v(TAG,"switched to normal");
|
Log.v(TAG,"switched to normal");
|
||||||
floatMode=false;
|
// videoPlayerFragment.useController(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user