Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen Sharing problem on iOS below 16 #170

Open
toblAilleron opened this issue Apr 28, 2023 · 3 comments
Open

Screen Sharing problem on iOS below 16 #170

toblAilleron opened this issue Apr 28, 2023 · 3 comments

Comments

@toblAilleron
Copy link

toblAilleron commented Apr 28, 2023

Hi,

I've try to use RPScreenRecorder startCaptureWithHandler:completionHandler: in order to record screen and send the frames using app groups container, like described in guide: https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-ios-sdk/#setting-up-the-socket-connection but without using broadcast extension and recording only my application screen (not the whole device's screen).

On iOS 16 this solution is working perfectly, but on iOS 15 got an error when using startCapture method in completionHandler:
ReplayKit error: Code=-5833 "Failed to start due to audio/video capture failure"

This error only occurs when there is active JitsiMeetView on the screen.

Can you help me?

part of my code:
RPScreenRecorder.shared().startCapture { sampleBuffer, sampleBufferType, error in if let error { return } guard sampleBufferType == .video else { return } sampleHandler.processSampleBuffer(sampleBuffer, with: sampleBufferType) } completionHandler: { [weak self] error in if let error { } else { sampleHandler.broadcastStarted() } }

@saghul
Copy link
Member

saghul commented Apr 28, 2023

Sorry we've never tried that. Why would you not use the broadcast extension model?

@toblAilleron
Copy link
Author

In our business scenario we don’t want to share entire iOS screen but only our app’s screen. This can’t be done using broadcast extension.

@saghul
Copy link
Member

saghul commented Apr 28, 2023

Right. Sorry, I don't know the answer to your question then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants