Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActionScript Uncaught Exception (crossdomain.xml handling) #83

Closed
rjfranco opened this issue Jan 17, 2011 · 9 comments
Closed

ActionScript Uncaught Exception (crossdomain.xml handling) #83

rjfranco opened this issue Jan 17, 2011 · 9 comments

Comments

@rjfranco
Copy link

I'm attempting to use a mp4 (h.264) video on a website. In safari the file plays fine, but in firefox and IE after replacing the default

I've read through the documentation and since i'm using a pretty simple implementation (mp4 video only) I don't believe the issue is a configuration (thought, honostly it could be)

Any leads on a work around / fix would be great! I've left the video on our dev site here with debug enabled:

http://columbiandev.www.clients.ellingtoncms.com/videos/2011/jan/14/100/

@johndyer
Copy link
Collaborator

Since you're loading from a different domain you'll need a crossdomain.xml policy for Flash to accept the file.

@rjfranco
Copy link
Author

Thanks John, I've attempted to add the crossdomain.xml file, and it's in the root of the domain (subdomain) being accessed, and i'm still experiencing the same issue, don't suppose you might have any other hints?

http://columbian.media.clients.ellingtoncms.com/crossdomain.xml
Above is the url to the xml file, video is being accessed from:
http://columbian.media.clients.ellingtoncms.com/video/2011/01/17/porous-pavement-demonstration.mp4

@johndyer
Copy link
Collaborator

It looks like the error is that Flash doesn't like doing Javascript communication from another domain. Since your page is on "http://columbiandev.www.clients.ellingtoncms.com" and your JavaScript/flash files are on "http://columbian.media.clients.ellingtoncms.com/" it's throwing security errors.

In flash you have to add this code
System.security.allowDomain("columbiandev.www.clients.ellingtoncms.com");
to make it work. I'll look for a way to add that dynamically.

@johndyer
Copy link
Collaborator

Could you also try adding the crossdomain.xml file to http://columbiandev.www.clients.ellingtoncms.com/crossdomain.xml

@rjfranco
Copy link
Author

Yup, it's up there now, as well as on http://www.columbian.com/crossdomain.xml . So I think the file pretty much exists everywhere it might be called from, but I'm still not having any luck, I don't have a copy of flash available to me or I would add the system.security call to try that out.

@johndyer
Copy link
Collaborator

Try the 2.0.5 release. I added the System.security.allowDomain which should help. Let me know how it goes.

@johndyer
Copy link
Collaborator

johndyer commented Feb 6, 2011

Does the latest version fix your issue?

@rjfranco
Copy link
Author

rjfranco commented Feb 8, 2011

I've been sick, and trying to find the time to fix this particular issues hasn't been easy. I'm hoping to give it a try tonight here, I'll be sure to let you know!

@rjfranco
Copy link
Author

rjfranco commented Feb 8, 2011

Booyah! It worked! Thanks so much, Now to implement this bad boy sitewide.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants