Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

so.addParam('wmode', 'opaque') not working


I'm trying to embed a video while keeping the background visible. The video contains some animated characters that do stuff on a black background. I've tried making it transparent using so.addParam('wmode', 'opaque'), but that didn't work. Is it necessary to tell the player to make all black pixels transparent? If so, how can I do it?

Here my code:

---
<html>
<head>
</head>

<body>
<table>
<tr><td background="aerobics.jpg">
<script type="text/javascript" src="bin/swfobject.js"></script>
<div id="video" style="padding: 0px; margin: 0px"></div>
<script type="text/javascript">
var so = new SWFObject('bin/mediaplayer.swf','player','620','380','8');
so.addParam("allowfullscreen","false");
so.addParam("allowscriptaccess","always");
so.addParam("bgcolor","#000000");
so.addVariable('file','../aerobics_620high.flv');
so.addVariable('image','../aerobics.jpg');
so.addVariable('linkfromdisplay','true');
so.addVariable('callback','urchin');
so.addVariable('autoscroll','false');
so.addVariable('lightcolor','0xfafafa');
so.addVariable('backcolor','0x000000');
so.addVariable('frontcolor','0xfafafa');
so.addVariable('shownavigation','false');
so.addVariable('autostart', 'true');
so.addParam('wmode', 'opaque');
so.write('video');
</script>
</td></tr>
</table>
</body>
</html>
---

Thanks in advance!

8 Community Answers

JW Player

User  
-1 rated :

The player has a non-opaque/non-transparent background, so you can't make it transparent without editing the ActionScript and re-compiling.

JW Player

User  
-1 rated :

Just to make sure we're on the same page, I was talking about making the video transparent, not the player. I was planning to hide the controls anyway.

JW Player

User  
0 rated :

So you're saying that I can't do it unless I buy Flash and learn ActionScript?

JW Player

User  
0 rated :

I don't know for sure that you can insert a transparent background. You will have to ask a Flash expert.

JW Player

User  
0 rated :

you do realize that opaque is the opposite of transparent right?

JW Player

User  
0 rated :

Yes you will need to be able to recompile the FLA & Action Scripts but isn't all that difficult. I managed to create a player that will properly display flv's encoded with a *transparent alpha channel*. You should understand that when the player is in the transparent mode you lose the ability to use the full screen option.

In my player I added two additional parameters to let me toggle the player from it's normal mode to transparent and to toggle the floating controlbar off .

JW Player

User  
0 rated :

Can you share what you edited?

JW Player

User  
0 rated :

@Steven,

Already posted the AS2 Files modified, lines, and code in this http://www.jeroenwijering.com/?thread=11456
Look for the 5th comment in that thread.

Regards - Jimb

This question has received the maximum number of answers.