<?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>Programming Ideas, Logics, Tips and Tricks &#187; cross-domain</title>
	<atom:link href="http://www.sajithmr.me/tag/cross-domain/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me</link>
	<description></description>
	<lastBuildDate>Mon, 23 Jan 2012 15:44:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Embedded Flash Player is not working from another domain (Cross-Domain swf access )</title>
		<link>http://www.sajithmr.me/embedded-flash-player-flv-is-not-working-from-another-domain-cross-domain-swf-access</link>
		<comments>http://www.sajithmr.me/embedded-flash-player-flv-is-not-working-from-another-domain-cross-domain-swf-access#comments</comments>
		<pubDate>Fri, 18 Jul 2008 06:44:40 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[webworld]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[cross-domain]]></category>
		<category><![CDATA[Embedded]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[policy]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/embedded-flash-player-flv-is-not-working-from-another-domain-cross-domain-swf-access/</guid>
		<description><![CDATA[When I used an flv player for my website www.amvizone.com, the main problem I faced was the external embedding. So I provided the iframe embedddng method instead of embedded object like youtube. The problem was the embedded flash player only worked with the my domain (where the player.swf is placed). When I put the same [...]]]></description>
			<content:encoded><![CDATA[<p>When I used an flv player for my website <a href="http://www.amvizone.com" title="Amvizone - The Amateur Video Zone" target="_blank">www.amvizone.com</a>, the main problem I faced was the external embedding. So I provided the iframe embedddng method instead of embedded object like youtube. The problem was the embedded flash player only worked with the my domain (where the player.swf is  placed). When I put the same embedded code with src points to http://www.amvizone.com/player.swf  from another domain, the player did not work.</p>
<p><a href="http://www.amvizone.com" title="Amvizone - The Amateur Video Zone" target="_blank"><img src="http://www.sajithmr.com/wp-content/uploads/2008/07/flv.jpg" alt="FLV Player" /></a></p>
<p>Recently My Friend Rahul (He is the master in flash and action scripts)  gave me a solution for this. That is, you have to add cross-domain policy to your server to server the swf file to other domains.</p>
<blockquote><p>When a Flash document attempts to access data from another domain, Flash Player automatically attempts to load a policy file from that domain. If the domain of the Flash document that is attempting to access the data is included in the policy file, the data is automatically accessible.</p></blockquote>
<p>You have to create a file, crossdomain.xml and place in the root folder or any other folder where content is placed. The data in the crossdomain.xml file is shown below:</p>
<pre>&lt;?xml version="1.0"?&gt;&lt;!-- http://www.foo.com/crossdomain.xml --&gt;

&lt;cross-domain-policy&gt;

&lt;allow-access-from domain="www.friendOfFoo.com" /&gt;

&lt;allow-access-from domain="*.foo.com" /&gt;

&lt;allow-access-from domain="105.216.0.40" /&gt;</pre>
<pre>&lt;/cross-domain-policy&gt;</pre>
<p>The above configuration allow any subdomains of foo.com or a particular ip 105.216.0.40 or  www.friendOfFoo.com</p>
<p>If you need to provide access to all domains , you can use the following xml:</p>
<pre>&lt;?xml version="1.0"?&gt;

&lt;!-- http://www.foo.com/crossdomain.xml --&gt;

&lt;cross-domain-policy&gt;

  &lt;allow-access-from domain="*" /&gt;

&lt;/cross-domain-policy&gt;</pre>
<p>Courtesy:  Adobe.com</p>
<p>And special thanks to Rahul for sharing the information</p>
<p>For details: click <a href="http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00001621.html" title="Adobe Policy" target="_blank">here </a></p>
<p>Regards</p>
<p>Sajith M.R</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/embedded-flash-player-flv-is-not-working-from-another-domain-cross-domain-swf-access/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

