1
00:00:07,170 --> 00:00:10,520
Hey everybody what's going on this is Kayla with slopes dot com.

2
00:00:10,530 --> 00:00:15,870
And in this video we're going to go ahead and import replay kit from Apple.

3
00:00:15,870 --> 00:00:20,070
We're going to go ahead and create an instance of our peace screen recorder which is what we're going

4
00:00:20,070 --> 00:00:22,110
to use for replay kit.

5
00:00:22,410 --> 00:00:27,210
And we're also going to explore the replay capabilities by checking out the Apple documentation.

6
00:00:27,210 --> 00:00:30,410
So go ahead and pull open your project from before.

7
00:00:30,720 --> 00:00:35,940
And we're going to close that assistant editor and go into The View Controller file and I'm going to

8
00:00:35,940 --> 00:00:38,700
get rid of that whitespace there that we do not need.

9
00:00:38,760 --> 00:00:46,450
And now all we need to do is simply go down below you like it there and simply type import replace it.

10
00:00:46,800 --> 00:00:47,550
That's it.

11
00:00:47,550 --> 00:00:49,710
That's really really cool it's easy to access.

12
00:00:49,840 --> 00:00:53,760
And now like I said we need an instance of P screen recorder.

13
00:00:53,760 --> 00:01:01,980
So go down below your IP outlets and create a variable var and we're just going to call this recorder

14
00:01:03,360 --> 00:01:05,960
equals Arpey screen recorder.

15
00:01:05,970 --> 00:01:12,300
And in order to actually access that we need to call datt shared which returns and apse instance of

16
00:01:12,300 --> 00:01:13,780
the shared screen recorder.

17
00:01:13,780 --> 00:01:14,330
OK.

18
00:01:14,490 --> 00:01:16,230
So go ahead and just click that.

19
00:01:16,350 --> 00:01:19,960
And now we have an instance of our peace screen recorder.

20
00:01:19,980 --> 00:01:21,560
Very very cool stuff.

21
00:01:21,570 --> 00:01:28,500
Now if I were to go into a function or something and I wanted to say hey recorder start recording that's

22
00:01:28,500 --> 00:01:29,550
all I have to do to call it.

23
00:01:29,550 --> 00:01:34,170
Now we're going to handle it later and you know talk about what needs to happen but we can do the same

24
00:01:34,170 --> 00:01:36,380
thing for stop recording.

25
00:01:36,870 --> 00:01:39,150
We could handle what what comes back.

26
00:01:39,150 --> 00:01:39,620
OK.

27
00:01:39,720 --> 00:01:44,280
Stop recording their returns and Arpey preview view controller which we'll talk about later as well

28
00:01:44,280 --> 00:01:45,510
as an optional error.

29
00:01:45,870 --> 00:01:51,450
So there's lots of cool stuff we can do to call this recorder and make it do different things and to

30
00:01:51,450 --> 00:01:52,590
show you what's possible.

31
00:01:52,590 --> 00:01:58,530
I wanted to show you the apple documentation here on replay kit which as you can see it allows you to

32
00:01:58,530 --> 00:02:04,520
record or stream video from the screen and audio from the app and microphone.

33
00:02:05,040 --> 00:02:09,470
So we can do all that cool stuff simply by using replay kit.

34
00:02:09,480 --> 00:02:14,070
Now it does say Stream we'll talk about that later but for now let's go ahead and just take a look through

35
00:02:14,070 --> 00:02:14,760
here.

36
00:02:14,790 --> 00:02:22,330
So first of all so first of all we have a Arpey screen recorder that is the main thing for replay sharing.

37
00:02:22,780 --> 00:02:28,600
And it also gets presented in an RPG preview view controller which we'll talk about later basically

38
00:02:28,900 --> 00:02:33,820
after we record our screen recording it's going to pop up in an R.P. preview View Controller.

39
00:02:33,820 --> 00:02:40,090
Now we can also do all kinds of processing when you are streaming your replay kit streams.

40
00:02:40,090 --> 00:02:45,740
Now we'll talk like I said we'll talk about those streams for live broadcast implementation.

41
00:02:45,910 --> 00:02:52,720
You can go ahead and display a particular user interface when you're live streaming but like it says

42
00:02:53,080 --> 00:02:59,020
users have to choose a broadcast service and we're not actually going to be talking about live broadcast

43
00:02:59,020 --> 00:03:05,020
streaming in this Target topic simply because it goes beyond the scope of Intro to replay kit replay

44
00:03:05,020 --> 00:03:11,380
kit as for recording the screen and also utilizing the app audio and microphone to create a single cohesive

45
00:03:11,380 --> 00:03:17,680
video the live broadcasting part is definitely an extension because you have to hook up to third party

46
00:03:17,680 --> 00:03:21,910
services and do a bunch of extra work to get the live streaming working.

47
00:03:21,910 --> 00:03:26,590
Now of course it has errors and that there are also some replay constants that you might need to know

48
00:03:26,620 --> 00:03:28,510
for using broadcasting.

49
00:03:28,510 --> 00:03:33,710
But essentially we're going to be using our prescreen recorder and RPE preview controller.

50
00:03:33,880 --> 00:03:35,700
So that is what you need to know.

51
00:03:35,770 --> 00:03:42,470
It's going to allow us to record videos using our screen using our microphone and audio from our application.

52
00:03:42,490 --> 00:03:48,780
We will then be able to email a message airdrop or even save videos to our camera roll replay.

53
00:03:48,790 --> 00:03:52,950
It is truly incredible and I'm really really excited to teach you how to use it.

54
00:03:52,960 --> 00:03:57,940
So in the next video we're going to start writing some more code to continue building out this app getting

55
00:03:57,940 --> 00:04:01,300
closer and closer to saving videos using replay kit.

56
00:04:01,300 --> 00:04:02,310
I'll see you there.
