question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: make clicks on video area toggle play/pause

See original GitHub issue

Feature request: consider making a click on the video toggle between play/pause. Currently the only way to play/pause the video is by clicking the play/pause button in the control bar. Tested with media-chrome@0.4.2 on codepen.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cjpillsburycommented, Jan 25, 2022

Good callout @luwes I’d agree we should make sure we’re not loosing that if at all possible in the implementation.

1reaction
luwescommented, Jan 24, 2022

It would be nice to keep the right-click menu options of the video element. Will these be removed with a new gesture layer on top? Picture in picture and Chromecasting is always nice to have without needing special buttons.

SCR-20220124-oin

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature Request] Play/Pause by clicking on video area #210
It looks like there's a separate div that contains the player buttons, with the classes player-hover player-controls-bottom , in case that helps ...
Read more >
Toggle play/pause on background videos - Webflow University
Double-click the Background video or press Enter/Return to open Background video settings; Check the Include play/pause button checkbox. Important: We strongly ...
Read more >
Click Video To Toggle Pause/Play - The VideoLAN Forums
So why not toggle pause/play when clicking on the VLC video? YouTube has this functionality already. And I don't see any good reason...
Read more >
Video play/pause toggle on click - E-Learning Heroes
I have embedded a screen recording video on a slide, and would like to disable the default pause/play function that occurs when the...
Read more >
How do I use Javascript to toggle play/pause for multiple ...
When I add onclick="playPause()" to just one video it works great. I click the video and it'll play or pause just like I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found