Skip to content

v1.6.5 — iOS PiP keeps playing after its screen closes, opens from fullscreen on the first tap

Choose a tag to compare

@DaniKemper010 DaniKemper010 released this 15 Oct 13:59
· 104 commits to master since this release
2d359ea

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.