{"id":18553067,"url":"https://github.com/ustwo/replaykitunitybridge","last_synced_at":"2025-04-09T22:32:15.846Z","repository":{"id":54564700,"uuid":"117164453","full_name":"ustwo/ReplayKitUnityBridge","owner":"ustwo","description":"A bridge created from iOS to Unity - exposing the Cocoa ReplayKit API.  It allows you to record the screen, set a limited time for the screen to be recorded, and receive a file of the recorded session","archived":false,"fork":false,"pushed_at":"2018-11-12T22:23:12.000Z","size":16932,"stargazers_count":62,"open_issues_count":6,"forks_count":10,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-24T13:21:21.503Z","etag":null,"topics":["gameplay","objective-c","replay","replaykit","unity","unity3d-plugin","xcode"],"latest_commit_sha":null,"homepage":null,"language":"ASP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ustwo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-11T23:07:26.000Z","updated_at":"2025-02-14T07:54:57.000Z","dependencies_parsed_at":"2022-08-13T19:50:44.305Z","dependency_job_id":null,"html_url":"https://github.com/ustwo/ReplayKitUnityBridge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustwo%2FReplayKitUnityBridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustwo%2FReplayKitUnityBridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustwo%2FReplayKitUnityBridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustwo%2FReplayKitUnityBridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ustwo","download_url":"https://codeload.github.com/ustwo/ReplayKitUnityBridge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123816,"owners_count":21051537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gameplay","objective-c","replay","replaykit","unity","unity3d-plugin","xcode"],"created_at":"2024-11-06T21:15:59.802Z","updated_at":"2025-04-09T22:32:10.832Z","avatar_url":"https://github.com/ustwo.png","language":"ASP","readme":"\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/ustwo/ReplayKitUnityBridge)\n\n\u003cp align=\"center\" \u003e\n\u003cimg src=\"Images/unity_replaykit.png\" title=\"Unity ReplayKit logo\" float=left\u003e\n\u003c/p\u003e\n\n\n## Summary \n\nThis is a Unity plugin for iOS that allows you to record the screen and capture gameplay. It includes the Xcode project that it was built in. To start using it, simply drag the PluginSource folder into your Unity project as a sub-folder in the following directory/file path: Assets \u003e Plugins \u003e iOS \u003e ReplayKitUnity \u003e Drag the source and editor folders into here\n\n\nBlog Post describing the steps to make a bridge: https://medium.com/@SoCohesive/unity-how-to-build-a-bridge-ios-to-unity-with-swift-f23653f6261\n\n## Disclaimer:\n\nThis plugin is a work in progress and has been built to show the steps of creating a Unity iOS plugin using Swift\n\n## Features\n\n- [x] Record Screen\n- [x] Stop recording of screen\n- [x] Recieve video file (.mp4) of recording\n- [x] Set a restricting time to allow for recording the screen\n- [x] A record button and progress bar of your recording playback that is excluded from the screen recording\n- [x] Share the recorded file via the standard iOS share sheet (mail, twitter, facebook)\n\n\n## Requirements\n\n- iOS 11.0 or later\n\n## Getting Started\n\n- Go to the \"Demo\" folder, Main Scene. View the RecordController script for sample code\n\n\n## Communication\n\n- If you **found a bug**, open an issue.\n- If you **have a feature request**, open an issue.\n- If you **want to contribute**, submit a pull request.\n\n\n## Installation\n\n- Open the Plugin Source folder, Drag the \"Source\" and \"Editor\" folder into your Unity project.\n- It must be dragged into the following Unity file path : Assets \u003e Plugins \u003e iOS \u003e ReplayKitUnity\n\n## How To Use\n\n\n \n1. Start a screen recording\n\n```csharp\nReplayKitUnity.StartRecording();\n```\n\n2. Stop the screen recording\n\n\n```csharp\nReplayKitUnity.StopRecording();\n```\n\n3. Get the video file after recording is complete\n\n a) Subscribe to the onStopCaptureWithFile action in ReplayKitUnity\n \n ```csharp\n ReplayKitUnity.Instance.onStopCaptureWithFile += OnStopRecording; (connect to your function)\n ```\n \n b) Use the VideoPlayer Unity componnent or any video playback technique to play the .mp4\n \n \n 4.  Get notified when the recording has started\n \n ```csharp\n ReplayKitUnity.Instance.onStartRecording += OnStartRecording; (connect to your function)\n ```\n\n5. Set a constrained time to record gameplahy (ie - only 10 seconds)\n\n```csharp\nReplayKitUnity.AllowedTimeToRecord = 10.0f;\n ```\n\n6. Set the subject line for sharing the video file via email\n```csharp\nReplayKitUnity.MailSubjectText = \"Check this recording of my game out!\";\n ```\n\n\n## Contact：\n- Email:  sdhingra89@gmail.com\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fustwo%2Freplaykitunitybridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fustwo%2Freplaykitunitybridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fustwo%2Freplaykitunitybridge/lists"}