HTML on top of unity webplayer

Hi,

Is it possible to place html elements on top of the webplayer. I know that it will slow down the performance. But if it’s possible i like to know how.

Thanx in advance.

WWW.texture if I remember well.

Thanx Godlike,

But i mean placing a html element like blablabla
on top of (in front of) the webplayer. So for example, when the user switches to fullscreen i can show a message in html how to switch back.

Yes, you can have something like a DIV block apear in front of it. I just did a quick test. You can even use z-index to move it behind the player.

Here is a simple test. Just change the LEFT and TOP values until this red block apears over your webplayer.

<div style="background-color:red;position:absolute;left:530px;top:210px;z-index:10;">TEST</div>

On win xp ie7 is false…

it will not work, div etc can’t overlay a unity webplayer.

the only thing I’m aware of working rasonably for overlay are iFrames

Yup, I’ve tested what xyber suggested, and it did work, at least, on the browser I’m looking at (Firefox 11 on Mac OS X 10.6.8).

Here is a test:
http://dl.dropbox.com/u/25260770/DragTest/WebPlayer.html

Works on Mac, not on PC. That greatly limits the use of Unity in rich browser apps.
With WebGL looming, Unity better make this work!

What’s the story behind this flaw?

http://feedback.unity3d.com/unity/web-player/1/hot/active/allow-rendering-of-html-elements

The story behind the “flaw” is a technical one. Getting 3d content to “appear” in a browser is highly browser dependent. On some browsers the Unity window isn’t actually part of the browser app, it’s blitted over the top of the window, so on these browsers (I do not have a list handy) the Unity window has to be on top of everything else. So, it’s a technical problem with no solution.

It’s working on Firefox, but not on Internet Explorer and Chrome. That’s a big problem when you wanna monetize an App on Facebook using interstitials. So a solution could be make invisible the webplayer, show the interstitial, and when the Interstitial closes get the webplayer visible. Anyone knows how to do this? Is an horrible solution, but is the only thing that we got =(

to expound a bit on what Graham said, not only is it a technical issue, but it’s also a browser issue / limitation and not a Unity one. The browsers actually treat the plugins essentially as separate apps and just overlay them on top of the container in the page. The content is not part of the DOM so it doesn’t adhere to zindex or any other layout rules. The video tag and webgl will likely behave differently because they are native html elements and not plugins but for now you’re stuck with the plugin model.

I need this issue, any idea???

Yes, use only Firefox, which, at least 10 months ago worked.