Open mallikarjungurav opened 1 year ago
@cruizba Any help on this please. Video gets blacked out intermittently, when orientation is changed on iPhone wherein it works well with Androids.
How can we reproduce the error?
@micaelgallego Start streaming with iPhone with back camera by default and then within 1-2 secs change orientation from portrait to landscape, the video stream will be blacked out. This is intermittent issue so you may need to do it multiple times to reproduce it.
Are you using Kurento or mediasoup media server?
@micaelgallego
We upgraded OpenVidu Professional from 2.17.0 to 2.22.0. So, we still use Kurento media server internally and not mediasoup.
Sorry wrong issue. Reopening again...
Describe the bug We have a use-case wherein user can change the orientation of his mobile phone while live streaming. Due to discrepancies in Android and iPhones, we handle orientation change in different ways. For Android devices, when orientation is changed, we do not do anything and the live stream works properly without any issues, but iPhones do not support this behaviour and black out the screen when the orientation is changed and video is not recorded. To handle this, we first stop the video and then create a new live stream wherein we unpublish the previous stream and release the camera and again obtain the camera and publish the stream, which works fine in existing OVP 2.17.0. But since the time we upgraded it to OVP 2.22.0 it is creating issues for iPhone, where after orientation change:
We have already raised a bug related to switching camera on OVP 2.22.0. Link for the bug is https://github.com/OpenVidu/openvidu/issues/751 This might be related to switching camera issue.
Expected behavior When orientation is changed, stream should be stopped, camera should be released and then again obtain the camera and start a new stream.
Wrong current behavior
OpenVidu tutorial where to replicate the error This is an EXTREMELY IMPORTANT STEP. If we are able to replicate the error in any of the official OpenVidu Tutorials or OpenVidu Demos, then we will be able to quickly fix it. If you are getting the error in your own application, please try to add the necessary changes to the most similar tutorial so it fails with the same error (try to keep those changes as contained as possible, so that the original tutorial maintains its integrity). Once you have an application to replicate the error, explain in detail the steps to get it like this:
OpenVidu deployment info How is your OpenVidu Server instance deployed when you get the bug. A couple of possible examples are listed below:
docker run ...
on macOS Catalina 10.15.1Client device info (if applicable) iPhones
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here. For example, attach any useful logs related to the issue.