First of all, thank you for the awesome package! Best implementation of PiP for Flutter/Android I've seen so far.
One issue I came across was there isn't a way to globally disable autoEnter (setAutoEnterEnabled). This meant that once I called setAutoPipMode, auto PiP would be enabled for the rest of the app's lifetime. As a result, the entire app goes into PiP mode from any screen when leaving the app.
In this PR, I've simply modified setAutoPipMode to allow the autoEnter parameter to be passed, just like how it is in enterPipMode. May not be the best solution, but it was the first one I could think of.
First of all, thank you for the awesome package! Best implementation of PiP for Flutter/Android I've seen so far.
One issue I came across was there isn't a way to globally disable
autoEnter
(setAutoEnterEnabled
). This meant that once I calledsetAutoPipMode
, auto PiP would be enabled for the rest of the app's lifetime. As a result, the entire app goes into PiP mode from any screen when leaving the app.In this PR, I've simply modified
setAutoPipMode
to allow theautoEnter
parameter to be passed, just like how it is inenterPipMode
. May not be the best solution, but it was the first one I could think of.