Skip to content

Commit

Permalink
fix(player): Added play event to hide control bar
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa8626 committed Nov 27, 2018
1 parent f59c144 commit e1884bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ class Controls implements PlayerComponent {
this._startControlTimer(1000);
}
};
this.events.media.play = () => {
if (isMediaVideo) {
this._startControlTimer(1000);
}
};
this.events.media.pause = () => {
this.player.getContainer().classList.remove('op-controls--hidden');
this._stopControlTimer();
Expand Down

0 comments on commit e1884bb

Please sign in to comment.