kingslay / KSPlayer

A video player for iOS、macOS、tvOS、visionOS , based on AVPlayer and FFmpeg, support the horizontal, vertical screen. support adjust volume, brightness and seek by slide, support subtitles.
GNU General Public License v3.0
887 stars 184 forks source link

visionOS compliance #648

Closed nightfall708 closed 7 months ago

nightfall708 commented 8 months ago

Hi,

So while supporting directly UI for visionOS is one thing, we should be able to just compile the raw player component for visionOS. right now there are multiple errors, some of which are:

'UIScreen' is unavailable in visionOS (PlayerDefines.swift) 'MTKView' is unavailable in visionOS (MetalPlayerView.swift) Cannot find type 'PlayerViewFullScreenDelegate' in scope (because it is not compiled for visionOS)

and more. To reveal all error you need to compile for a native visionOS target.

kingslay commented 8 months ago

你是用最新的代码吗?MTKView这个问题已经改了。

kingslay commented 8 months ago

我之前是有专门修复过visionOS编译的问题,visionOS是可以运行的。但是现在Xcode 15.1 不支持intel的mac。所以我现在无法验证visionOS是否可以运行

nightfall708 commented 8 months ago

Yes this is different this time, you have to have an Apple based Mac to compile native visionOS binary. Maybe start a "gofundme" to raise money for a new Mac?

nightfall708 commented 8 months ago

I've sent you an email