In reply to Otto's comments about oEmbed:<br><br>Perhaps one could come close to getting auto-adjusting media widths with that tool, but it is still static adjusting. If you shrink a standard browser view, I don't think the video window will shrink responsively. It would seem that the $content-width will not dynamically change with a shrinking window. On the other hand, my theme based YouTube shortcode will, as well as providing other specific YouTube control parameters.<br>
<br> And isn't there only one instance of $content-width? What about a situation where the user wants a video in both the content area and a sidebar or header or where ever? Will the oEmbed still work? My theme based version does because it knows exactly which <div> the shortcode is being used from theme based knowledge.<br>
<br>While in theory this specific example might possibly have theme independent implementations, I still believe the example supports my point that there are some shortcodes that can really benefit from a theme's specific "knowledge", and thus are appropriate tools to provide with the theme.<br>
<br>Bruce Wampler<br><br>> So here, you're mistaken. You don't necessarily need to have a special<br>> shortcode for handling youtube videos, or any other videos that are<br>> supported by oEmbed. All you have to do is adjust your $content_width<br>
> to one that is appropriate for the device. Then the built in embed<br>> mechanisms will handle it just fine.<br>> <br>> -Otto<br>