Skip to content

Unable to Play Videos on Mobile Devices #38137

Closed
@Kashyap1999

Description

@Kashyap1999

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.

Screenshot-1
image (18)

Steps to reproduce

  1. Create a product with Images and video.
  2. Visit the product in store front using mobile device or mobile view mode of the Chrome browser on desktop.
  3. 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

No one assigned

    Labels

    Area: ContentComponent: UiIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions