Click to See Complete Forum and Search --> : Embedding Flash Video HTML Errors


WhiteDragon
09-14-2008, 01:48 PM
I'm trying to embed a flash file within a <div> now (2) problem occur, first of all the flash video does not show and second when I try to validate the page I get a bunch of HTML errors this is the code I am using within a div:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="725" height="505" id="CSvideogallery" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="wmode" value="transparent" />
<param name="movie" value="/test/creativesheepvideo.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="CSvideogallery.swf" quality="high" bgcolor="#000000" width="725" height="505" name="CSvideogallery" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Also I was informed by EyeonVideo, in order to have the stage of a flash video transparent you'd have to put this:

<param name="wmode" value="transparent"/>

within the code but where exactly? I hope someone can help me with these problems.

Eye for Video
09-15-2008, 01:05 AM
Hey man (or woman).. that’s Eye FOR Video… guess I just haven’t made much of an impression… ooohhhhh well….
OK a couple of things, worry about the validate part after you get the video working. Sorry to say that the <embed> part is probably not going to validate.. but that’s how you get it to play. It’s like the “Accept” or “Decline” ….. all that small print when installing new software. The only choice to make it work is to “Accept”. In this case, for now, just use the <embed>. The <object> portion is for Internet Explorer while the <embed> is used by Firefox. They each (supposedly) ignore the code for the other. But because of this symbiotic relationship, the <embed> must be within the <object>
Alright… let’s have a look at your code, I’ll break it out into <object> and <embed>..

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="725" height="505" id="CSvideogallery" align="middle"> (This is an opening tag and is not self closing.)
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="wmode" value="transparent" />
<param name="movie" value="/test/creativesheepvideo.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />(/>Closes param name, not object)
OK to NOT close <object> since <embed> must be within <object>.

<embed src="CSvideogallery.swf"
quality="high"
bgcolor="#000000"
width="725"
height="505"
name="CSvideogallery"
align="middle"
allowScriptAccess="sameDomain"
allowFullScreen="false"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />(embed is not a self closing tag)
So after the embed open tag, use a </embed>
Then close </object>
So once you get that out of the way, here’s why your movie won’t play
<param name="movie" value"…swf”
should equal
<embed src="…swf”
<param name value="/test/creativesheepvideo.swf"
see the diff
<embed src="CSvideogallery.swf"

This must be the exact path to the file. For example:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1003" height="165">
<param name="movie" value="images/whw_banner_no_ds2.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent"/>

<embed src="images/whw_banner_w_ds2.swf"
quality="high"
pluginspage=http://www.macromedia.com/go/getflashplayer
type="application/x-shockwave-flash"
width="1003"
height="165"
wmode="transparent">
</embed>
</object>

OK, now what did I miss?????
Eye for Video
www.cidigitalmedia.com

WhiteDragon
09-15-2008, 08:25 PM
Alright I got the flash file to load in FireFox, but it is not loading in IE and the background of the scene is not transparent:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="725" height="505" id="CSvideogallery" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="wmode" value="transparent" />
<param name="movie" value="_swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="flashfile.swf" quality="high" bgcolor="#000000" width="725" height="505" name="Flashfile" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

WhiteDragon
09-15-2008, 08:59 PM
Alright, I got it working, but I just want it so that it validates, now!!

Eye for Video
09-15-2008, 10:26 PM
Well good luck on that. If you figure out how to get it all to validate, please let me know.
EfV

WhiteDragon
09-15-2008, 10:29 PM
I got it to validate !!!!

Eye for Video
09-16-2008, 12:13 AM
OK now it's your turn... how about posting the code so we can all learn from that.
EfV

WhiteDragon
09-16-2008, 10:36 AM
http://code.google.com/p/swfobject/

SWF Object, it works and it validates beautifully.

Eye for Video
09-18-2008, 10:46 PM
I use swfobject a lot, I really like it. It also gives you the opportunity to create alternate content which spiders can index. You don't need to just use "You must have Flash to play this file". You can include any html, links, text, images, etc.
But.. could you ever get <embed> to validate? I couldn't..
EfV

WhiteDragon
09-18-2008, 11:04 PM
No neither could I, but I keep getting this 2px border around my flash files when you do something within them I don't know how to get rid of.