native_picture_in_picture 1.0.1
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()andonUserLeaveHint. - 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.