Skip to content
New issue

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

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

Already on GitHub? # to your account

Tapping on mobile device doesn't pause the video #1061

Open
DATEx2 opened this issue Dec 11, 2024 · 0 comments
Open

Tapping on mobile device doesn't pause the video #1061

DATEx2 opened this issue Dec 11, 2024 · 0 comments

Comments

@DATEx2
Copy link

DATEx2 commented Dec 11, 2024

Expected Behavior

Tapping anywhere on the video should pause the video (the same it does on the desktop when you click anywhere on the video)

Actual Behavior

Tapping anywhere on the video does absolutely nothing

Steps to Reproduce

Browse a page that renders an <iframe and through player.js tapping on the video nothing happens. Then browse the same page and clicking on the video pauses the video and triggers the paused event as needed.

This is the correct code:

e.backbone.paused ? Wt._playButtonPressed : Wt._pauseButtonPressed

This is the actual code

 e.events.fire(Wt._playButtonPressed)

Of course, the code is from the minified file.
In the method

k(n).on(o.pointerEvents ? "pointerup" : "click", (function(i) {

Even if you want a different behavior, please add an option so it is configurable (not to do anything like now, or to pause the video like on the desktop)

This is a show stopper because the user must interact first with the iframe through a click - but there is no event knowing when he does so. Therefore, on pause it was a cool trick to know he was actually clicking (tapping) anywhere, which would cause the video to pause.

Thank you

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

No branches or pull requests

1 participant