Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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");
});
});

2 Community Answers

Andrew

JW Player Support Agent  
0 rated :

Hi,

Do you have an example of where this is implemented?

leu

User  
0 rated :

Yes here: http://www.detektiv-conan.ch/Videoplayer/index.html

This question has received the maximum number of answers.