How to Get Frame Data in Apprtc iOS App for Video Modifications

How to get frame data in AppRTC iOS app for video modifications?

Just after posting the question I had a luck in finding the sneaky data!

You have to add the following property to RTCEAGLVideoView.h file:

@property(atomic, strong) RTCI420Frame* i420Frame;

In the original implementation file there is the i420Frame property but it wasn't exposed in the iOS project's header file for the class. Adding the property allows you to get view's current frame.

I'm still in search of a more elegant way of getting the stream data directly, without the need to look into remoteView contents, will update the answer once I find it.

iOS Webrtc - Crash in capturing local Video Stream

My bad! I was trying to create PeerConnectionFactory and LocalVideoTrack in worker thread! Problem solved when I moved those to main thread. I have uploaded apprtc version in Apprtc-Swift with description on this tutorial



Related Topics



Leave a reply



Submit