Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Videos do not pause on click on Android #452

Open
ckeim opened this issue Sep 25, 2021 · 2 comments
Open

Videos do not pause on click on Android #452

ckeim opened this issue Sep 25, 2021 · 2 comments

Comments

@ckeim
Copy link

ckeim commented Sep 25, 2021

Once a user clicks the large play icon - they cannot pause the video by re-clicking the video like they can on desktop.

@aykodesmedt
Copy link

I have the same problem. There is no play icon shown and the user can't pause the video on mobile. This occurs on Android as well as iOS.

@niekysu
Copy link

niekysu commented Sep 15, 2022

this worked for me:

mounted() {

  const videoWrapper = document.getElementsByClassName("plyr__video-wrapper")[0];     
              videoWrapper.addEventListener("click", event => {
                  this.$refs.plyr.player.togglePlay();
                  event.stopPropagation();  // Necessary or the video will toggle twice => no playback
   });
   
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants