![](https://secure.gravatar.com/avatar/6d4f934b6de5d93216b71838d7dc330e?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
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.