Opening local wmv's

7 posts, 0 answers
  1. Karl Golling
    Karl Golling avatar
    226 posts
    Member since:
    Jun 2005

    Posted 25 Sep 2010 Link to this post

    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


     

     

     

     

  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 29 Sep 2010 Link to this post

    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
  3. DevCraft banner
  4. Karl Golling
    Karl Golling avatar
    226 posts
    Member since:
    Jun 2005

    Posted 15 Oct 2010 Link to this post

    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
  5. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 19 Oct 2010 Link to this post

    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
  6. Karl Golling
    Karl Golling avatar
    226 posts
    Member since:
    Jun 2005

    Posted 20 Oct 2010 Link to this post

    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
  7. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 22 Oct 2010 Link to this post

    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
  8. Karl Golling
    Karl Golling avatar
    226 posts
    Member since:
    Jun 2005

    Posted 22 Oct 2010 Link to this post

    Thanks - that did it. It works now.
    Karl
Back to Top
DevCraft banner