Is it possible to show media from a UNC path in silverlight? I know I can't load items from the client side, but I have access to the files on the web server via unc. I have a webservice that shows all of the available files, but I need to play the movies and show the images and I am not sure its even possible.
A:
No. You need to expose the media to the client via web URLs (this is assuming that your SL client is running in a web page).
Jacob
2009-07-05 17:58:17
Could I do the file:// address to them?
Eric P
2009-07-05 18:00:48
Maybe, but only if the Silverlight client is also running from a file:// URL. Otherwise, it is considered cross-zone and is disallowed.
Jacob
2009-07-05 18:08:12
Not disallowed, you have to have the cross domain policy file on the domain that is being requested.
Ray Booysen
2009-07-05 19:19:47
I didn't say cross-domain; I said cross-zone. You cannot request a file:// URL from an HTTP-hosted web page. That would be madness, and a big security hole.
Jacob
2009-07-05 19:44:30
True. Although Silverlight has no concept of zones
Ray Booysen
2009-07-06 22:05:23
Perhaps not, but the host browser does.
Jacob
2009-07-07 01:57:09
How irrelevant to Silverlight. Silverlight can request across same domain or across domains with a client access policy file. Zones play no part in a Silverlight app.
Ray Booysen
2009-07-08 21:05:24
You consider to misunderstand. Zones have nothing to do with domains.
Jacob
2009-07-08 21:09:57
A:
Essentially no.
The only way that Silverlight can retrieve files is:
IsolatedStorage which allows Silverlight to store a few MB of data on the client's computer. HTTP requests as long as the originating server has the appropriate cross domain policy file in place. If you serve the images/files from the same domain as the Silverlight application is hosted on, no cross domain policy file is required.
The easiest way you can get this working is to set up a web server that can serve up your files over HTTP.
Ray Booysen
2009-07-05 18:25:31