
removeButton doesen't remove the label (Bug?)
I use the JS API to add and remove a button (for skiping intros in movies). It works fine, but when the Button is hoverd an the removeBotton command is fired than the Label from the button burn in the Video.
Is this a bug?
Here my Code:
jwplayer().onPlay(function(){
jwplayer().onTime(function(event){
if (jwplayer().getPosition()>= 92 && jwplayer().getPosition()<= 208 ){
jwplayer().addButton(
"/skip.png",
"Skip Intro",
function() {
jwplayer().seek(207);
},
"skip"
);
}
else jwplayer().removeButton("skip");
});
});