aem-core-wcm-components
aem-core-wcm-components copied to clipboard
Youtube videos autoplay on close of edit dialog
Bug present as of version: 2.24.7-SNAPSHOT
There is logic in the Youtube Embeddable to prevent the autoplay parameter from being used when in author Edit mode. The logic check is in the YouYubeImpl
sling model that checks for the presence of the component's parent's edit context, which is returning null on component refresh after the dialog is closed. This results in a bug where the video is autoplaying in author mode until the page is refreshed (on page load the check works correctly).