I am using mediasoup client library in react-native to connect to a media server which is also using mediasoup as Media Server. During the live stream everything is fine and works smoothly. The video captured from mobile during live stream is recorded in the backend and when the recorded video is played, its orientation is changed.
We are also using the same backend in a web client and everything is working as expected.
When creating a new producer on Mobile, we use the same constraints(width, height) on video for both mobile and web.
Can anyone tell me is the issue related to mobile or media server backend? any solution please?
Thanks in advance.
The recorded video is not rotated because orientation of the video is signaled in real time through a RTP extension header. Check the FAQ in the mediasoup website.
I have found the below trick link which solved the issue: