iOS: RTCMTLVideoView does not render frames when executed outside Xcode

650 views
Skip to first unread message

jee...@gmail.com

unread,
Mar 12, 2021, 6:16:02 AM3/12/21
to discuss-webrtc
Hi.

I have created a WebRTC application which uses RTCMTLVideoView. The App works fine when executed by Xcode using either Run or Debug menu. However, if the App is launched from iPhone directly, RTCMTLVideoView does not render any frames. The Entire view is blank. 

Everything works if I replace RTCMTLVideoView with RTCEAGLVideoView. However,  RTCEAGLVideoView does not have contentMode and hence I must use RTCMTLVideoView. 

I came across similar problems and hence I downloaded the latest source code and compiled WebRTC framework today. Hence it is latest. I have also faced the same issue with Xcode 11 and Xcode 12. 

Any hint on how to solve this issue?

~Jin


Filip Bajaník

unread,
Mar 18, 2021, 5:39:35 AM3/18/21
to discuss-webrtc
I don't have that issue and you also did not mention what version of WebRTC do you use.

If you are on the older one, try to update. I'm currently on 4430 (M90) and RTCMTLVideoView works for me.

We also use RTCEAGLVideoView and frankly, you don't need contentMode, you could compute aspect ratio on your own and change the frame when layouting the view.



Dátum: piatok 12. marca 2021, čas: 12:16:02 UTC+1, odosielateľ: jee...@gmail.com

Rémi Vansteelandt

unread,
Apr 6, 2021, 2:49:39 PM4/6/21
to discuss-webrtc
I'm seeing the same issue here. RTCMTLVideoView works fine when debugging, but shows a blank view when not debugging.
Upgrading to 4430 does not seem to change anything.

We're using a patched RTCEAGLVideoView to accomodate different scales, but would much rather use the provided RTCMTLVideoView instead.

@Jin were you able to figure it out on your end?

Jim Blackwell

unread,
Apr 6, 2021, 3:01:05 PM4/6/21
to discuss...@googlegroups.com
Remi, we are now using mesibo webrtc build which does not suffer from this issues. I can send you the link later or you can search for mesibo webrtc framework. Note that it has some additional symbols that requires mesibo framework as well. 

--

---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/x3dp-IZssTY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/b6e80bd6-d460-4dce-9216-adb650abd745n%40googlegroups.com.

--

---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/x3dp-IZssTY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/b6e80bd6-d460-4dce-9216-adb650abd745n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages