开发者

Getting the URI of a resource located server side in Silverlight

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜