x


Change Webplayer Width and Height

When i make a web build i have given the default web screen width and height as 450 and 600 respectively .

I want to change the screen width and height to 600 and 750 by code during runtime and not make the screen as full screen.

Is there any way to do that.

Thanks in advance.

more ▼

asked Jan 13 '10 at 08:29 AM

manx gravatar image

manx
31 2 2 3

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

In Edit->Project Settings->Player you'll find the player settings - allowing you to set the default width and height of your web content. Notice though that all this does is change the default generated HTML as this is where the size of the webplayer is set.

So this is also where you should resize the player at runtime. If you want to keep control of this from within the webplayer, you may use Application.ExternalEval to execute website javascript in the website containing the player. You could have this set up to modify the player size.

Tip: Since the webplayer size is set in HTML, it also supports sizes of 100% - allowing you to make "full-screen" within the browser window. Notice that you'll have to get rid of html and body padding and margin via CSS to complete the experience.

more ▼

answered Jan 13 '10 at 08:53 AM

AngryAnt gravatar image

AngryAnt ♦♦
4k 14 19 52

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5072
x810
x484

asked: Jan 13 '10 at 08:29 AM

Seen: 3758 times

Last Updated: Jan 13 '10 at 08:57 AM