Reload WebViewController on iOS only

This commit is contained in:
Tommy Chow 2022-08-06 19:32:21 -04:00
parent cc7862f9b2
commit 22bfd813df

View file

@ -287,7 +287,7 @@ abstract class VideoStoreBase with Store {
void dispose() {
// Not ideal, but seems like the only way of disposing of the video properly.
// Will both prevent the video from continuing to play when dismissed and closes PiP on iOS.
controller?.reload();
if (Platform.isIOS) controller?.reload();
_disposeOverlayReaction();
floating.dispose();