magesuite / theme-creativeshop

Open Software License 3.0
38 stars 24 forks source link

Unable to play embedded YouTube video in product gallery #83

Closed ggm-dev closed 3 years ago

ggm-dev commented 3 years ago

Hi all -

Today I needed to add a video to a product page. I know I can add via content constructor but thought I'd try to add as normal gallery asset under "Image and Videos" of Catalog > Product in Magento 2.4.2p1. The thumbnail shows up on frontend but I am unable to play video. I have configured YouTube API key. Video plays fine with normal behavior when I switch to luma theme, but does not play with theme-creativesuite or my custom child theme. Console error:

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://devsiteurl.com') www-widgetapi.js:731

If anyone has encountered this issue I would love to hear from you.

Thanks all -

David

ggm-dev commented 3 years ago

Evidently this issue was already discussed here. I applied fix and it worked:-). https://github.com/magesuite/magesuite/issues/82