This is a migrated thread and some comments may be shown as answers.

Opening local wmv's

6 Answers 101 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 25 Sep 2010, 07:27 PM
Hi,

I have a bunch of .wmv files on a local drive (F:/Movies/A.wmv, B.wmv, C.wmv etc). I am working on a project of which I do not yet know if it will ever be realized on to the net. My client wants a plausibility study on a local system. If I try the following line 


<
telerik:RadMediaItem x:Name="item0" Source="F:/Movies/A.wmv" Title="A"></telerik:RadMediaItem>


and then click on the item0 I get the message "Failed to open media".

My questions are:

  • How do I address an absolute path in a local system to the file  A.wmv  in the xaml file, and
  • How can I do that programmatically (C#)?

Thank you for your concern,

Karl


 

 

 

 

6 Answers, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 29 Sep 2010, 02:47 PM
Hello Karl Golling,

 Unfortunately you can't open local files or file on share using Silverlight. This is due to Cross-Schema restriction of the plugin. When your silverlight application is running from Http page, you can't access local files - it is consider cross-schema. You can read the full story from msdn here. What you can do is to make this shared folder virtual folder and map it to a web server, and after that you can access these files using normal http protocol or any streaming protocol supported by Silverlight.
If we can be of further help please let us know. 

Best wishes,
Miro Miroslavov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Karl
Top achievements
Rank 1
answered on 15 Oct 2010, 02:38 PM
Hi Miro,

Can you give me a link on how to "make shared folder virtual folder and map it to a web server, and after that you can access these files" in Windows 7 or give me an example. I have the movies in a folder F:/Movies

Thanks,
Karl
0
Miro Miroslavov
Telerik team
answered on 19 Oct 2010, 09:32 AM
Hello Karl Golling,

 You may read this learn article about Web Sites and Virtual Directories .
You can also check this
You should also make sure that you have IIS installed on the machine that will share the videos on the web.

Regards,
Miro Miroslavov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Karl
Top achievements
Rank 1
answered on 20 Oct 2010, 09:52 AM
Hi Miro,
Thank you. I've made a virtual directory called it KGFilme. So the directory F:/Filme is now mapped to KGFilme. My question now is how do I address it to get to the movies.

<telerik:RadMediaItem x:Name="item0" Source="http://KGFilme/A.wmv" Title="A"></telerik:RadMediaItem>

What would be missing in the above code?
Thanks,
Karl
0
Miro Miroslavov
Telerik team
answered on 22 Oct 2010, 04:09 PM
Hi Karl Golling,

 Most probably you will be able to open it with Source="http://localhost/KGFilme/A.wmv". But you can also open the IIS Manager application, browse to your virtual directory under the default web site and click on Browse - this will open your virtual directory in a browser, so you will see the exact url to the directory.
Hope this will help you.

Regards,
Miro Miroslavov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Karl
Top achievements
Rank 1
answered on 22 Oct 2010, 06:14 PM
Thanks - that did it. It works now.
Karl
Tags
MediaPlayer
Asked by
Karl
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Karl
Top achievements
Rank 1
Share this question
or