I'm very new to silverlight and 开发者_如何学JAVAI'm trying to play a video located in the web project associated with my silverlight application.
What is the best way to get the URI of videos located on the server without hard coding the web address?
You could pass the URL as parameter from the server to the client.
You can get to the "root" path in silverlight by doing:
App.Current.Host.Source
then add the remainder to this address to get the file path of the video you want to play. Hope that helps
精彩评论