Open ArcherEmiya05 opened 2 years ago
I discover that the culprit is changing RtcEngine.CreateRendererView(this);
to new SurfaceView(this);
but it was stated here #283 that it is no longer recommended starting v4.
you are using fill before but now using fit.
rtcEngine().setupLocalVideo(new VideoCanvas(surface, VideoCanvas.RENDER_MODE_FILL, 0));
rtcEngine().setupLocalVideo(new VideoCanvas(surface, VideoCanvas. RENDER_MODE_FIT, 0));
you are using fill before but now using fit.
rtcEngine().setupLocalVideo(new VideoCanvas(surface, VideoCanvas.RENDER_MODE_FILL, 0));
rtcEngine().setupLocalVideo(new VideoCanvas(surface, VideoCanvas. RENDER_MODE_FIT, 0));
Fill is no longer available in SDK v4, the changes was meant to prepare it for migration. However is changing render mode the reason for it to rotate?
Migrating from 3.4.2 to 3.7.0,
CreateRendererView
has been deprecated thus we update it using the plainSurfaceView
Old code
New code
The issue is the local video is now always landscape but its rendered remote is fine.
This is the configuration,