Writing apps for the Apple TV 2G
My company (a mobile dev house) has a number of HD TVs that we purchased some Apple TV 2Gs for (which are jailbroken). We use them to display slideshows of products, information, etc, as well as video playback.
Since we develop iOS apps as part of our business I'd really like to have a go at writing something for the Apple TV to use on our internal monitors. What I don't have is any idea of where to start - for obvious reasons the majority of our work is writing apps for app store distribution, so developing software for jailbroken iOS is new to me.
Also, the majority of resources out there are for developing jailbroken apps are for iPad/iPhone devices - I guess not many people are interested in writing apps for the ATV2, probably because not many jailbroken ATVs are out in the wild. Does anyone have any good starting points for me to begin w开发者_StackOverflow中文版ith - an experienced iOS developer wanting to look into writing apps for jailbroken devices, especially the Apple TV? More in terms of general approach.
To develops 'apps' for Apple TV2, you will need to build them in a frappliance. It can be done with a Xcode template. Download your helloWorld template here or direct from Bile’s github (new version) : https://github.com/lechium/HelloWorld_ATVBlack/downloads Xcode is line by line explained in : http://greenpois0n.com/2011/04/16/27/
Another HelloWorld base can be found here https://github.com/b0bben/Plex-ATV-Plugin (Base for Plex created by b0bboen)
A more recent HelloWorld from Michael Gile can be found here https://github.com/mgile/atvHelloWorld
Or just another one here : https://github.com/lzell/AppleTVProjectTemplate
I also tried to create some simple frappliances here : http://imho.nu/Home/
Good luck developing
Gr. MACasuba
Maybe the source for the Apple TV client for Plex can help with example code:
Plex ATV plugin
(More info on usage, not development though, in the Plex wiki)
According to this report, you can actually install normal iOS apps on your AppleTV. Here's what I would do:
- Begin creating a normal iOS app (maybe some kind of hello, world app)
- Try to install it on the Apple TV
- If it works, then you can manipulate your views in XCode to look right on the ATV.
NitoTV (first JB app developer for ATV 2 has a hello world starting app, the source is on the internet. http://forums.macrumors.com/showthread.php?t=1035345
As you know, writting apps for the Apple TV is not currently alowed by Apple. But, the iPad and current iPhones/iPods have a TV output so you can develop special app and use them instead.
With the iPad 2 (and iPhone 5) you will also have the TV output for every app (in screen copy) so you can also use that. And this will be easier and more documented than trying to develop on a jaibroken non suported device.
精彩评论