Closed (fixed)
Project:
Media: oEmbed
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Jul 2015 at 14:55 UTC
Updated:
12 Jan 2016 at 19:52 UTC
Jump to comment: Most recent
Comments
Comment #1
devin carlson commentedThe oEmbed protocol itself only defines the
maxwidth,maxheightandformatparameters but each provider may support additional custom parameters. So you may be able to do some customization, depending on whether a provider accepts a parameter for autoplay, play chrome colour, etc. Otherwise you can try to parse the response and alter the HTML or you may be better off with a single provider module such as Media: YouTube, Media: Vimeo, etc which will generally provide more customization as they work with provider-specific APIs.You can implement
hook_media_oembed_request_alter()to alter the request to the oEmbed endpoint andhook_media_oembed_response_alter()to alter the response.Comment #3
codesidekick commentedHere's an example with youtube...
It's terrible but a limitation of how oembed works.
Comment #4
thejimbirch commentedcodesidekick++ Thanks, that is great.