views:

691

answers:

1

I'm writing a site in Django that involves playing music, and so I needed an mp3 player.

I don't know Flash, and don't really have a desire to learn it, so when I found http://github.com/breily/jquery.player.js/tree/master I was pretty happy. It worked great.

Well on my development server anyway. To serve the static files for my site, I have a subdomain, and best I can tell, the whole flash crossdomain.xml, policy file issue is preventing the audio from playing on my page.

Any ideas? Is there an easy fix for this that I'm not thinking of? Or do I need to learn actionscript and recompile briely's music.as and figure out a way to have it check the policy file. Or is this not the problem at all?

A: 

You should just be able to update the crossdomain.xml file on the server that your audio files live on.

http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html

The simplest fix would be to change the crossdomain.xml at the root of the server to:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"&gt;

<cross-domain-policy>
    <site-control permitted-cross-domain-policies="master-only"/>
    <allow-access-from domain="http://mysubdomain.com"/&gt;
</cross-domain-policy>
quoo
I tried that, it didn't work. I'm placing it in the root of the static subdomain, and allowing access from the main domain.I thought that maybe the flash object had to be instructed to check for a policy file?
Zach
quoo