Webview force portrait view?

phast

Member
Licensed User
Longtime User
I am trying to use Webview to call an iframe of a flash player. The problem is the flash player thinks the device is in landscape view and states "this player does not support landscape view, please rotate your device to portrait view"

The problem is the device IS in portrait view. Can I set the webview window width and height? or somehow tell the flash player I am in portrait view?

here is a snippet:

Code: Copy
WebView1.Initialize("WebView1")
WebView1.JavaScriptEnabled=True
WebView1.LoadUrl("<iframe width='490' height='960' src='http://player.liquidcompass.net/p/CCR1IR'></iframe>")
 
Do you have a landscape layout defined.

I use webviews as tables in my personal apps and I create a portrait layout and a landscape one with the webview resized.

Regards, Ricky
 
Upvote 0
Do you have a landscape layout defined.

I use webviews as tables in my personal apps and I create a portrait layout and a landscape one with the webview resized.

Regards, Ricky

I do NOT have a landscape layout defined. Currently the app can only be run via a portrait layout. Currently designed for 320x480


If it helps, the webview window itself is sized to 190x290
 
Last edited:
Upvote 0
It is not related to the layouts created. It seems to be a bug in the Flash player.

You can try to download the frame source and then show it directly (not inside an iframe).


I tried with a different player and it worked flawlessly. Thank you for the help and sorry about the trouble.
 
Upvote 0

Similar Threads

  • Locked
  • Article Article
Replies
2
Views
16K
  • Article Article
Android Code Snippet Upload files with WebView
Replies
37
Views
44K
Replies
17
Views
18K
Back
Top