When i embed a flash video in HTML it works in IE and in Firefox but not in chrome.
I’ve looked it up and I’ve found that chrome adds two attributes to the embed tag, width and height.
i have already set the width and height attribute in the embed tag in pixels but from some reason chrome changes it to percentage. when i inspect the element and write pixels instead of percentage the flash is visible again.
This is the embed
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="600" height="1300">
<param name="src" value="flash.swf" />
<param name="wmode" value="transparent" />
<embed type="application/x-shockwave-flash"
width="600px" height="1300px" src="flash.swf"
wmode="transparent">
</embed>
</object>
How can i fix it?
i know is an old post , but i ran to this problem too and i found a solution, when you embed a video in worpress, use just the “embed” tag, because it seems that google chrome when its read the “object” tag, skips the tags inside ,
OLD CODE
NEW CODE
Also as suggested by @joshuahedlund and probably the right answer , just adding the type seems to fix the issue