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.
http://www.magento.com
Open Software License 3.0
11.56k stars 9.32k forks source link

Product video doesn't play when it is not placed first in the sort order. #26709

Closed aashan10 closed 5 months ago

aashan10 commented 4 years ago

Preconditions (*)

Steps to reproduce

  1. Edit the simple product of a configurable product and add a product video. ( In our case, we have used Chaz Kangeroo Hoodie as Configurable Product and Chaz Kangeroo Hoodie-XS-Black as its simple product )
  2. The video used is https://www.youtube.com/watch?v=L4XjEuCPOJY.
  3. Now, sort the video in media gallery to make it seen anywhere but not the first position.
  4. Save the product.
  5. View the configurable product in storefront product details page.
  6. Click on the color swatch to view the simple product media gallery.
  7. Click the video thumbnail and play the video.

Imgur Imgur

Expected result

  1. The video should play when clicked on the thumbnail.

Actual result

  1. Only the thumbnail image of the youtube video is visible.
  2. The video is not played if the video is not in the first position according to the sort order in admin panel. Imgur

Imgur

Imgur

Imgur

Addition Information

https://github.com/magento/magento2/issues/26709#issuecomment-602561906

I could easily reproduce the issue on the latest 2.4-develop youtube_video_26709

magento-deployment-service[bot] commented 4 years ago

Thanks for opening this issue!

m2-assistant[bot] commented 4 years ago

Hi @aashan10. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

@aashan10 do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?


m2-assistant[bot] commented 4 years ago

Hi @ajijshekh123. 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: :point_down:

ajijshekh123 commented 4 years ago

Give me @magento give me 2.4-develop instance

magento-engcom-team commented 4 years ago

Hi @ajijshekh123. Thank you for your request. I'm working on Magento 2.4-develop instance for you

magento-engcom-team commented 4 years ago

Hi @ajijshekh123, here is your Magento instance. Admin access: https://i-26709-2-4-develop.instances.magento-community.engineering/admin_723b Login: d5dd5377 Password: 0ad3122db139 Instance will be terminated in up to 3 hours.

ajijshekh123 commented 4 years ago

Hello @aashan10, After clicking on a video, Youtube video is played properly. See attached the video and Let me know which points are missing in my end or is it working fine.

Issue

Thanks.

matthew-muscat commented 4 years ago

@magento give me 2.4-develop instance

magento-engcom-team commented 4 years ago

Hi @matthew-muscat. Thank you for your request. I'm working on Magento 2.4-develop instance for you

magento-engcom-team commented 4 years ago

Hi @matthew-muscat, here is your Magento instance. Admin access: https://i-26709-2-4-develop.instances.magento-community.engineering/admin_36ba Login: c6016c60 Password: 7ca19cfdb748 Instance will be terminated in up to 3 hours.

matthew-muscat commented 4 years ago

@ajijshekh123 — confirming i'm able to repeat the issue on Magento v2.3.4 and also the latest Magento 2.4-develop snapshot.

The behaviour specifically occurs when viewing a configurable product, making a selection of a specific configuration, which contains a video located in any area other than the first image position.

If the instance remains online, this can be viewed over at... https://i-26709-2-4-develop.instances.magento-community.engineering/example-configurable-product.html

ezgif com-video-to-gif

matthew-muscat commented 4 years ago

Upon further investigation, it appears that this issue is due to the data on the Magento_ProductVideo/js/fotorama-add-video-events widget

Specifically optionsVideoData looks to have the video data always set as the first object in the array of product media gallery assets.

It would appear the sort order of the gallery is not occurring in https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/ConfigurableProduct/Block/Plugin/Product/Media/Gallery.php#L62

ghost commented 4 years ago

:white_check_mark: Confirmed by @matthew-muscat Thank you for verifying the issue! :+1: Your confirmation will help us to acknowledge and process this report.

m2-assistant[bot] commented 4 years ago

Hi @vishvesshah. 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: :point_down:


vishvesshah commented 4 years ago

@magento give me 2.4-develop instance

magento-engcom-team commented 4 years ago

Hi @vishvesshah. Thank you for your request. I'm working on Magento 2.4-develop instance for you

magento-engcom-team commented 4 years ago

Hi @vishvesshah, here is your Magento instance. Admin access: https://i-26709-2-4-develop.instances.magento-community.engineering/admin_5ee0 Login: 784cad54 Password: c164cf35ac63 Instance will be terminated in up to 3 hours.

m2-assistant[bot] commented 4 years ago

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: :point_down:

engcom-Bravo commented 4 years ago

I could easily reproduce the issue on the latest 2.4-develop youtube_video_26709

Seems like there is no Play on the video

magento-engcom-team commented 4 years ago

:white_check_mark: Confirmed by @engcom-Bravo Thank you for verifying the issue. Based on the provided information internal tickets MC-32647 were created

Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

m2-assistant[bot] commented 4 years ago

Hi @LucasCalazans. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:


LucasCalazans commented 4 years ago

@magento give me 2.4-develop instance

magento-engcom-team commented 4 years ago

Hi @LucasCalazans. Thank you for your request. I'm working on Magento 2.4-develop instance for you

magento-engcom-team commented 4 years ago

Hi @LucasCalazans, here is your Magento instance. Admin access: https://i-26709-2-4-develop.instances.magento-community.engineering/admin_4c65 Login: 597c5e5c Password: 8e599f4e1745 Instance will be terminated in up to 3 hours.

tuyennn commented 2 years ago

https://github.com/magento/magento2/issues/29690 https://github.com/magento/magento2/issues/28875 https://github.com/magento/magento2/pull/30938

m2-assistant[bot] commented 5 months ago

Hi @engcom-Delta. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:


engcom-Delta commented 5 months ago

Hi @aashan10 ,

Thanks for your reporting and collaboration.

We have verified the issue in Latest 2.4-develop instance and the issue is no more reproducible.

Screenshot 2024-06-13 at 12 50 46 AM Screenshot 2024-06-13 at 12 50 55 AM Screenshot 2024-06-13 at 12 51 49 AM Screenshot 2024-06-13 at 12 54 32 AM Screenshot 2024-06-13 at 12 55 28 AM Screenshot 2024-06-13 at 1 05 07 AM Screenshot 2024-06-13 at 1 05 56 AM Screenshot 2024-06-13 at 1 06 05 AM Screenshot 2024-06-13 at 1 08 18 AM

Hence we are closing this issue.

Thanks,