This message was deleted.
# helpdesk
s
This message was deleted.
👀 1
b
The new
VideoView.rotationOverride
property should fix/disable the rotation to your preference . This will be available soon for macOS also.
s
I'll have to add an observer to detect the device's orientation and force the videoView to rotate to the correct position... what I really wanted... was to disable rotation so that the user doesn't see the rotation to be corrected
however... I was just wondering if it was possible to disable the rotation... that solution should solve it but it's not the right thing, that's all
d
@steep-yacht-1435, would that be something you'd set at the app level? I think when the app rotates, the video stack would have no choice but to follow that
s
@dry-elephant-14928 sorry, you can be a little more clear?
d
On each UIViewController, you could have
shouldAutorotate
return false. Like in this example
s
yes , I know.. but this don't work
d
Can you share more about what doesn't work? What happens when you set the ViewController to not rotate? Does the video capture still rotate?
s
@dry-elephant-14928 yes video capture still rotate
@dry-elephant-14928 you can help? what's your advice about that?
@dry-elephant-14928 I really need your help regarding this, it's causing a lot of bad user experience.
you can add a property to disable camera rotation? or something else?
👀 1
@dry-elephant-14928 when you can I ask you to respond, I apologize if I'm pressing but it's because it's urgent.
@dry-elephant-14928 take a look please.
b
Hi @steep-yacht-1435 It's a bit tricky to control rotation info on the publisher side (because it's built-in to WebRTC), but I'm willing to improve it eventually (with additional improvements as client side recording). What you can only do now is to force VideoView's rotation by
rotationOverride
property .