<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>About Web Development by Activo &#187; WYSIWYG</title>
	<atom:link href="http://www.activoinc.com/blog/tag/wysiwyg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.activoinc.com/blog</link>
	<description>Web Development in a Web 2.0 World</description>
	<lastBuildDate>Wed, 24 Nov 2010 00:25:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Embedding Videos in Ektron</title>
		<link>http://www.activoinc.com/blog/2009/07/02/embedding-videos-in-ektron/</link>
		<comments>http://www.activoinc.com/blog/2009/07/02/embedding-videos-in-ektron/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 17:36:16 +0000</pubDate>
		<dc:creator>Ron Peled</dc:creator>
				<category><![CDATA[Ektron]]></category>
		<category><![CDATA[WYSIWYG]]></category>

		<guid isPermaLink="false">http://www.activoinc.com/blog/?p=244</guid>
		<description><![CDATA[Almost every other day what seems to be a simple task will reveal itself as a mini project. Perhaps a side-effect of the paste of which things change in the web development world. This is exactly what happened when I tried to embed a movie from backlight.tv in to an Ektron site. It did not [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-247" title="video_icon_full" src="http://www.activoinc.com/blog/wp-content/uploads/2009/07/video_icon_full.jpg" alt="video_icon_full" width="300" height="300" />Almost every other day what seems to be a simple task will reveal itself as a mini project. Perhaps a side-effect of the paste of which things change in the web development world. This is exactly what happened when I tried to embed a movie from backlight.tv in to an Ektron site. It did not work and the issue was not trivial.</p>
<p>This is the code that needed to be embedded into the body of the page which will trigger a flash player and stream a flash movie in to the browser:</p>
<pre>&lt;object class="cantaloupe_video" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
width="480" height="294" id="backlight_player" align="middle"&gt;
&lt;param name="allowScriptAccess" value="always" /&gt;
&lt;param name="allowFullScreen" value="true" /&gt;
&lt;param name="movie" value="http://player.backlight.tv/player/?video_code=VDF2upIPH8s6239EQ90L" /&gt;
&lt;param name="quality" value="high" /&gt;
&lt;param name="bgcolor" value="#000000" /&gt;
&lt;param name="flashvars" value="" /&gt;
&lt;embed src="http://player.backlight.tv/player/?video_code=VDF2upIPH8s6239EQ90L" flashvars="" quality="high" bgcolor="#000000" width="480" height="294" name="backlight_player" align="middle" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;
&lt;/object&gt;</pre>
<p>Well, after I open a new content block and paste this code in the richtextarea/html input field and publish it, no video is displayed on the front page. After various debugging sessions I discovered that Ektron automatically strips out the &lt;embed&gt; tag. This is done probably because Ektron is trying to produce valid XHTML/HTML code and the embed tag is not.</p>
<p>How do we overcome the issue? We really have two options:</p>
<ol>
<li>Force Ektron&#8217;s new WYSIWYG editor to accept the invalid code and display it with the embed tag (not recommended, will not be covered here).</li>
<li>Find a better way to embed the video with valid code.</li>
</ol>
<p>While option one is not recommended and I&#8217;ll not cover it here, option two is quite easy and clean. To produce clean code use the following few lines of HTML instead, you can edit the original video code manually in an editor and then insert it into the content block:</p>
<pre>&lt;object type="application/x-shockwave-flash" style="width:454px; height:278px;"
data="http://player.backlight.tv/player/?video_code=VDF2upIPH8s6239EQ90L"&gt;
&lt;param name="movie" value="http://player.backlight.tv/player/?video_code=VDF2upIPH8s6239EQ90L" /&gt;
&lt;param name="wmode" value="transparent" /&gt;
&lt;/object&gt;</pre>
<p>What you need to focus on in the object tag which includes the width and height in the style element and the data element which includes the URL to the movie itself. Only one parameter is really required here: &#8216;movie&#8217; which has the same URL to the actual movie. Everything else is not required and may not be necessary.</p>
<p>So, after cleaning up the original code, I inserted this new one into the content block, published it and vuala! it worked.</p>
<p>Thanks to <a href="http://dev.ektron.com/forum.aspx?g=posts&amp;t=25440">Jeff Martinez for pointing it out on the Ektron Fourms</a>.</p>
<h3  class="related_post_title">Most Commected Posts</h3><ul class="related_post"><li>April 13, 2008 -- <a href="http://www.activoinc.com/blog/2008/04/13/about-linux-distros-ubuntu-and-centos/" title="About Linux Distros: Ubuntu and CentOS">About Linux Distros: Ubuntu and CentOS</a> (9)</li><li>October 2, 2009 -- <a href="http://www.activoinc.com/blog/2009/10/02/keywordluv-a-must-have-wordpress-plugin/" title="KeywordLuv: a must have wordpress plugin">KeywordLuv: a must have wordpress plugin</a> (7)</li><li>March 10, 2008 -- <a href="http://www.activoinc.com/blog/2008/03/10/10-key-search-engine-optimization-items-feeding-the-spiders/" title="10 Key Search Engine Optimization Items &#8211; Feeding the Spiders">10 Key Search Engine Optimization Items &#8211; Feeding the Spiders</a> (5)</li><li>October 5, 2009 -- <a href="http://www.activoinc.com/blog/2009/10/05/updating-inove-to-work-with-keywordluv-plugin/" title="Updating iNove to work with KeywordLuv plugin">Updating iNove to work with KeywordLuv plugin</a> (5)</li><li>August 19, 2008 -- <a href="http://www.activoinc.com/blog/2008/08/19/5-missing-features-preventing-joomla-cms-from-entering-the-enterprise-cms-market/" title="5 Missing Features Preventing Joomla! CMS from Entering the Enterprise CMS Market">5 Missing Features Preventing Joomla! CMS from Entering the Enterprise CMS Market</a> (3)</li><li>August 25, 2008 -- <a href="http://www.activoinc.com/blog/2008/08/25/zencart-ver-1-4-looking-ahead/" title="Looking Ahead: ZenCart ver 1.4">Looking Ahead: ZenCart ver 1.4</a> (3)</li><li>September 25, 2009 -- <a href="http://www.activoinc.com/blog/2009/09/25/magentos-order-management-workflow-comprehensive-but-unrealistic/" title="Magento&#8217;s Order Management Workflow: Comprehensive but Unrealistic">Magento&#8217;s Order Management Workflow: Comprehensive but Unrealistic</a> (3)</li><li>October 15, 2009 -- <a href="http://www.activoinc.com/blog/2009/10/15/zencart-1-3-8-and-php-5-2-11-bug-problem-login-to-admin-area/" title="ZenCart 1.3.8 and PHP 5.2.11 Bug: problem login to admin area">ZenCart 1.3.8 and PHP 5.2.11 Bug: problem login to admin area</a> (3)</li><li>November 26, 2009 -- <a href="http://www.activoinc.com/blog/2009/11/26/3-interesting-trends-in-web-browsers/" title="3 Interesting Trends in Web Browsers">3 Interesting Trends in Web Browsers</a> (3)</li><li>July 29, 2007 -- <a href="http://www.activoinc.com/blog/2007/07/29/why-we-chose-eventum-over-any-other-issue-tracking-system/" title="Why we chose Eventum over any other issue tracking system?">Why we chose Eventum over any other issue tracking system?</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.activoinc.com/blog/2009/07/02/embedding-videos-in-ektron/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

