native.newWebView resizing issue

Hi,

I’m using Corona’s native webview to show a video player which is loaded into the webview. I dynamically create an html page and loads it into the webview.

My requirement is to show the video in fullscreen when in landscape and when in portrait mode the webview will take half the scene size. I need to do this without reloading the scene.

When I change the orientation I tried changing the width and height of the webview. But the width and height changes in a weird manner. It either becomes double the size or half the size of webview. Is it a corona issue or am I doing something wrong? Please help. Urgent!

Are you building for iOS or Android?

They cannot be rotated on Android.

As for resizing, let me ask the engineers.

Resizing a webview is not a normal use case and something we don’t test. If you resize the view, I would expect you need to reload the content to fit the new view. This may be platform dependent since this is native code.

When you report bugs, you need to mention the platform because there is native code used that is different between platforms.

I’m using Mac OS X 10.7.5 and building it for iOS and Android.

Rotation is not an issue. I’m loading videojs player in the webview. It rotates automatically.

Only issue is with resizing. Reloading the player works. But the video plays from begining. I have to play the video without reloading it. Is there any other alternative if not webview?

Are you building for iOS or Android?

They cannot be rotated on Android.

As for resizing, let me ask the engineers.

Resizing a webview is not a normal use case and something we don’t test. If you resize the view, I would expect you need to reload the content to fit the new view. This may be platform dependent since this is native code.

When you report bugs, you need to mention the platform because there is native code used that is different between platforms.

I’m using Mac OS X 10.7.5 and building it for iOS and Android.

Rotation is not an issue. I’m loading videojs player in the webview. It rotates automatically.

Only issue is with resizing. Reloading the player works. But the video plays from begining. I have to play the video without reloading it. Is there any other alternative if not webview?