Joined: 3/4/2008 Posts: 34
|
I do not know if anyone else out there has had as much trouble with embeding videos into CMS content as I have had, but I knew there had to be an easier way. I mean between having to recopy the embed tags every time you edit the content then having to publish it from the code view, to trying to get the z-index to work so drop down menus aren't hidden behind the video. Personally after about the 20th time recopying the embed tag I did some quick research and found this nifty little tid-bit at http://www.nazly.net/post/embedding-youtube-video-as-valid-xhtml-10-250/. To sum it up you do not need to use the <embed> tag at all - nor should you use it since it is deprecated and won't pass strict XHTML validation. You can write your <object> tags as such: <object type="application/x-shockwave-flash" style="width:425px; height:355px;" data="http://www.youtube.com/v/rybb85zc5yY"> <param name="movie" value="http://www.youtube.com/v/rybb85zc5yY" /> <param name="wmode" value="transparent" /> </object> This allows you to completly skip using the <embed> tag and it works in all browsers that I have access to (ie6, ie7, ff2, ff3, safari, Opera and chrome). From here just wrap it in an HTML tag with a class set the z-index in your css and all is right with the world. Best of all you can now edit your content with out having to copy the <embed> tag every single time. Maybe everyone already knew this but I found it extremly useful and thought I would share the insight. Regards, Jeff M
|
Joined: 10/25/2008 Posts: 2
|
You are a life saver! This worked like a charm.
It's still annoying that Ektron can't support what YouTube gives you as Embed code. This means that non-technical users cannot add their own videos if they expect it to play past the next edit...
|
Joined: 1/14/2009 Posts: 20
|
Thanks for your post.
Is there another way to prevent the video from bring downloaded or copied. I just want them to be able to play it. WMV files have settings to do that but is there code that can be used to do it as well?
Thanks
|