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

wmode='transparent' for JWplayer wordpress


How can I set mode to transparent in the wordpress plugin? If I look at the post source I can see the JWplayer 'setup' with the 'file'and so on. How can I add the wmode there? What do I need to edit? My videos are self hosted.

Thanks

5 Community Answers

Cooper Reid

JW Player Support Agent  
1 rated :

Hi -
This cannot be done within the jwplayer plugin. You will have to write some custom js on the page that adds that wmode=transparent parameter to the file parameter:
jwplayer().onReady(function() {
var currentItem = jwplayer().getPlaylistItem().file + ‘?wmode=transparent’;
jwplayer().load({file: currentItem});
});
-Cooper

mihai_ponoran

User  
0 rated :

Thanks for the reply! On what page should I put that code? Can you please make it easy, I'm new to this :)

Thanks a lot

Cooper Reid

JW Player Support Agent  
0 rated :

You’ll have to figure out a way to get your own custom JS onto the page. I am not an expert in Wordpress, you will have to do some research into this matter.
-Cooper

mihai_ponoran

User  
0 rated :

I tried lots of things but it doesn't do anything :(
And when I put the js you gave me through a validator online it gives syntax error. Can you please look at it to be sure it's the code I need?
Thanks

Cooper Reid

JW Player Support Agent  
0 rated :

I believe that’s because the quotes were replaced with invalid quotes. Try using these double quotes:

jwplayer().onReady(function() {
var currentItem = jwplayer().getPlaylistItem().file + “?wmode=transparent”;
jwplayer().load({file: currentItem});
});

Best Regards,
Cooper

This question has received the maximum number of answers.