Cross-Domain capable?

Oct 9, 2009 at 12:46 AM

I have altered the code from the "Installation" page to the following:

     <div id="silverlightControlHost">
            <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="480">
                <param name="source" value="http://imageserver.webpropartners.com/FileLibrary/VideoPlayer.xap"/>
                <param name="background" value="white" />
                <param name="initParams" value="m=http://imageserver.webpropartners.com//UserMedia/michaeld/video.wmv" />
                       <param name="minruntimeversion" value="2.0.31005.0" />
                <a href="http://go.microsoft.com/fwlink/?LinkId=124807" style="text-decoration: none;">
                     <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
                </a>
            </object>
        </div>

No video player appears, nor does any video play.  If I change the "source" and "initParams" from an absolute cross domain path to a local file, it works just fine.

Any help would be appreciated. Thanks.

Coordinator
Oct 9, 2009 at 12:56 AM
Add <param name="enableHtmlAccess" value="true" /> and see if that works.

-th

On Thu, Oct 8, 2009 at 4:46 PM, belikemike121 <notifications@codeplex.com> wrote:

From: belikemike121

I have altered the code from the "Installation" page to the following:

    


            <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="480">
                <param name="source" value="http://imageserver.webpropartners.com/FileLibrary/VideoPlayer.xap"/>
                <param name="background" value="white" />
                <param name="initParams" value="m=http://imageserver.webpropartners.com//UserMedia/michaeld/video.wmv" />
                       <param name="minruntimeversion" value="2.0.31005.0" />
                http://go.microsoft.com/fwlink/?LinkId=124807" style="text-decoration: none;">
                     http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
                
            </object>
        

No video player appears, nor does any video play.  If I change the "source" and "initParams" from an absolute cross domain path to a local file, it works just fine.

Any help would be appreciated. Thanks.

Read the full discussion online.

To add a post to this discussion, reply to this email (sl2videoplayer@discussions.codeplex.com)

To start a new discussion for this project, email sl2videoplayer@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Oct 14, 2009 at 3:23 PM

That did not seem to work.

Oct 14, 2009 at 3:48 PM
Edited Oct 14, 2009 at 3:50 PM

belikemike121 -- I'm certain I can fix your problem.

I copied and pasted your HTML and it works perfectly for me.

Your HTML code will work online. If the code doesn't work for you, I suspect you're trying to view the file locally on your hard drive. Deploy it to a web server and run it there, or run it in Visual Studio, or on your localhost IIS instance, and it should work.

Another common cause of this problem is the IIS instance serving the XAP file not being configured with the correct XAP MIME type, but I have checked your example and the Silverlight app is being served correctly.

I reccomend always including an example URL when you have something that doesn't work. In this case, I think you may have solved the problem just by testing your own example URL. ;)

Oct 14, 2009 at 5:00 PM

Is it working now? :)