I am trying to integrate WebRTC Video into my iOS app. I downloaded the source code from https://webrtc.github.io/webrtc-org/native-code/ios/ and built it successfully. However, GLView is not supported in this codebase, so I had to use MetalKit and added RTCMTLVideoView to my class. I also added RTCVideoRenderer and RTCVideoViewDelegate and set self.metalVideoView.delegate = self.
When the method to handle incoming video is called, I can see that the object received from the notification is RTC_OBJC_TYPE(RTCMediaStreamTrack): video janusv0 enabled Live, and VideoTracks count is: 1. However, I am not able to see any video on the screen. Instead, I just see a blank screen. In the previous version of WebRTC, I used GLView with the same implementation and it worked fine.
Could someone provide an example of a WebRTC implementation in iOS that uses MetalKit?