aws-samples / amazon-ivs-broadcast-ios-sample

MIT No Attribution
18 stars 11 forks source link

ReplayKit Screen Share Not Working #70

Open rajleechaudry opened 6 months ago

rajleechaudry commented 6 months ago

Realizing this is quite old, still thought I'd ask - when I try the ScreenCapture target, nothing happens, nor do I get any errors. I see nothing in the Xcode either. I followed the instructions. I modified the UserDefaultsDao with the correct Group ID, but nothing happens. The BasicBroadcast use case with the camera works fine.

Any ideas on how to troubleshoot?

bclymer commented 6 months ago

Are you launching the system screen capture UI? Xcode can't actually launch the ReplayKit service itself, it just installs the extension on your device so you can select it.

Once the ScreenCapture target is installed, follow this - https://support.apple.com/en-us/102653. But instead of tapping the record icon, long press it, and it will show you a list of extensions that support screen capture (this happens always, even if our extension isn't installed). Select our extension and then start recording.

At that point, Xcode should detect the process launched and start showing logs. Hope that helps.

rajleechaudry commented 6 months ago

Thanks @bclymer. Worked well. Long-press comment (then some tinkering) helped. Cheers!

rajleechaudry commented 6 months ago

@bclymer Is there a similar example for Android you have handy?

bclymer commented 6 months ago

Our Android example app can do screen capture natively within the app (it doesn't need an extension like iOS does). You can see part of that here - https://github.com/aws-samples/amazon-ivs-broadcast-android-sample/blob/main/app/src/main/java/com/amazonaws/ivs/basicbroadcast/activities/MainActivity.kt#L174-L193. The example app has everything you'd need to do screen capture on Android.

rajleechaudry commented 6 months ago

@bclymer You Sir, are, a badass! [Using multiple unnecessary commas for dramatic effect]

Thanks! Cheers!