Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Transparent background for alpha channel

23 replies [Last post]

I LOVE this player! I have some videos that I'd like to play that have alpha channel data. Perhaps this is already possible, but is there a way to make the player background transparent? It would be awesome if I could use this player with those videos too!

@Chelsea Chan

Here's a short video that will show you how to give that feature to the JW Player.<strong>http://mymail.playourvideo.net/smovl.htm?id=mytransparenttweak.mp4</strong>Regards - Jimb

the video in not more on line.

Like the home page of the site declair:

"I've suspended this web site as a large numer of the videos were outdated "

it mean that that video is not more usefull

@nexus6

I have been redesigning the Web Site and as stated all of the tweaks I had posted had become outdated, and in several cases I had determined there was a better way to accomplish the modification than the method I demonstrated.

But for those wanting to watch one of those old videos and who are willing to spend a few minutes validating that they will still work or can be adjusted to work with the latest player, you can find them here.<strong>http://www.playourvideo.net/techtips.htm</strong>Regards - Jimb

Thank Jimb

For me again VERY usefull.

dobble post sorry

FYI, the video is viewable here:
http://www.playourvideo.net/transparent.mp4

All the links seams to be dead, anyone kind enough to upload it again for me =)?

Solution for v5.0

Alter View.as

Change background.graphics.beginFill from alpha 1 to 0 (see below, last value in beginFill brackets)

protected function setupBackground():void {
var background:MovieClip = new MovieClip();
background.name = "background";
_backgroundLayer.addChild(background);
background.graphics.beginFill(_player.config.screencolor ? _player.config.screencolor.color : 0xFFFFFF, 0);
background.graphics.drawRect(0, 0, 1, 1);
background.graphics.endFill();
}

Pkennedy, exactly how and where do i do this? Do you need to download a sourcefile of some sort on the player and compile it? I desperately need help.

You can download the source from our wiki - http://developer.longtailvideo.com/trac/browser/tags/mediaplayer-5.1

Once i have altered the view.as file, do I just archive it according to the source from the wiki i.e src/com/jwplayer..... or do i have to reference the .as file in the embed code?

Any help would be great.

Once you have altered the file, you need to re-compile the player.

sorry but us there no easy way withot recompile the player?

Unfortunately, not.

 
@mark,

Here are a couple of v5.2.1065 players using the code posted above to achieve a transparent background.

You can download the player from the URI in the page source.

If you need a different alpha opacity, post here and I'll compile a player with your requested alpha opacity.

http://willswonders.myip.org:8074/player5/Simple_TransparentBackground_v5.html

Note that you must use wmode=transparent, absolute or relative positioning, and a z-index for the playercontainer division element that is greater than the z-index of the background image element.

@Craterstore,

It looks like you hold the key to my problem, however the link you have provided is no longer live. I need a player able to show the transparent background totally transparent. Can you help me? Have you done one already that I can use?

@Alain,

try this:
http://willswonders.myip.org:8088/player5/player-5.2.1065.transparent.0.0.swf

@Alain,
would you be kindly willing to let me download a copy of that .swf player?

Correction - "noone"

would you be kindly willing to let me download a copy of that .swf player?

just pop the URI into your browser, then "Save As" player.swf or whatever filename you prefer

I appreciate that....I tried that before I asked the question...in 3 browsers. I think the link is broken? Could you verify? Prior to my first question I embed code to it to see how well it worked. It works great, good job. I noticed this morning it wasn't working, that's when I checked the link and posted my previous request.

we've had a lot of very powerful lightning strikes...

please try this URI againhttp://willswonders.myip.org:8088/player5/player-5.2.1065.transparent.0.0.swf,/code>

Works great, Thank you! Sorry to hear about that lightning strike. I run a TV station and had that happen to me we lost a bunch of equipment and learned a very valuable lesson. Take care.