native_picture_in_picture 1.0.1 copy "native_picture_in_picture: ^1.0.1" to clipboard
native_picture_in_picture: ^1.0.1 copied to clipboard

A Flutter plugin for native Picture-in-Picture (PiP) on Android and iOS. Uses ExoPlayer and AVKit for smooth, reliable PiP with full lifecycle events and auto-PiP support.

1.0.1 #

  • Added screenshots to the README.

1.0.0 #

  • Initial stable release.
  • Native Picture-in-Picture for Android (API 26+) and iOS (14+).
  • Android implementation uses ExoPlayer with a full-screen SurfaceView overlay.
  • iOS implementation uses AVKit with AVPictureInPictureController.
  • Auto-PiP on iOS when the user swipes home.
  • Manual PiP on Android via startPiP() and onUserLeaveHint.
  • Full playback sync API: seekTo, getPosition, play, pause.
  • Lifecycle event stream: willStart, didStart, willStop, didStop, restoreUI.
  • Seamless UI restoration with correct video position after PiP ends.
  • No double audio on startup, during PiP, or on restore.
9
likes
160
points
182
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for native Picture-in-Picture (PiP) on Android and iOS. Uses ExoPlayer and AVKit for smooth, reliable PiP with full lifecycle events and auto-PiP support.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on native_picture_in_picture

Packages that implement native_picture_in_picture