0

I have made an Audio Player in Flash that is embedded in JSP. which sets Param when JSP is loaded which Plays mp3 file that is availabe on my server, i.e. I passes path like

/dirOnMyServer/sample.mp3

But when I place Path of a file placed on any Other Server like

http://www.SomeOtherHost.com/url/sample.mp3

then my SWF does not plays(Stream) that file, But if i individually just opens SWF & puts same Other Host's Path then also it Plays the file

In Simple Words, Whenever a Remote File(On someother Server) is not played on SWF object if it is on HTML(JSP) but same File works & Streamed successfully if it is Played on same SWF without Embedding it in HTML(JSP)

I have used the Code:

cool=new Sound(Audio);
cool.loadSound("http://www.SomeOtherHost.com/url/sample.mp3",true);

(EDIT)

Here

www.SomeOtherHost.com

is not my server, Actually in my application User will put path of anuy mp3 that will be processed on my Page, So

Let http://www.SomeOtherHost.com/url/sample.mp3 be the Path that is being entered by User

(it is Preassumed that User will enters only path having mp3 File)

4

1 回答 1

0

Try to put crossdomain.xml file on your http://www.SomeOtherHost.com with permission to your first domain to open files.

于 2013-05-03T15:54:49.937 回答