开发者

Getting the URI of a resource located server side in Silverlight

开发者 https://www.devze.com 2023-02-04 13:20 出处:网络
I\'m very new to silverlight and 开发者_如何学JAVAI\'m trying to play a video located in the web project associated with my silverlight application.

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

精彩评论

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

关注公众号