You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v1.6.5 — iOS PiP keeps playing after its screen closes, opens from fullscreen on the first tap
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
iOS: PiP keeps playing after its screen closes. Disposing the platform
view released the native view that owns the PiP controller (and is its
delegate), and its deinit stopped PiP: the window disappeared while the
player played on without a view. A view whose PiP window is open is now kept
until the window closes. Closing it (X, or "back to app" without a screen to
return to) pauses the player; when the screen was opened again, playback
goes on there. Disposing the controller also closes the window.
iOS: enterPictureInPicture() right after exitFullScreen() opens PiP.
With a custom overlay, fullscreen is a Flutter route with its own platform
view. exitFullScreen() only starts that route's pop, and until its fade-out
ends the fullscreen view stays the primary view. The PiP request went to that
view and ended when the view was disposed, so the first tap only closed
fullscreen and a second tap was needed. The request now waits (at most a
second) for the fullscreen view to go and starts PiP on the inline view.