From the course: Learning Apple tvOS App Development
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
A video background
- [Instructor] After a lot of preparations, we have finally reached a point where we can write code, and we're going to start with the video background for the Your Location tab in our Application. And to get started, please open up the Your Location View Controller in our project, and we need to import here a set of classes that is going to be responsible for media playback, which is called, AVFoundation, and this gives us, for example, AVPlayerLayer. We're going to use these classes to define some properties here, right below our outlets for the User Interface components. And the first property is going to be an AVPlayer, which is off the type AVPlayer. And the AVPlayer is a controller object used to manage the playback and timing of a media asset. And we're going to use another AVPlayerLayer object here as a property, which is an AVPlayerLayer. And AVPlayerLayer is a subclass of CA Layer, to which an AVPlayer object can direct it's visual output, and this is what we're going to use…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Demo API and some helpers3m 29s
-
(Locked)
A video background11m 8s
-
(Locked)
Set up location services8m 36s
-
(Locked)
Handle location updates4m 42s
-
(Locked)
Get weather data for the user's location6m 23s
-
(Locked)
Update the UI with weather data6m 30s
-
(Locked)
Forecast for more than one day6m 43s
-
(Locked)
Text entry on tvOS: Search for locations6m 34s
-
(Locked)
TableViews on tvOS5m 11s
-
(Locked)
UISplitViewController in action7m 23s
-
(Locked)
-
-
-