![]() ![]() ![]() #Shareplay on mac macIn a first attempt of creating a tutorial, where I created first an iOS app and added a Mac target afterwads, I got the following error as soon I tried to send some data: Add now for both targets the Group Activities capability by selecting each target, clicking on +Capability on the top left corner, searching for Group Activities and selecting it. Let’s start by selecting the project on the left side in the navigator where you should see two targets - SharePlayTutorial (iOS) and SharePlayTutorial (macOS). For copy-paste reasons I recommend to use the same naming as a first step. #Shareplay on mac freefeel free to use a different naming and to extend/adapt the project at any time as you would like to. This tutorial will be kept as simple as possible, to make it easily understandable - therefore, a generic naming of “SharePlay” will be used for the project, models, etc. #Shareplay on mac downloadDownload the initial tutorial project: Direct or on Github.Since this a cross-platform tutorial, I recommend the following setup, but in general it should also work if you use one of the following devices twice.Īdditionally you should also download an initial project which already covers the UI and game logic part for you as we won’t go into detail about that: Preconditionsįor testing the SharePlay functionality you need two physical devices because FaceTime is needed. Even though the overall usage of the Group Activities API is well set up and easy to use, it can still happen to get stuck at some points, therefore, we go through the setup step-by-step in this tutorial and sum up possible problems and solutions at the end of this post.įinal SharePlay demo application. In this tutorial we will especially focus on the last part and create a small simple tug of war game to showcase the functionality of SharePlay in a fun way. In general you can use the Group Activities API to easily share video and audio, but also custom data with each other. Recently, iOS 15.1 and the macOS 12.1 Beta were released, which both come with the functionality of SharePlay - a new way to share experiences of your app right inside FaceTime. Problems & Solutions - Decoding Error - Capability Error.In this tutorial you will extend a small game to learn how you can use SharePlay for your apps. If it's a streaming app like TikTok that automatically plays, tap the screen-sharing icon at the top and choose "Play for Everyone.SharePlay Tutorial - Share custom data between iOS and MacOS The other person will be invited to "Join SharePlay" to access the content. If you get a banner at the top of your device saying "Choose Content to Use SharePlay," choose your content and tap play. You'll know this is the case if it doesn't play for the other party or if they're prompted to sign up. Note: Some apps with a subscription plan require everyone to have an account in order to access the content. SharePlay works with Apple Fitness+, Apple Music, Apple TV+, NBA, Paramount+, SHOWTIME, TikTok, Twitch, and many others. From the home screen, open up the app that you want to share. With the other person still on the call, go back to your home screen by swiping up from the bottom of the screen for an iPhone or iPad with FaceID, or by pressing the home button for the older versions of the iPhone or iPad. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |