Wayaer / fl_pip

flutter picture-in-picture plugin for ios and android
MIT License
27 stars 14 forks source link

Cannot build ios app #26

Open andynvt opened 1 month ago

andynvt commented 1 month ago

I cannot build ios app

fl_pip: ^2.0.0 Flutter 3.13.9

Example code:

import fl_pip
import Flutter
import UIKit

@main
@objc class AppDelegate: FlFlutterAppDelegate {
    override func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
    ) -> Bool {
        GeneratedPluginRegistrant.register(with: self)
        return super.application(application, didFinishLaunchingWithOptions: launchOptions)
    }

    override func registerPlugin(_ registry: FlutterPluginRegistry) {
        GeneratedPluginRegistrant.register(with: registry)
    }
}

ScreenShot 2024-10-02 at 22 17 40

Wayaer commented 1 month ago

Update version to 3.24+

andynvt commented 1 month ago

Update version to 3.24+

thank. upgraded works. But I face the issue: when I swipe up to set the app in background mode. The media_kit video player stop playing

orz12 commented 1 week ago

Update version to 3.24+

thank. upgraded works. But I face the issue: when I swipe up to set the app in background mode. The media_kit video player stop playing

iOS stops app using GPU in background

ismail-go commented 1 day ago

Did you find any solution for this problem @orz12 ? I have same problem. When i launch the device native camera app the pip window turns the black screen.