Im trying to do a work-around with the Youtube player so it uses the object vs. the iframe embed. Iframe shows black bars on the side and I want the preview image to be 100% across the playback area. Most of this is re-worked from the EmbedPlus player (which works great with my issue of having black bars ) but is unacceptable for my client:
<object id="<?php echo ${tubepress_api_const_template_Variable::VIDEO_DOM_ID}; ?>" type="application/x-shockwave-flash" width="<?php echo ${tubepress_api_const_template_Variable::EMBEDDED_WIDTH}; ?>" height="<?php echo intval(${tubepress_api_const_template_Variable::EMBEDDED_HEIGHT}) + 32; ?>" data="<?php echo ${tubepress_api_const_template_Variable::EMBEDDED_DATA_URL}; ?>">
<param name="movie" value="<?php echo ${tubepress_api_const_template_Variable::EMBEDDED_DATA_URL}; ?>" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="allowscriptaccess" value="always" />
<param name="allowFullScreen" value="true" />
<param name="flashvars" value="ytid=<?php echo ${tubepress_api_const_template_Variable::VIDEO_ID}; ?>&width=<?php echo ${tubepress_api_const_template_Variable::EMBEDDED_WIDTH}; ?>&height=<?php echo ${tubepress_api_const_template_Variable::EMBEDDED_HEIGHT}; ?>&hd=1" />
<iframe class="cantembedplus" title="YouTube video player" width="<?php echo ${tubepress_api_const_template_Variable::EMBEDDED_WIDTH}; ?>" height="<?php echo ${tubepress_api_const_template_Variable::EMBEDDED_HEIGHT}; ?>" src="<?php echo ${tubepress_api_const_template_Variable::EMBEDDED_DATA_URL}; ?>" frameborder="0" allowfullscreen></iframe>
</object>
I get a broke video, along with a player that no longer fits my dimensions.