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

Intermittent issue with pausing and playing Vimeo backgrounds of Text on Media when logged in #4034

Open
bberndt-uaz opened this issue Feb 6, 2025 · 0 comments
Labels
bug Something isn't working editor experience Improvements to the editor experience for individuals editing Quickstart websites low priority Nice to have for this milestone, can be pushed out if needed

Comments

@bberndt-uaz
Copy link
Contributor

Problem/Motivation

Pull request #3981 adds support for Vimeo videos as Text on Media backgrounds:

In testing this pull request, we encountered an issue where the pause and play buttons on Vimeo videos would sometimes fail to work if:

  • the user is logged in to Drupal, and
  • the user is accessing the page with Chrome (Windows or macOS).

This issue with the pause and play buttons does not occur if:

  • The user is not logged in (an anonymous user). Site visitors are not affected by this issue.
  • The user is logged in and is accessing the page with Edge on Windows or with Firefox or Safari on macOS. Authenticated users using browsers other than Chrome do not appear to be affected by this issue.

Describe the bug

From our testing, the pause and play buttons which Quickstart adds in the bottom right corner of the Vimeo video appear to be triggering the JavaScript click event correctly. Also, the JavaScript variable for the Vimeo player seems to be correct. Somehow the bgVideoParagraphs[index].player.pause() and bgVideoParagraphs[index].player.play() functions may fail to update the playback of the video in Chrome for authenticated users.

To Reproduce

Steps to reproduce the behavior:

  1. Open a Chrome browser window.
  2. Log in to a Quickstart site as a Content Editor or a more privileged role.
  3. Go to a page with a Text on Media paragraph using a Vimeo remote video background or create one.
  4. View the page and observe whether the Pause button works to pause the automatically played Vimeo video background.
  5. Reload the page multiple times to observe the intermittent behavior.

Proposed resolution

To be determined

Expected behavior

The Pause and Play buttons on Text on Media video backgrounds should work reliably for all users.

@bberndt-uaz bberndt-uaz added bug Something isn't working editor experience Improvements to the editor experience for individuals editing Quickstart websites low priority Nice to have for this milestone, can be pushed out if needed labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working editor experience Improvements to the editor experience for individuals editing Quickstart websites low priority Nice to have for this milestone, can be pushed out if needed
Projects
None yet
Development

No branches or pull requests

1 participant