I have an app that has a number of modules, and is restricted to portrait mode only.
However, one module plays videos, and these are always in landscape mode, so I need to re-orientate accordingly.
I was wondering the best approach to achieve this. I have had 2 thoughts about how this could be achieved:-
- allow the app to support all orientations, but 'block' the event when a rotation happens (I'm not sure what event is raised) apart from in the video view page
- force the videoview to rotate to landscape mode by bypassing the portrait only restriction somehow (this is what we do in the B4A solution)
I know this is possible in B4a (if anyone requires the code please contact me) but various functions aren't supported on iOS (e.g. SetScreenOrientation in the phone library).
Any thoughts?
Thanks
John