- Issue created by @mlinnetz
In Controller/OEmbedIframeController.php, Line 46, if the Provider="YouTube" it adds a param to the $url_parts['query'] array, enablejsapi=TRUE, which should result in &enablejsapi=1 being added to the iFrame URL for the Youtube video.
I confirmed via a debug statement that the $media_oembed_control['provider_name'] === 'YouTube'
, but my iFrame URL does not have &enablejsapi=1.
It's difficult to pin down why this isn't working and what might be conflicting with it, because I have used this module before on other projects and that enablejsapi parameter has worked before, same version 2.0.0-beta2. Discussed briefly with a maintainer and he thought perhaps it might have to do with Google tag manager being embeded into the iframe twig template.
Here's a description of my setup, although the main point is to just render a Remote Video on the page, and is surely a simpler way to reproduce:
Active
2.0
Code