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

how do I pass wmode transparent and control panel "always on" using the following script...


I need to pass wmode=transparent, and the controlbar set to "on" all the time (no hiding), via the script below: how do I do that? is it wmode: transparent?

Here is the url:
http://buildandbuy.com/jHop/
I realize the page will work fine, but I need it to work on the iphone.

<script type="text/javascript">
jwplayer("single2").setup({
file: "http://www.youtube.com/watch?v=cJ6wUYB2X8Q",
image: "http://buildandbuy.com/skins/start_img.jpg",
skin: "http://buildandbuy.com/skins/beelden/beelden.xml",
plugins: {
"sharing-0": {}
},
width: 287,
height: 211,
stretching: "fill",
flashplayer: "http://buildandbuy.com/mediaplayer-5.3/player.swf"
});
</script>

21 Community Answers

Ethan Feldman

JW Player Support Agent  
-1 rated :

Try this:

<script type="text/javascript"> jwplayer("single2").setup({ file: "http://www.youtube.com/watch?v=cJ6wUYB2X8Q", controlbar: "bottom", image: "http://buildandbuy.com/skins/start_img.jpg", stretching: "fill", skin: "http://buildandbuy.com/skins/beelden/beelden.xml", plugins: { "sharing-0": {} }, width: 287, height: 211, wmode: transparent, flashplayer: "http://buildandbuy.com/mediaplayer-5.3/player.swf" }); </script>

JW Player

User  
0 rated :

wmode: transparent doesn't work with jwplayer().setup : (

I did get it to work with swfobject though. Are we sure this is suppose to work?

JW Player

User  
0 rated :

I was able to work around this by forcing the jwplayer to set an additional parameter by searching for 'allowfullscreen' and everywhere just adding what would be needed to add the wmode param. If you would like my copy of jwplayer.js just let me know.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Tova – Thanks for sharing, glad you got it to work.

JW Player

User  
0 rated :

Tova,

I've been running into a similar issue with trying to get jwplayer().setup and wmode to work and was wondering if would be possible if you could post your solution.

JW Player

User  
0 rated :

I managed to pass the wmode parameter by manually creating the element and appending it to the object (after the .setup() is called):

bc.. var wmode = document.createElement("param");
wmode.name = "wmode";
wmode.value = "opaque";
document.getElementById("video_container").appendChild(wmode);



It's not practical as it should be, but it does the job.

JW Player

User  
0 rated :

Sorry for the delay, turkey weekend here. Here is a link to download the jwplayer.js I made changes to. Let me know if it works for you.

http://accoladecomputing.com/jwplayer.js

JW Player

User  
0 rated :

Not a problem Tova that solution works out just fine. I'm wondering though if Louis-Philippe's solution needs to be applied for each video or instance of the script, as I have other problems to work out with the player, and unless Tova's solution is included in future patches, the wmode fix will be needed each time I update.

JW Player

User  
0 rated :

Just wanted to say thanks for the above post - I had the same problem in Safari (IE was ok for some reason) and it's done the trick. I'm using Devexpress' ASPxMenu, which was appearing beneath the video content.

Thanks again!

JW Player

User  
0 rated :

This approach didn't work for me in IE7/8, only Firefox and Chrome. Need a solid solution as part of the JW Player Pro code.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Dmitri – Can you provide a link to where you are trying to run this? Thank you.

JW Player

User  
0 rated :

bc.. I managed to pass the wmode parameter by manually creating the element and appending it to the object (after the .setup() is called):


<code>var wmode = document.createElement("param");wmode.name = "wmode";wmode.value = "opaque";document.getElementById("video_container").appendChild(wmode);
It's not practical as it should be, but it does the job.</code>



can you post your entire video code? i'm unsure where to add the var code exactly.

i'm also having problems passing wmode: opaque

thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

@aaron – We have the wmode issue fixed now. Download the latest version here – http://www.longtailvideo.com/players/jw-flv-player/

JW Player

User  
0 rated :

Many thx!

Ethan Feldman

JW Player Support Agent  
0 rated :

Np!

JW Player

User  
0 rated :

I just tested this with the latest player and it isn't working - my setup function is pasted below. The wmode parameter is written, but its value is opaque, not transparent.

jwplayer("video").setup({
flashplayer: "videoPlayer/player.swf",
wmode: 'transparent',
controlbar: "bottom",
playlist: [
{ duration: 59, file: "why.mp4" },
{ duration: 87, file: "how.mp4" }
],
skin: "videoPlayer/skin.zip",
plugins: {
gapro: {
accountid: 'UA-19026856',
trackstarts: true,
trackpercentage: true,
tracktime: true
}},
events: {
onComplete: showEndScreen,
onPlay: hideEndScreen
},
height: 407,
width: 640
});

Ethan Feldman

JW Player Support Agent  
0 rated :

If you want the setting to be transparent, you can open jwplayer.js in your favorite text editor and replace instances of “opaque” with “transparent”

JW Player

User  
0 rated :

I have the same problems

Why are the wmode, allowfullscreen and other flash param variables not supported by the setup() function?

I don't call editing the jwplayer.js and changing the hardcoded value a real solution.

Sometimes you want to set these parameters dynamically so that would mean that I need x copies of jwplayer.js with the different hardcoded values....

Hope this will be solved soon

Regards
Joop

Ethan Feldman

JW Player Support Agent  
0 rated :

@Joop – For the time being, you will have to edit jwplayer.js, unfortunately.

JW Player

User  
0 rated :

Hi Joop

What are the odds that I'd run into the same problem as you only weeks later, only to find that you've already looked into it :)

Anyway I agree this should be a core part of the jwplayer.js setup. I think that Louis-Philippe Chiasson's solution is looking more realistic

JP

Ethan Feldman

JW Player Support Agent  
0 rated :

@JP – This will be solved in 5.4 ;)

This question has received the maximum number of answers.