Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Apple TV Developer Kit

Apple TV Developer Kit

Interested in developing for the Apple TV? Surprisingly, JavaScript (TVJS) and Markup (TVML) are the primary technologies for building Apple TV apps. In this talk, we’ll explore the new Apple TV developer framework from setup to deployment and everything in between.

Brad Broulik

October 18, 2015
Tweet

More Decks by Brad Broulik

Other Decks in Technology

Transcript

  1. 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.
  2. 6 1) Xcode 7.1 (or later) 2) Apple TV Developer

    Kit with tvOS 9.0 or later Requirements
  3. 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
  4. 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.
  5. 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.
  6. 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
  7. 13 Apple TV Resources Apple’s tvOS documentation Apple’s TVML Catalog

    App Apple’s TVMLKit developer forums Apple’s tvOS SDK developer forums