Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vision OS Support? #96

Open
jparismorgan opened this issue Jun 3, 2024 · 0 comments
Open

Vision OS Support? #96

jparismorgan opened this issue Jun 3, 2024 · 0 comments

Comments

@jparismorgan
Copy link

Hi there, when I try to use this on Vision OS I get 'copyCGImage(at:actualTime:)' is unavailable in visionOS coming from this code:

#if !os(macOS)
    var currentImage: UIImage? {
        guard
            let playerItem = currentItem,
            let cgImage = try? AVAssetImageGenerator(asset: playerItem.asset).copyCGImage(at: currentTime(), actualTime: nil)
            else { return nil }

        return UIImage(cgImage: cgImage)
    }
    #else

Could be nice to add support for it, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant