magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.

Home Page:http://www.magento.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autoplay not working for YouTube and Vimeo videos.

Varshal24 opened this issue · comments

Preconditions (*)

Tested on this versions:

  1. Magento 2.4-develop branch
  2. Magento 2.4.7
  3. Magento 2.4.6
  4. Magento 2.4.5

Description (*)

The YouTube and Vimeo videos are not auto-playing when the page loads, as they are supposed to when the mentioned configuration in the 'steps to reproduce' section is enabled. Additionally, I changed the autoplay configuration in the Firefox browser, but it still did not work. I checked on several other browsers such as Opera, Safari, Edge, etc., but autoplay did not function. I noticed that some browsers restrict autoplay, which is why I verified this issue across multiple browsers and modified the Firefox configuration, but the autoplay feature did not work.

I have also verified that the browser autoplay is not restricted and works after changing the settings, by running a YouTube video in an HTML file.

Firefox configuration:
image

Steps to reproduce (*)

  1. Set the YouTube API Key in Store -> Configuration -> Catalog -> Catalog -> Product Video under this configuration.
  2. Additionally, enable the settings below named “Autostart base video” and “Auto restart video”.
  3. Create a product and add a Vimeo or YouTube video, then make it the base by selecting the base checkbox.
  4. Visit the front end and open the same product.
  5. Now the video is supposed to autoplay after the page loads, but it's not auto-playing.

Expected result (*)

  1. Youtube and Vimeo videos should be autoplay when the ‘Product Video’ configuration is set.

Actual result (*)

  1. The YouTube and Vimeo video autoplay feature is not working.

Similar Issues: #34652, #37849

Hi @Varshal24. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

Hi @engcom-Bravo. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • 4. Verify that the issue is reproducible on 2.4-develop branch
    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
  • 5. Add label Issue: Confirmed once verification is complete.
  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@magento give me 2.4-develop instance

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

Hi @Varshal24,

Thanks for your reporting and collaboration.

We have verified the issue in latest 2.4-develop instance and the issue is not reproducible.kindly refer the attached video.

Steps to reproduce

  • Set the YouTube API Key in Store -> Configuration -> Catalog -> Catalog -> Product Video under this configuration.
  • Additionally, enable the settings below named “Autostart base video” and “Auto restart video”.
  • Create a product and add a Vimeo or YouTube video, then make it the base by selecting the base checkbox.
  • Visit the front end and open the same product.
  • Now the video is supposed to autoplay after the page loads, but it's not auto-playing.

Youtube and Vimeo videos with Google Chrome

Screen.Recording.2024-05-02.at.14.36.47.mov

Youtube and Vimeo videos with Mozilla Firefox

Screen.Recording.2024-05-02.at.14.44.48.mov

Could you please let us know if we are missing anything.

Thanks.