![](https://secure.gravatar.com/avatar/96e058677a30bdd0df9e24d289e1c953?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
JWplayer7 - Hide controlbar when video ends (7.4.4)
I have a follow up question to this question/solution => https://support.jwplayer.com/customer/portal/questions/14598723-jwplayer7-hide-controlbar-when-video-ends
I updated the JWplayer from v7.2.4 to v7.4.4 and the above solution doesn't work anymore =(
Previous Javascript snippet:
playerInstance.on('complete',function(){
var thePlayer = document.querySelector(".jw-state-complete");
thePlayer.classList.remove("jw-state-complete");
thePlayer.classList.add("jw-state-idle");
});
On "complete" the classes are not being changed anymore. I would appreciate any help =)