Hi, my english is not the best so bear with me.
First my game is made to be played on portrait and im trying to change screen orientation to landscape when i touch a button.
Im doing this to show rewarded videos from chartboost in landscape mode instead of portrait, resulting in the video to fill the entire screen without the huge black bars that appear when you try to watch the video in portrait.
This is exactly what im trying to copy: https://vid.me/ecF9
The game from the example is locked on portrait but when you press the video button, the screen rotates so the video can be seen on landscape. After the video ends the screen rotates again to portrait.
My project settings: http://prntscr.com/cwvb5s
By the way i use CocoonJS to compile my games and of course i also use their navigator (Canvas+)
If anyone can give me some help, it would be greatly appreciated.
Thanks.