
Display controlbar only when mouseover - Jwplayer 7.1.1
Hey guys, I want to display the controlbar only on mouseover event. I was able to achieve this in Jwplayer 7.0.3 using something like this:
var controlbarDiv = playerFrame.querySelectorAll('.jw-controls .jw-controlbar');
playerFrame.onmouseout = function () {
playerFrame.className += ' ' + 'jw-flag-user-inactive';
}
controlbarDiv[0].onmouseover = function() {
playerFrame.classList.remove('jw-flag-user-inactive');
}
The player (playerFrame) had its own mouseover to remove the user-inactive class, but now, in 7.1.1, the mouseover event is not triggered. If I add it to my playerFrame, it would behave very strange, but still won't display the controlbar. Any ideas to what change might cause this?
Thanks.