AS3 :: Flex - Security Errors Using Youtube Chromeless Player
Jul 6, 2010
I'm trying to use the Youtube Chromeless Player (the new AS3 version) in a Flex 4-based project. I'm using the examples provided 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:
[Code]....
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?
View 2 Replies
Similar Posts:
Sep 24, 2010
I'm using the Youtube AS3 Player API to load video's in a Flash Project. I get this really annoying Error when loading the Player swf:
SecurityError: Error #2047: Security sandbox violation: parent: http://www.degoudenglimlach.be/main.swf cannot access http://www.youtube.com/[[IMPORT]]/s.ytimg.com/yt/swf/watch_as3-vflbgr4dW.swf.
I tried adding the following to my code before loading the swf but it doesn't make any difference:
Security.allowDomain("*");
Security.allowDomain("www.youtube.com");
Security.allowDomain("youtube.com");
Security.allowDomain("s.ytimg.com");
[Code]....
View 2 Replies
Mar 30, 2011
I'm working on a prototype that would require me being able to read and track the mouse movement over a playing youtube video. The basic code to replicate my problem boils down to this simple test case:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
[Code]....
Expected behavior is:
Youtube player loads The label on the top right tracks the X coordinate of the mouse The number should update even when moving the mouse over the Youtube player
So far the program behaves as expected when running from the IDE (tested on both FlashDevelop and FlashBuilder) and even when running the file manually from the output folder. But, alas, when I try to run it from anywhere else than the debug folder (be it another location on my computer or up on a webserver), the Youtube player seems to eat the events.
I don't get sandbox security warnings when debugging (thanks to allowDomain("*")) but I'm running out of ideas on why the program fails once you take the file out of the debug folder.
View 1 Replies
Feb 21, 2011
I'm embedding a youtube chromeless player in to my website via actionscript 3, and I found this code that works fine [code]...
but I need to be able to position the player, and at the moment its anchored to the top left corner, didnt want to play about with the code without knowing what to do, also how easy would it be to add simple controls? play, pause, mute, replay
View 1 Replies
Jul 16, 2009
I'm embedding a video of YouTube by using their chromeless player, stretched and fit to all screen. the player includes by default their logo and it looks so huge so it ruins the graphic.in youtube site, they offer you to replace the original logo with new one - "Powered by Youtube", but they don't explain how to remove the original first.[code]...
View 2 Replies
Jul 6, 2011
Recently I have made a simple flash application that utilizes a webcam feed and an embedded chromeless youtube player within it. I now need to make custom controls around the player but would like to be able to do that in html/css and control it with js/jquery. While I can find material helping me control the chromeless player directly ( as in solo embedded and not part of another flash app ). My question is that since the chromless player is embedded INSIDE of another flash app ( say test.swf ) can I still access the player in there from js?
View 1 Replies
Jan 2, 2011
I am looking for the abilities that Youtube's Chromeless player has to offer but for non-Youtube hosted videos such as Metacafe, Vimeo, Viddler, etc. Abilities I will need are :
[Code]....
Can I use Chromeless player for videos hosted on other sites besides Youtube? If not, is there a solution out there? If not, what languages/APIs would I need use and know to create such an application?
View 2 Replies
Nov 27, 2011
I have a mobile YouTube API-centric project nearly done. The last view is a component that is a player, naturally, and Flash is not diggin' the security issues at all. Violations ..... And I am passing my developer key in every call too! So what is the deal with simply loading a video into chromeless player on Android that needs my security attention?
View 1 Replies
Dec 11, 2009
I have implemented chromeless player and so far the necessary controls such as play, pause, change video, mute, unmute all appear to work fine through JavaScript. I now need to send the chromeless player to "Full Screen" mode via JavaScript.
The JavaScript API player includes the full screen button but the chromeless player does NOT; infact; the chromeless player is not supposed to contain ANY button. I therefore need to set full screen mode via JavaScript but could not find any documented method for this.
[Code]...
View 3 Replies
Mar 18, 2011
I have some Flash application that loads data (external images, SWFs, XMLs) from the same domain. And it was fine until client decided to add load balancers for server. Now we have a number of complaints from users about security errors. It looks like application can't load external resources treating them as resources from different domain without crossdomain.xml.
One of users that have this problem provided us with following info:
Browser: IE 8.0
OS: Windows 7
Flash Player version: 10.1.102.64
I have spoken with server administrator and he told me that we have load balancers that work like Round-robin DNS. In its simplest implementation Round-robin DNS works by responding to DNS requests not only with a single IP address, but a list of IP addresses of several servers that host identical services. The order in which IP addresses from the list are returned is the basis for the term round robin. With each DNS response, the IP address sequence in the list is permuted. Usually, basic IP clients attempt connections with the first address returned from a DNS query so that on different connection attempts clients would receive service from different providers, thus distributing the overall load among servers.
Finally we have: SWF loaded from IP1, data requested from IP2, crossdomain.xml loaded from IP1. All of them can be accessed through the same domain, but have different IPs.Because of IPs difference, Flash Player ignores crossdomain.xml and triggers security error.I'm not sure it happens exactly like that, since for older versions of Flash Player I have found the following words:
The basis of domain comparison is the domain name, not IP address.
So, I have two questions after all of that: How exactly domain comparison for HTTP-connections works in latest versions of Flash Player? Can two resources obtained by address with same domain name but from different IPs treatened as obtained from different domains? Maybe someone have info about DNS rebinding in different browsers?
View 1 Replies
Jul 9, 2011
I tested my skin for YouTube Chromeless player, and seems it worked properly.All graphic elements, including TLFTextFields, are stored in external SWF, all the AS3 code - in loading SWF.I use ProLoader class to load SWF.However, when I tried to attach Player skin code to my Home Page code, I immediately bumped into two issues:
1. TLFTextFields ceased to display proper font;
2. YouTube Chromeless player ceased to enlarge up to Full Screen width in Full Screen mode, whereas all publishing settings were kept the same...
Although I managed to cope with TLFTextField bug by replacing instances with vars in loaded SWF, I have no the slightest idea what to do with those paddings in Full Screen mode... Neither removing all children on stage before loading YouTube Player skin, nor compulsory resetting player's size can't make it work...
View 10 Replies
Oct 1, 2011
I have used chromeless youtube API for playing youtube videos through youtube ID and I have used to set volume [code]...
View 1 Replies
Jan 31, 2011
This is my code and i want to place an external swf file for my flex application website. This is my code:
var loader:Loader = new Loader();
var url:URLRequest = new URLRequest("http://www.my site.com");
loader.load(url);
addChild(loader);
View 1 Replies
Jan 20, 2012
I'm using the YouTube API in my flex app to play videos and it works fine running on my computer and android, but I'm getting an issue when I try to use it on iOS, I just get a black screen!
View 2 Replies
Aug 26, 2010
does anybody know if disabling the security question in the flash player is ok? I need to know the exact facts by reference whether it is ok or not. I found some answers to this but they were assumptions but nor rigid. for instance a reference to Adobe's documentation that says any workaround is illegal.
View 1 Replies
Nov 29, 2009
I'm doing a project based on youtube videos and BitmapData Draw method. It works fine inside flash authoring but when I upload it on a web server the draw method does not work due to security issues. I tried different methods like
ActionScript Code:
flash.system.Security.allowDomain("[URL]");
flash.system.Security.loadPolicyFile("[URL]");
Or this [URL] but it seems there's no way to make it work.
View 2 Replies
Apr 20, 2011
Is there any way to embed YouTube video/video player into Android Flex AIR Mobile application?
I tried to use SWFLoader(...) but since its MX library class only works on the desktop runtime environment, but fails to work on actual Android device when debugging the application.
Maybe it's possible to embed HTML that contain YouTube video into some Flex media container like TextArea or something?
View 1 Replies
Jul 28, 2011
[code]Now, the above code works fine for some people using our software while others are experiencing the following error ( in faultHandler() ):[code Again, the error happens to some people and not for others.Have I missed something? Would it be a machine / browser specific problem? As a sanity check the above code works with the same .swf file in chrome, ie, firefox and safari.I have read about the crossdomain.xml and don't think that is the issue as YouTube have that defined.Finally, all users (intranet app) are using IE and the same version of flash.I have been pulling my hair out the past 2 days and asking the question over and over again "Why is it only happening for some users and not for other users?"
View 2 Replies
Mar 12, 2012
I'm getting a very annoying run time error message, which crashes my flash application when it runs in the browser. The error pertains to a 'Security Sandbox Violation' when I attempt to access Youtube's Gdata api. The exact error message reads:
Error: Request for resource at [URL] is denied due to lack of policy file permissions.
*** Security Sandbox Violation ***
When I run the SWF locally, everything works fine.
View 1 Replies
Jan 31, 2012
In my project at the moment I am using Nicola Hibbert's liteAccordion slider.I have it all set up and it's working nicely but the project needs to have a YouTube video on each of the slides.I have used the classic embed code from YouTube to get the desired result, In Firefox and other browsers it's all good, singing and dancing.In Chrome, tears stream down my face as it has totally broke.
View 1 Replies
Mar 12, 2012
I have a flash application that queries Youtube Gdata API for videos. However, since I published my project and uploaded it to my web server I'm getting a Security Sandbox Violation error:
Error: Request for resource at [URL] by requestor from domain is denied due to lack of policy file permissions.
I've added a crossdomain.xml file to the root of my site allowing access to all domains, and loaded both that file and youtube's crossdomain file to my project. I've also allowed the domains access (Security.allowDomain()). But I'm still getting the same errors, which renders my application useless.
View 3 Replies
Mar 13, 2012
I have a flash game. I've been trying to connect it to a php website that uses a mySql db. It works when I "test project" it from flash, however when I run it from a player/browser it raises errors about accessing a site. What setting need I ask from my users to set in their flash player - I have personally looked for the right settings and found nothing about approving sites. Is it possible that if both my game and my php site reside in the same base url - that is same server - that this error shall not appear? I really want to test this my self, but my server is a free server and doesn't allow me to upload certain files that are heavy.
View 1 Replies
Feb 21, 2012
I can't seem to wrap my head around this image loading problem with my actionscript 3.0 project. I suspect it has something to do with how I have the crossDomain.xml set up. The problem is that I can load youtube movie thumbnail images from [URL] into flash and display them completely fine when testing/running the SWF in a stand alone (local) player. But when I upload the SWF and test it through the web I receive Sandbox Errors and Security Violations. Here is my crossDomain.xml (stored on the root of the server):
[Code]...
View 1 Replies
Oct 15, 2009
We'd like to have an app autorun when our clients put in our info CD. Is it possible to do this using Adobe AIR... We were thinking of using the Flash Projector cause it compiles to an .exe which is easily launched, but there's no way to get rid of the ugly window chrome is there?
View 3 Replies
Sep 1, 2011
I have implemented a chromeless windowedapplication in flex 4. But doing so i noticed that all the maximize, minimize and even the ability to drag the window around is gone. I need the ability to drag the window around. I have done a lot of googling and have been unable to come up with anything.
View 1 Replies
Jun 30, 2011
I'm making something that requires me to draw() the youtubeplayer Giving me this pretty error:
[Code]...
View 4 Replies
Feb 6, 2009
I have made an xml video viewer which works great, however I am getting output errors when I run it- [code]...
View 1 Replies
Dec 20, 2009
I'm having trouble with an AS3 AMF RemoteObject request that is hosted on App Engine. I have a crossdomain.xml file in the root of the domain, and also one at the remoting endpoint.Here are the contents of the root crossdomain.xml:
<?xml version="1.0"?>
<cross-domain-policy>
<site-control permitted-cross-domain-policies ="all"/>[code].....
Loading the swf file and testing it on my machine works just fine... I think that may have something to do with me having the debugger version of Flash Player. When I push it up to App Engine to make it public, other clients access it and get a Client.Error.MessageSend Channel.Security.Error error Error #2048 url: http:[url].......I am using Flex 4 beta, and the App Engine Python runtime. I have tried full wildcard in the crossdomain, and even accessing the data endpoint at a relative URL so as to avoid this error.
View 1 Replies
Jun 11, 2011
I want to be able to add youtube videos on my site. The site is built using as2 xml etc...Maby there is some sort of a .swf youtube player that i can load into the site?I can provide the code & files if necessary but for now heres the site:flaw.seIf this is a stupid question and takes to much effort then im willing to pay a little sum..Beside that i want the pictures to stop scrolling 20 pixels from the right side of the webbrowser. I did get some help and added:[code]But then it stoped directly after the picture without any space. And last bit of the scroller dident really work right.
View 1 Replies
May 18, 2011
i am trying to create a AS3 youtube player... and after i searched online and followed tutorials, i couldnt make any of them work due to errors.i always get this error [code]is it because i am testing it locally?
View 1 Replies