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

A video background

From the course: Learning Apple tvOS App Development

Start my 1-month free trial

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…

Contents