07-23-2013 11:46 AM
I would like to block my application in portrait mode but I use the mediaplayer invokation and I would like to change the orientation to landscape only when the mediaplayer is playing and return to portrait when the user closes the mediaplayer.
Is there a way to do that ?
I have tried to use :
OrientationSupport *support = OrientationSupport::instance(); support->setSupportedDisplayOrientation(SupportedD
but it blocks the app in landscape even after the mediaplayer is closed.
Is there an event I can use to put back the orientation to portrait at the right time ?
Or is there another way to handle this ?