Problem/Motivation
Thestr_replace in the class OEmbedIframeController.php attempts to replace the URL in the markup but in the case of using the example below as Vimeo-link there is an extra &app_id=122963 in the markup which does not match the new url.
- Vimeo-link https://vimeo.com/757472892/954b0673ae
- Vimeo-embed example https://vimeo.com/api/oembed.json?url=https://vimeo.com/757472892/954b06...
Steps to reproduce
- Add the Vimeo-link to the media library
- Enable the field display options: Autoplay video and Embed as background video
Proposed resolution
Make a consistent approach that handles both encoded and unencoded URLs.
Issue fork media_oembed_control-3535170
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
coretex commentedComment #3
coretex commentedComment #5
coretex commentedComment #6
coretex commentedComment #8
jacobbell84 commentedThank you!