Have a look at the TVInterfaceCreating protocol.
Haven't tested this code, but it should more or less do it. You can get the image from TVML by using resource://<name> as the image URL.
class ExtendedInterfaceCreator: NSObject, TVInterfaceCreating {
func resourceImage(name resourceName: String) -> UIImage? {
return UIImage(systemName: resourceName)
}
}
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
...
TVInterfaceFactory.shared().extendedInterfaceCreator = ExtendedInterfaceCreator()
...
}
}
Post
Replies
Boosts
Views
Activity
I noticed that TVApplicationControllerContext has a new supportsPictureInPicturePlayback - https://developer.apple.com/documentation/tvmlkit/tvapplicationcontrollercontext/3192087-supportspictureinpictureplayback property.
Did you look into that yet?
I just tried setting the property, but not much seems to happen. Not getting any PiP when minimizing the app with the JS player.