Hey everybody what's going on this is Kayla with slopes dot com.
And in this video we're going to go ahead and import replay kit from Apple.
We're going to go ahead and create an instance of our peace screen recorder which is what we're going
to use for replay kit.
And we're also going to explore the replay capabilities by checking out the Apple documentation.
So go ahead and pull open your project from before.
And we're going to close that assistant editor and go into The View Controller file and I'm going to
get rid of that whitespace there that we do not need.
And now all we need to do is simply go down below you like it there and simply type import replace it.
That's it.
That's really really cool it's easy to access.
And now like I said we need an instance of P screen recorder.
So go down below your IP outlets and create a variable var and we're just going to call this recorder
equals Arpey screen recorder.
And in order to actually access that we need to call datt shared which returns and apse instance of
the shared screen recorder.
OK.
So go ahead and just click that.
And now we have an instance of our peace screen recorder.
Very very cool stuff.
Now if I were to go into a function or something and I wanted to say hey recorder start recording that's
all I have to do to call it.
Now we're going to handle it later and you know talk about what needs to happen but we can do the same
thing for stop recording.
We could handle what what comes back.
OK.
Stop recording their returns and Arpey preview view controller which we'll talk about later as well
as an optional error.
So there's lots of cool stuff we can do to call this recorder and make it do different things and to
show you what's possible.
I wanted to show you the apple documentation here on replay kit which as you can see it allows you to
record or stream video from the screen and audio from the app and microphone.
So we can do all that cool stuff simply by using replay kit.
Now it does say Stream we'll talk about that later but for now let's go ahead and just take a look through
here.
So first of all so first of all we have a Arpey screen recorder that is the main thing for replay sharing.
And it also gets presented in an RPG preview view controller which we'll talk about later basically
after we record our screen recording it's going to pop up in an R.P. preview View Controller.
Now we can also do all kinds of processing when you are streaming your replay kit streams.
Now we'll talk like I said we'll talk about those streams for live broadcast implementation.
You can go ahead and display a particular user interface when you're live streaming but like it says
users have to choose a broadcast service and we're not actually going to be talking about live broadcast
streaming in this Target topic simply because it goes beyond the scope of Intro to replay kit replay
kit as for recording the screen and also utilizing the app audio and microphone to create a single cohesive
video the live broadcasting part is definitely an extension because you have to hook up to third party
services and do a bunch of extra work to get the live streaming working.
Now of course it has errors and that there are also some replay constants that you might need to know
for using broadcasting.
But essentially we're going to be using our prescreen recorder and RPE preview controller.
So that is what you need to know.
It's going to allow us to record videos using our screen using our microphone and audio from our application.
We will then be able to email a message airdrop or even save videos to our camera roll replay.
It is truly incredible and I'm really really excited to teach you how to use it.
So in the next video we're going to start writing some more code to continue building out this app getting
closer and closer to saving videos using replay kit.
I'll see you there.