hncl
hncl

Reputation: 2295

JWPlayer 6 transparent background HTML5

I upgraded jwplayer from 5.10 to 6.9; I was able to change the player background to transparent by changing the background in the jwplayer.js (5.10) to tansparent

background: "transparent no-repeat center center"

and also used:

wmode = 'transparent'

Worked great. Did the same in jwplayer.js 6 and jwplayer.html5.js changed background and backgroundColor, but had no luck. I also tried custom skin with transparent background.

Has anyone had success in changing the background to transparent from black. Here is the player code:

jwplayer("mediaplayer").setup({
            file: myvideo,
            image: imagename,
            width: "100%",
            autostart: true,
            backcolor: 'transparent',
            wmode: 'transparent',
            aspectratio: "4:3",
            ga: {

            }
        });

Upvotes: 1

Views: 2324

Answers (1)

emaxsaun
emaxsaun

Reputation: 4201

Under:

file: myvideo,

Add:

primary: ‘flash’,

Upvotes: 1

Related Questions