Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to access a Silverlight XAP file across a two local host domain?

Hi I had created a silver light application with media player. And it is working in that app fine. When i use the embed code to some other application as meta tag. It fails to load the zap file and video. Can i know how can i fix it.

Here is code:

<object height="360" width="640" type="application/x-silverlight-2" data="data:application/x-silverlight,">
<param value="http://localhost:1069/ClientBin/MymediaPlayer.xap" name="source">
<param value="onSilverlightError" name="onerror">
<param value="white" name="background">
<param value="m=http://localhost:1069/content/en-us/videofile/Butterfly.wmv" name="initParams">         
        </object>

When i use this in the silver light application it is working. but this meta tag should work on all other domain. I had tested on two local host domain.

Thanks in Advance.

KK

like image 940
Kamal Avatar asked Jan 01 '26 04:01

Kamal


1 Answers

You need to define a clientaccesspolicy.xml file or a crossdomain.xml file in order to permit access to your web services from different domains.

This is discussed here.

like image 110
Jeff Yates Avatar answered Jan 02 '26 17:01

Jeff Yates



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!