how to play local avi file in mediaplayer

2 posts, 0 answers
  1. Mac P
    Mac P avatar
    86 posts
    Member since:
    Mar 2010

    Posted 11 Oct 2010 Link to this post


    I have created few help files using Techsmith's Camtasia studio. The file is converted to avi. I want to create a page in aspx that will have silverlight xap file with mediaplayer playing the .avi file from local system.

    When i set source of mediaitem to local path it displays message that file is not found.
    Any ideas?

  2. Miro Miroslavov
    Miro Miroslavov avatar
    588 posts

    Posted 12 Oct 2010 Link to this post

    Hi Mac P,

     If you're referencing file from your Silverlight app on your local machine - it's considered cross-schema problem and it's restricted by the Silverlight. In order to play it - you can add it to the xap file as a Resource, or share it on the web in a web Server (like IIS) and reference it from there, or you may add it to the web project and reference it relatively to your xap file. 
    You may read the full story about those restrictions on msdn. 
    Hope this helps you.

    Kind 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
Back to Top