Add experimental session replay capturing on iOS (UE 5.8+)#1462
Open
tustanivsky wants to merge 11 commits into
Open
Add experimental session replay capturing on iOS (UE 5.8+)#1462tustanivsky wants to merge 11 commits into
tustanivsky wants to merge 11 commits into
Conversation
Contributor
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 519b580. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR adds session replay capturing support on iOS, extending the existing desktop (Windows/Mac/Linux) crash-replay feature to mobile Apple devices.
When
Attach session replayis enabled, the plugin records a rolling gameplay clip by capturing the backbuffer, encoding it to H.264 via the engine's AVCodecs abstraction (hardware VideoToolbox on iOS), and muxing it into a fragmented MP4 on disk. If the app crashes, the clip is uploaded as avideo/mp4attachment to the crash event on the next launch, reusing the existing sentry-cocoaonLastRunStatusDeterminedupload flow that was already in place for macOS.Example crash event with session replay attached captured on iOS.
Key changes
FMacSentrySubsysteminto the sharedFAppleSentrySubsystembase so macOS and iOS use the same recorder lifecycle, replay file path handling, and next-launch upload logic.PLATFORM_MACtoPLATFORM_APPLE:ETextureCreateFlags::CPUReadback(required by the engine's RHI→Metal resource transform; without it VideoToolbox rejects every frame) with the extra copy pass Metal requiresSendFrametimestamp scale, CABAC entropy workaround, and the hourly encoder restart guarding the uint32 PTS wrapSentry.Build.csintoIsSessionReplaySupported(), enabling iOS behindUE_5_8_OR_LATER.AVCodecsCoreandVTCodecsfor IOS in the sample project.Known Limitations
iOS support requires Unreal Engine 5.8 or newer - UE 5.8 is the first release where the (still experimental) AVCodecs plugin suite allowlists iOS -
VTCodecs(VideoToolbox H.264 hardware encoding) and its RHI integration were previously Mac-only. On older engine versions the plugin builds as before, with session replay capturing unavailable on iOS.Documentation
Related items: