feat: mobile play button

This commit is contained in:
DIYgod
2020-02-15 18:36:54 +08:00
parent 146cb9ecb8
commit 01b1c6b5ca
6 changed files with 45 additions and 4 deletions
+4
View File
@@ -40,6 +40,10 @@ class Controller {
this.player.toggle();
});
this.player.template.mobilePlayButton.addEventListener('click', () => {
this.player.toggle();
});
if (!utils.isMobile) {
this.player.template.videoWrap.addEventListener('click', () => {
this.player.toggle();