Add the onToggleHide callback that will be called with a boolean indicating the visibility state of the player. This callback should be called after user taps on the button:
Player's constructor with the callback:
new MojsPlayer({
add: timeline,
onToggleShow(isHidden) {
if (isHidden) { // do something when player is invisiblie }
else { // do something when player is visiblie }
}
});
Please let me know is you are want to help and have any question.
Add the
onToggleHide
callback that will be called with aboolean
indicating the visibility state of the player. This callback should be called after user taps on the button:Player's constructor with the callback:
Please let me know is you are want to help and have any question.