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

Youtube video on the product page is not working. #34652

Closed TarasPasickyy closed 2 years ago

TarasPasickyy commented 3 years ago

Preconditions (*)

  1. Magento ver. 2.4.0-p1 EE
  2. Product is created.)

Steps to reproduce (*)

  1. Add Youtube video to the product image gallery.
  2. Add cms block to the product page that have iframe from Youtube.

Expected result (*)

  1. Both videos can be loaded.

Actual result (*)

  1. Gallery video doesn't work.

Issue is in this file: https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/ProductVideo/view/frontend/web/js/load-player.js

Event "window.onYouTubeIframeAPIReady" from the file load-player.js is not working. (because another iframe have loaded Youtube js and triggered it, already) After 'clicking' play video from gallery - there is duplicates of https://www.youtube.com/iframe_api js scripts. Also load-player.js is not returning widgets, so developers can't create mixin on those three widgets.


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

m2-assistant[bot] commented 3 years ago

Hi @TarasPasickyy. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:

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.


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: 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.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] commented 3 years ago

Hi @engcom-Delta. 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:

m2-assistant[bot] commented 2 years ago

Hi @engcom-Hotel. 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-Hotel commented 2 years ago

Hello @TarasPasickyy,

Thanks for posting the issue!

We request you to please provide us some sample code or screenshots of your CMS block.

Thanks

engcom-Hotel commented 2 years ago

Dear @TarasPasickyy,

We have noticed that this issue has not been updated for a period of 14 Days. Hence we assume that this issue is fixed now, so we are closing it. Please raise a fresh ticket or reopen this ticket if you need more assistance on this.

Regards