[wp-trac] [WordPress Trac] #29126: Add Kickstarter oEmbed support
WordPress Trac
noreply at wordpress.org
Thu Sep 18 19:51:27 UTC 2014
#29126: Add Kickstarter oEmbed support
-------------------------------------+------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.1
Component: Embeds | Version:
Severity: minor | Resolution:
Keywords: needs-patch 2nd-opinion | Focuses:
-------------------------------------+------------------
Comment (by studionashvegas):
Using the "documentation" on oEmbed.com, I have a concept working on a
local site.
Some things I've noticed: As mentioned above, if we use the recommended
API endpoint - and if no video has been uploaded to the project - it
displays a 220px card instead.
The card's responsive up to 639px. At 640px and above, the project image
jumps to 150px tall with the actual picture set as the background image -
scaled to 100%.
View https://www.kickstarter.com/projects/324283889/potato-
salad/widget/card.html?v=2 as an example.
Video is set to stretch to the width of the screen with the height
adjusting proportionally.
As is, I think this may better serve as a shortcode vs a pure oEmbed,
unless there's an easy way to 1) pass values through to determine whether
to display a card or video and 2) pass through the content width in order
to have the video be appropriately sized.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29126#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list