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 share function #15

Open
fukemy opened this issue Oct 7, 2021 · 0 comments
Open

screen share function #15

fukemy opened this issue Oct 7, 2021 · 0 comments

Comments

@fukemy
Copy link

fukemy commented Oct 7, 2021

hi, first thanks for great lib, my project is running with your base code well for > 1 years, now i need to implement screen share( done in android).

In ios, i found need to use RpScreenRecorder to get RTCCVPixelBuffer like below

 RPScreenRecorder.shared().startCapture { cmSampleBuffer, rpSampleType, error in
            switch rpSampleType {
                
                
                
            case RPSampleBufferType.video:
                // create the CVPixelBuffer
                guard let pixelBuffer: CVImageBuffer = CMSampleBufferGetImageBuffer(cmSampleBuffer) else {
                    break
                    
                }
                
                let rtcpixelBuffer = RTCCVPixelBuffer(pixelBuffer: pixelBuffer)
....

but i dont know how to continues, how to add create video track from this.... etc. Can u help? Thanks in advances

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

1 participant