![]() ![]() Now what do we do when we update our recordingState. All we're simply going to do is we're gonna go ahead and update our recordingState. Now if we don't have an error then we're properly recording and everything is started up just fine. So the first thing you want to do because we're gonna give back an error is you want to see if we have an error. After that this entire block is going to be executed right here. From there we're gonna go ahead and call startRecording. The first thing you want to do is you want to go ahead and call RPScreenRecorder and get the sharedRecorder instance. So here is our IBAction and we're going to look at the method start recording. ![]() So let's go ahead and take a look at what happens when we start recording. This button is going to start recording for us. This button is going to stop recording if we're not actively recording. Were actually going have the button pull double duty for us if we're actively recording. Now we're gonna do two different types of things with this button. So here in our code the IBAction is right here for recordButtonTapped button tapped. What we're going to look at now is the IBAction for what happens when someone presses this button. So this button is already hooked up to our code via IBOutlets and through the storyboard. We're only going to focus on it start recording button right now that you see right here on our storyboard. So the main story board we have three buttons that are going to indicate the different functionalities that we're going to express and build out throughout this demo. So here I want to talk a little bit about our project first. Why don't we jump in and see how we can start in app recording in a project. You then present the preview view controller which allows people to edit save or share that movie file. When your application calls stopRecording replay kit saves the recording calls a preview and share extension and passes that information backup through RPPreviewViewController. ![]() With the shared instance you can start Recording at which point the Replay Kit will start to capture the screen audio and microphone samples from your application and start writing those samples into a movie file. Your application will call into RPSScreenRecorder to get the sharedRecorder singleton instance. How does screen recording work under the hood. Screen recording gives you the ability to record your application screen audio and microphone into a video that people can then edit save or share. So let's take a look at the major ReplayKit features in the mac and I'll start with screen recording. Now as you can imagine applications work quite differently on the mac when compared to iOS or tvOS. The main goal in bringing ReplayKit to the mac was to ensure that you have access to all the great features that we're already shipping with iOS and tvOS.Īlong with the same HD quality low performance impact and built in privacy safeguards. You can now record capture and broadcast your mac application to everyone in the world. All the great features that are available to your iOS and tvOS applications will now be made available for your mac applications. This year I'm pleased to announce ReplayKit is coming to the Mac. ReplayKit originally launched for iOS in 2015 and in 2016 ReplayKit for tvOS was introduced. ReplayKit also gives you the ability to broadcast your application screen audio and microphone to other third party broadcast services to be viewed all over the world. Replay kit is a framework that gives you the ability to record or capture your application's screen audio and microphone content to a video that people can edit save and share. ![]() Today I'm really excited to talk to you about ReplayKit on the mac platform as well as some new exciting features for all platforms. My name is Johnny Trenh and I'm a software engineer on the ReplayKit team. Hello and welcome to the ReplayKit for macOS Session. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |