I’m using an iPhone in
.portrait mode. When subscribing to my video and not handling any orientation then its initially show as rotated to
.landscapeLeft. I assume this is the internal default orientation.
Is this the expected behaviour or am I doing something wrong?
Of course I’m observing orientation change, and call
rotateMyVideo accordingly, which works fine. But I’m not sure when to initially set the orientation before any orientation change happens.
Before joining and
onSessionJoin callback won’t update the video. And
onUserVideoStatusChanged does work until I stop/start my video, then it’s in landscape mode again.
rotateMyVideo be called every time I subscribe to my video? Or is there a way to keep the orientation I’ve set?