How to play videos in Landscape/Portrait mode "automatically" inside a webView?

I created a webView in Portrait mode.

And if the webpage has a YouTube video and the user clicks on it, there is no problem to play the video and it can be played in full screen mode too.

However, when the user rotates the device to Landscape mode, the video is still played in Portrait mode.

Is there anything I can do to make the video to play in Landscape/Portrait mode automatically while the user rotates the device?

I found out that if I set up landscape as supported mode, like this in build.setting:

orientation = { default = "portrait", supported = { "portrait", "landscapeLeft", "landscapeRight" } },

The video will automatically rotate in webView.

However, my UI is only designed for Portrait mode. If I use the setting above, the auto-orientation will rotate my UI automatically, which is a mess.

Is it possible to support landscape mode only when my app shows the webView?

Any thought to work around for this situation?

I found out that if I set up landscape as supported mode, like this in build.setting:

orientation = { default = "portrait", supported = { "portrait", "landscapeLeft", "landscapeRight" } },

The video will automatically rotate in webView.

However, my UI is only designed for Portrait mode. If I use the setting above, the auto-orientation will rotate my UI automatically, which is a mess.

Is it possible to support landscape mode only when my app shows the webView?

Any thought to work around for this situation?

+1 on this. Been wanting to achieve the same thing for a very long time now.

My app is designed in Portrait mode only, but I am receiving multiple requests from my users to let them watch video in landscape mode. I really don’t know how to tell them why I don’t allow them.

I actually tried to change my app to support Portrait/Landscape mode, however I found more bugs in webView orientation. I have been asking Corona in another forum thread if they want to fix those bugs. So far, over two months, no answer. They don’t say yes and they don’t say no. Plainly no answer. I am fxxking stuck here and don’t know what to do. I can’t even plan what to do. They could simply say NO, and I could plan to move on to something else or find another solution, but they give no answer.

+1 on this. Been wanting to achieve the same thing for a very long time now.

My app is designed in Portrait mode only, but I am receiving multiple requests from my users to let them watch video in landscape mode. I really don’t know how to tell them why I don’t allow them.

I actually tried to change my app to support Portrait/Landscape mode, however I found more bugs in webView orientation. I have been asking Corona in another forum thread if they want to fix those bugs. So far, over two months, no answer. They don’t say yes and they don’t say no. Plainly no answer. I am fxxking stuck here and don’t know what to do. I can’t even plan what to do. They could simply say NO, and I could plan to move on to something else or find another solution, but they give no answer.