I am building an android video app.
We don’t allow the app to have orientation. So, I set the supported orientation to “portrait” only in build.settings.
And the video is embedded into a HTML5 video player (video tag) in the native.webview. (I don’t use the media.newVideo() because we need the video to be played inline and media.newVideo seems only have full screen only)
I added a javascript to fire an event when user press “fullscreen” button in the html5 video player and I will update the url to tell corona to switch to fullscreen mode (hide all other display objects and make the webview fullscreen). However, the fullscreen video doesn’t rotate with the device orientation.
I tried to add “landscapeLeft” and “landscapeRight” into build.settings. It can help to fix the problem. However, I don’t want any display object to rotate beside the webview in fullscreen (html5 video).