@Bruce -<br><br>It would seem you are describing a deficiency in the oEmbed functionality found in core, have you reported this on Trac? Maybe suggested a patch based on your code?<br><br>I believe that would be the better way to sort out this specific issue as I would consider what you are describing as a bug ...<br>
<br><br clear="all">Cais.<br>
<br><br><div class="gmail_quote">On Sat, Feb 18, 2012 at 12:56 PM, Bruce Wampler <span dir="ltr"><<a href="mailto:weavertheme@gmail.com">weavertheme@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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.<span class="HOEnZb"><font color="#888888"><br>
<br>Bruce Wampler</font></span><div class="HOEnZb"><div class="h5"><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>
</div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br>