apple-tv

Use iPhone as a game controller in a tvOS app?

为君一笑 提交于 2019-11-28 17:34:57
问题 During the Apple TV announcement, the developers of Crossy Road demonstrated using an iPhone as a 2nd controller for an Apple tv game: http://www.macrumors.com/2015/09/09/cooperative-play-for-crossy-road/ My first thought was to implement this using the Multipeer Connectivity Framework. However, it's not supported on tvOS. Is there a good way to connect an iPhone to an Apple TV without Multipeer Connectivity? Update: It doesn't appear that I can use GameKit because GKPeerPickerController has

How to extend iOS app to tvOS

人走茶凉 提交于 2019-11-28 15:52:37
I have an iOS app that I need to extend to tvOS. All the information that I found are explaining how to start from scratch! Is there any way to extend my app to tvOS or I should start a new project with it? Update1: My question is: How to extend my existing project to support tvOS without building it from scratch? Update2: Jess Bower point on Apple's website: Empower customers to enjoy their favorite apps on both iOS and the new Apple TV with a single purchase by enabling universal purchase for your app on the App Store. Which means that we need to create a new bundle on our existing project

AVPlayer with playback controls of avplayerviewcontroller

橙三吉。 提交于 2019-11-28 09:56:18
I am putting n avplayer inside of a view controller to customize some other elements of the view controller but I still want the playback and scrubbing controls used in AVPlayerViewController. Is there a way to enable these controls for the Avplayer when I am not using AvPlayerViewcontroller? No. The usual solution (explicitly advised by Apple) is to use the AVPlayerViewController as an embedded view controller - i.e., make your view controller a custom parent view controller and the AVPlayerViewController its child, and now you can place its view (the movie and the controls) inside your view

Display one thing on iPad and another on Apple Tv?

久未见 提交于 2019-11-27 12:33:14
问题 I have an app idea, but I'm not sure if it's possible. I was wondering if I'm able to display one thing on the iPad ( or iPhone ) screen, and something totally different on the Apple Tv at the same time. For example, a quiz app, where the question is displayed on the Apple Tv, and the multiple choices are listed on the iPad for the user to pick. I'm not sure if this is possible or if you can only Mirror the iPad screen onto the Apple Tv. If there is some "Proof of Concept" example code, I'd

Can I mix UIKit and TVMLKit within one app?

左心房为你撑大大i 提交于 2019-11-27 11:50:40
I'm exploring tvOS and I found that Apple offers nice set of templates written using TVML . I'd like to know if a tvOS app that utilises TVML templates can also use UIKit . Can I mix UIKit and TVMLKit within one app? I found a thread on Apple Developer Forum but it does not fully answer this question and I am going through documentation to find an answer. Yes, you can. Displaying TVML templates requires you to use an object that controls the JavaScript Context: TVApplicationController . var appController: TVApplicationController? This object has a UINavigationController property associated

How to extend iOS app to tvOS

狂风中的少年 提交于 2019-11-27 09:24:51
问题 I have an iOS app that I need to extend to tvOS. All the information that I found are explaining how to start from scratch! Is there any way to extend my app to tvOS or I should start a new project with it? Update1: My question is: How to extend my existing project to support tvOS without building it from scratch? Update2: Jess Bower point on Apple's website: Empower customers to enjoy their favorite apps on both iOS and the new Apple TV with a single purchase by enabling universal purchase

Web app in tvOS

徘徊边缘 提交于 2019-11-26 20:26:36
Apple has released it's SDK for apple tv yesterday. Most apps for TVs are web based (html, javascript and css) and I would like to port an existing tv web app to the tvOS. The SDK in Xcode shows no Webview implementation like in iOS for creating apps based in html, javascript and css, however, according to the docs, it is possible to use javascript using tvjs framework , but instead of html, apple has it's own markup language for TVs called TVML . My question is: Is it possible to port an existing web app to tvOS (how?), or does it need to be reimplemented from scratch? Thanks for your help.