iOS RTCEAGLVideoView layout issues

andrew.n

Member
I saw in the demo projects that everything is added by code, no XIBs/Storyboards.
I want to ask if there are some limitations to RTCEAGLVideoView and using auto layout.

I placed one RTCEAGLVideoView full screen (top, leading, trailing, bottom, center X, center Y) constraints.
When the stream starts the constraints are no longer available and only the center X and Y are respected.
Why does this happen?
let options = FPWCSApi2StreamOptions()
options.display = display

What is the SDK doing the display that I provide?

I have to set one button in the middle of an RTCEAGLVideoView that change his position, but even I can see the center X constraint, the button is not in the middle of the screen (check Attachment)
 

Attachments

Max

Administrator
Staff member
What is the SDK doing the display that I provide?
Nothing, just passing it to WebRTC library
I want to ask if there are some limitations to RTCEAGLVideoView and using auto layout.
All the application examples uses auto layout.
So, please prepare a code example based on Two Way Streaming (if the problem occurs when publishing) or Player (if the problem occurs when publishing) example with minimal changes to reproduce the problem, and send us using this link, we will check.
 
Top