Reputation: 7313
I'm very new to silverlight and I'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?
Upvotes: 1
Views: 551
Reputation: 9784
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
Upvotes: 1
Reputation: 1039298
You could pass the URL as parameter from the server to the client.
Upvotes: 2