Use Apple's AVPlayerView UI instead of custom UI
I thought I put in a ticket for this about a year ago, but haven't seen it.
Is it possible to use Apple's AVPlayerView UI instead of a custom overlay?
Apple's UI seems more solid and consistent.
Most of my live streams can use AVPlayerView. But recorded stream use KSPlayer but doing so gives a mixed UI across my streaming video applications so I am hesitant to have KSPlayer for 1 thing and AVPlayerView for another. This has forced me to use KSPlayer across my entire AppleTV app and because there is a such a contrast, I only use live channels on my macOS and iOS apps using AVPlayerView and I don't use KSPlayer on those.
Let me know if this is possible or if there will be an update to KSPlayer to allow this. Ton AppleTV, KSPlayer's overlay GUI with the giant slider that updates late when seeking is the most atrocious thing. I'd rather have Apple's UI across tvOS, macOS and iOS.
you can use KSVideoPlayer. KSVideoPlayer is written in swiftui. Then the goal of KSVideoPlayer is that the ui is the same as the AVPlayerView ui. There may still be some partial inconsistencies. you can modify it together
Nothing compares to Apple's UI that is native on all its platforms l, not to mention is accessible to the visually impaired where I have quite a few customers in that realm.
I'm sorry but without this support, I am removing KSPlayer from my tvOS app and will implement Apple's native UI across tvOS, macOS and iOS/iPadOS. I really didn't want to do this but already making good progress on it.
很抱歉不能帮到你。是的,AVPlayerView的UI的是很好的。但是AVPlayerView无法把播放内核切换成FFmpeg。所以只能自己用KSPlayerLayer来实现一个类似AVPlayerView的UI界面。这部分的工作量比较大,需要有人来一起贡献这个代码。我目前主要工作还是集中在播放器内核里面。
AVPlayerView is only macos. ios and tvos not have AVPlayerView
The both have equivalents in Apple's ecosystem. It's all really AVPlayer under the covers.
Don't worry about it, I already discontinued KSPlayer's use in iOS and macOS and will be removing it from tvOS in an upcoming update.
Thanks for making it, I just am going to go another route to make it stream natively and do the transcoding further up the food chain.