I use WebRtc to create a peer to peer connection to share video and audio. i want to use replaykit to record Screen & Microphone.if i start recording after the peer connection has been established which means the two can share video and audio from each other.in this case,repalykit failed to record Screen & Microphone and previewController was black.if i start to record before connection has been established replaykit works well.if i choose record screen only or don't add RTCAudioTrack
,it works all the time.
So how to use replaykit with webrtc?
You can start to test with apprtc-ios
ReplayKit doesn't work when work with webrtc
1.2k views Asked by potato At
1
Once the call is started, the device speaker, Microphone and Camera streams are added to the Peer connection and it won't available for other outputs in the app. Following new API introduced in iOS 11.
This API used for capturing the Speaker, Mic and Video sample buffers and you can able to write them into a file using AVAssetWriter from AVFoundation.