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

how to play local avi file in mediaplayer

1 Answer 92 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
Mac P
Top achievements
Rank 1
Mac P asked on 12 Oct 2010, 03:38 AM
Hello,

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?

Regards
Mac

1 Answer, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 12 Oct 2010, 07:33 AM
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
Tags
MediaPlayer
Asked by
Mac P
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Share this question
or