Note that there are some explanatory texts on larger screens.

plurals
  1. POSecurity Errors using Youtube AS3 Chromeless Player
    primarykey
    data
    text
    <p>I'm trying to use the Youtube Chromeless Player (the new AS3 version) in a Flex 4-based project. I'm using the <a href="http://code.google.com/apis/youtube/flash_api_reference.html#Examples" rel="nofollow noreferrer">examples provided</a> by Google, but I'm not having any luck. The player loads, but it can't be interacted with. I'm receiving repeated security errors just from mousing over the player:</p> <pre><code>*** Security Sandbox Violation *** SecurityDomain 'http://www.youtube.com/apiplayer?version=3' tried to access incompatible context 'file:///Users/jbuhler/Sites/YoutubeTests/bin-debug/YoutubeTest.html' </code></pre> <p>I've tried adding Security.allowDomain("www.youtube.com"); to my creationComplete handler before loading the player, and still receive the same errors.</p> <p>I've also tried using a SWFLoader like so:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" initialize="onInit()"&gt; &lt;fx:Declarations&gt; &lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt; &lt;/fx:Declarations&gt; &lt;fx:Script&gt; &lt;![CDATA[ private function onInit ():void { Security.allowDomain("www.youtube.com"); } ]]&gt; &lt;/fx:Script&gt; &lt;mx:SWFLoader source="http://www.youtube.com/apiplayer?version=3" /&gt; &lt;/s:Application&gt; </code></pre> <p>I've been at this for a few hours now, and haven't had any success. I also can't seem to find any working examples online. Is this new player just not compatible with Flex 4?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload