[wp-trac] [WordPress Trac] #23282: Add shortcodes for inline HTML5 audio / video
WordPress Trac
noreply at wordpress.org
Sat Feb 23 23:42:02 UTC 2013
#23282: Add shortcodes for inline HTML5 audio / video
-----------------------------------+--------------------
Reporter: wonderboymusic | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 3.6
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion |
-----------------------------------+--------------------
Comment (by Viper007Bond):
Replying to [comment:32 wonderboymusic]:
> Alex, you are correct :) I have now added embed handlers for audio and
video in attachment:23282.8.diff - now, if you just leave a
*.(mp3|ogg|wma) or *.(mp4|webm|ogv|wma|flv) URL on a line by itself, it
will magically appear as a player. #boom
Nice!
I would pass through the width/height values for the video shortcode
though so that this will work:
`[embed width="123" height="456"]video url[/embed]`
You can check against the `$rawattr` array instead of the `$attr` array to
see if the user specifically passed values rather than if the embed API
generated the values instead (which it will do if the user doesn't supply
them).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23282#comment:35>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list