Slides: bit.ly/apple-tv-dev-kit
Apple TV
Developer Kit
@BradBroulik | BradBroulik@gmail.com
BradBroulik.blogspot.com
Code: github.com/BradBroulik/TVMLMovies
Slide 2
Slide 2 text
2
Getting Started
1) Architecture
2) Technology stack
3) Creating TV apps
Slide 3
Slide 3 text
3
TVMLKit App Architecture
https://developer.apple.com/library/prerelease/tvos/documentation/General/Conceptual/AppleTV_PG/YourFirstAppleTVApp.html
Apple TV
TVMLKit
App
JavaScript
TVML
Data
Server
Slide 4
Slide 4 text
4
Native App Architecture
Apple TV
Native
tvOS
App
NOTE: You may build tvOS apps with native-only
technologies and frameworks like Xcode, Swift, UIKit,
Storyboards, AutoLayout, etc.
Slide 5
Slide 5 text
5
TVMLKit Technology Stack
10%
30%
60%
TVML JavaScript Swift
Slide 6
Slide 6 text
6
1) Xcode 7.1 (or later)
2) Apple TV Developer Kit with tvOS 9.0 or later
Requirements
Slide 7
Slide 7 text
7
TIP: If your local server does not support SSL you must
add a new App Transport Security Setting to Xcode’s
info.plist to allow non-SSL connections. SSL is the
default in iOS/tvOS 9.0 or later.
AppDelegate Gist
Let’s Create an App
I. Getting started instructions
a. Create tvOS app in Xcode
b. Create server-side JavaScript application
c. Run the app
Slide 8
Slide 8 text
8
Swift
Apple TV
AppDelegate.swift
TVMLKit App
JavaScript
TVML
Data
Server
The app life cycle begins with the app delegate.
Here you setup the TVApplicationController
and pass control to the main JavaScript file.
Slide 9
Slide 9 text
9
https://developer.apple.com/library/prerelease/tvos/documentation/TVMLJS/Reference/TVJSFrameworkReference/index.html
TVJS
application.js
ResourceLoader.js
Presenter.js
Apple TV
TVMLKit App
JavaScript
The entry point for the application and handles
the loading of the required JavaScript files. The
App.onLaunch callback is invoked on app startup.
Handles select events and presents
documents on the UI.
Handles the loading of resources
from the network.
Slide 10
Slide 10 text
10
TVML
NOTE: TVML templates may be generated via JavaScript
or a server-side driven template engine.
Apple TV
TVMLKit
App
JavaScript
movies.tvml
actors.tvml
TVML
Data
Server
https://developer.apple.com/library/prerelease/tvos/documentation/LanguagesUtilities/Conceptual/ATV_Template_Guide/index.html
Slide 11
Slide 11 text
11
TVML
catalogTemplage
Banner
List items
List item
content
Slide 12
Slide 12 text
12
Movie Finder
Slide 13
Slide 13 text
13
Apple TV Resources
Apple’s tvOS documentation
Apple’s TVML Catalog App
Apple’s TVMLKit developer forums
Apple’s tvOS SDK developer forums