<?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>Sweeping Design &#187; silverstripe</title>
	<atom:link href="http://www.sweepingdesign.com/blog/category/silverstripe/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sweepingdesign.com/blog</link>
	<description>Flex, Drugs, and Rock and Roll</description>
	<lastBuildDate>Tue, 23 Mar 2010 22:15:29 +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>silverstripe shadowbox combination fix for embedded vidoes not playing in firefox</title>
		<link>http://www.sweepingdesign.com/blog/2008/08/25/silverstripe-shadowbox-combination-fix-for-embedding-vidoes-in-firefox/</link>
		<comments>http://www.sweepingdesign.com/blog/2008/08/25/silverstripe-shadowbox-combination-fix-for-embedding-vidoes-in-firefox/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 16:29:32 +0000</pubDate>
		<dc:creator>seth</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[silverstripe]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[object vs embed]]></category>
		<category><![CDATA[shadowbox]]></category>

		<guid isPermaLink="false">http://www.sweepingdesign.com/wordpress/2008/08/25/silverstripe-shadowbox-combination-fix-for-embedding-vidoes-in-firefox/</guid>
		<description><![CDATA[For several days i struggled to find a fix for my problem with embedding .flv&#8217;s in firefox in the silverstripe php framework.  I am using the js video lightbox &#8216;shadowbox,&#8217; which i really like and can get working just fine when I use it in a typical html page.  But for some reason when I [...]]]></description>
			<content:encoded><![CDATA[<p>For several days i struggled to find a fix for my problem with embedding .flv&#8217;s in firefox in the <a href="http://www.silverstripe.com">silverstripe </a>php framework.  I am using the js video lightbox &#8216;<a href="http://mjijackson.com/shadowbox/index.html">shadowbox</a>,&#8217; which i really like and can get working just fine when I use it in a typical html page.  But for some reason when I tried implementing this framework into my silverstripe application, the videos wouldn&#8217;t load in firefox, exclusively.  All other browsers worked fine, and after days of banging my head and searching for answers on google and irc I found this fix:</p>
<p>Shadowbox needs to load a .js file for each media type you wish to use.  I was using .flv so I loaded the &#8217;shadowbox-flv.js.&#8217;  That file returns:</p>
<pre>
return {
tag:        &#039;object&#039;,
id:         this.id,
name:       this.id,
type:       &#039;application/x-shockwave-flash&#039;,
data:       options.flvPlayer,
children:   [
{ tag: &#039;param&#039;, name: &#039;movie&#039;, value: options.flvPlayer },
{ tag: &#039;param&#039;, name: &#039;flashvars&#039;, value: flashvars.join(&#039;&amp;amp;&#039;) },
{ tag: &#039;param&#039;, name: &#039;allowfullscreen&#039;, value: &#039;true&#039; }
],
height:     h, // new height includes controller
width:      w
};</pre>
<p>What i did was change it so that instead of using &#8216;object&#8217; to embed the video, I used &#8216;embed,&#8217; and now it worked!! Simple.</p>
<p>here is what i changed:</p>
<pre>
return {
tag: &#039;embed&#039;,
id: this.id,
src: &#039;flvplayer.swf&#039;,
allowscriptaccess: &#039;true&#039;,
allowfullscreen: &#039;true&#039;,
flashvars:  flashvars.join(&#039;&amp;amp;&#039;),
height:     h, // new height includes controller
width:      w
};
},</pre>
<p>see it working <a href="http://www.webcme.net/sample-content-trailers">here </a></p>
<p>I&#8217;ve learned that firefox has a bug dealing with object vs embed which in certain cases doesn&#8217;t allow the swf loader to function properly.  Specifying &#8216;autoplay&#8217; seems to have an effect on this as well.  The firefox bug for this issue is <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=250855">here</a>.</p>
<p>hopefully this bug will be fixed soon <img src='http://www.sweepingdesign.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sweepingdesign.com/blog/2008/08/25/silverstripe-shadowbox-combination-fix-for-embedding-vidoes-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
