javascriptoverlaytransparentjwplayerwmode

Setting wmode for HTML element overlays of jwplayer using javascript


I am trying to overlay a <div> on my jwplayer. I believe in order to do this, I have to set the 'wmode' parameter to be 'transparent.' So far I've been unsuccessful trying it this way:

jwplayer('profile-video').setup(
                'width': '640',
                'height': '360',
                'skin' : "/jwplayer/skins/bekle.xml",
                'file' : video_url,
                'wmode' : 'transparent'
            )

Anyone see where I'm going wrong or maybe 'wmode' is the wrong parameter to be setting?


Solution

  • That should be fine too, but the best way to really overlay a div on top of a JW Player is via a JavaScript plugin. We have a SDK available here with a sample Hello World JS based plugin - http://developer.longtailvideo.com/trac/