How to play media hosted on the same server as the SL app?

Aug 2, 2011 at 4:00 PM
Edited Aug 2, 2011 at 4:01 PM



SVP is working fine, thanks! We can play files from ClientBin or using a HTTP URL.

Is there a simple way to reference a file hosted on the server the SL app is originating from (i.e. media in a <proj>.Web/media folder)?

We want to avoid hard-coding the URL. It should dynamically work, regardless if deployed in Dev env or Prod.



Aug 8, 2011 at 2:48 PM

Solved with:

  <param name="initParams" value="m=<%="http://" + Request.ServerVariables["SERVER_NAME"] + ":" + Request.ServerVariables["SERVER_PORT"] + "/media/my_video.wmv"%>"/>