Welcome close

We've made some changes!

As you may have noticed, we've made some changes to the DevCenter to include the new Exchange site, a code community for Ektron developers. You may use the same username and password to login for both the Exchange and DevCenter. Your DevCenter profile has moved over to the Exchange site. You also may notice we have removed some profile functionality in favor of new functionality, including Activity Streams. We welcome your feedback about the site on the Exchange forum.

SEARCH : searchSite
This SectionSite Wide
SEO_version8 

RSS Feed Print Category View
Embedding YouTube video
JMartinez
Posted: Wednesday, April 29, 2009 4:43 PM
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


Axel
Posted: Friday, July 24, 2009 12:59 PM
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...
kwashien@yahoo.com
Posted: Tuesday, May 4, 2010 12:54 PM
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


 

Jump to different Forum... 






Register for Synergy 2010

Articles
Design without Borders, yet with Structure
CMS400.NET and Adobe Flex
GeoMapping
EkML Ektron Markup Language
Taxonomy

[First] [Previous] [Next] [Last]


See All Articles