Autoplay not working for YouTube and Vimeo videos.
Varshal24 opened this issue · comments
Preconditions (*)
Tested on this versions:
- Magento 2.4-develop branch
- Magento 2.4.7
- Magento 2.4.6
- 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.
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.
Expected result (*)
- Youtube and Vimeo videos should be autoplay when the ‘Product Video’ configuration is set.
Actual result (*)
- The YouTube and Vimeo video autoplay feature is not working.
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:
@magento give me 2.4-develop instance
- upcoming 2.4.x release- For more details, review the Magento Contributor Assistant documentation.
- Add a comment to assign the issue:
@magento I am working on this
- To learn more about issue processing workflow, refer to the Code Contributions.
Join Magento Community Engineering Slack and ask your questions in #github channel.
🕙 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
branchDetails
- Add the comment@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.4-develop
branch, please, add the labelReproduced 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 @engcom-Bravo, here is your Magento Instance: https://6f5d6f146d66fa117473f55caacca821.instances-prod.magento-community.engineering
Admin access: https://6f5d6f146d66fa117473f55caacca821.instances-prod.magento-community.engineering/admin_c4b9
Login: fc4a33f4
Password: b4291b25f91a
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.