Description
Preconditions
- Magento 2.4-develop
Description
When attempting to play product videos on various mobile devices, such as Android and iPhone, as well as in the mobile view mode of the Chrome browser on a desktop, the videos are not played and not showing any errors in the console. The video is working properly in desktop view.
Steps to reproduce
- Create a product with Images and video.
- Visit the product in store front using mobile device or mobile view mode of the Chrome browser on desktop.
- Play video.
Expected result
Video will be play on any mobile devices or view mode of the Chrome browser.
Actual result
Video is not played on mobile device.
Additional information
This issue arise after merge Fix broken fotorama image slider on mobile Fixes #37232 #37355 PR.
In this PR solved issue with fotorama Image slider on mobile.
In Magento 2.4.6-p2 there are not having issue with the video on mobile devices.
File name: Fotorama.js
Line 1143: el.addEventListener ? el.addEventListener(e, fn, {passive: !!bool}) : el.attachEvent('on' + e, fn);
In this line, added {passive: !!bool} for sloving slider issue but it affected on video played in mobile. due to this it started causing an issue with the video played on moble. If we revert the {passive: !!bool} to !!bool as per magento 2.4.6-p2 video is played on mobiles but slider issue will cause a problem.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status