This question is locked. New answers and comments are not allowed.
Hi, I am new to this Silverlight thing and had many years experience in developing desktop application.
I am having some trouble with the RadMediaPlayer. I took a sample project from a post in the forum here and could not play the file.
Below is the XAML code in the control
<telerik:RadMediaPlayer x:Name="player" VerticalContentAlignment="Top" HorizontalContentAlignment="Center" Header="Sample Video"> <telerik:RadMediaItem Title="Bear" Name="radMediaItem" Source="Bear.wmv"> </telerik:RadMediaItem> </telerik:RadMediaPlayer>I made many copies of the file "Bear.wmv" and resides in the following locations of the web project. (Attached image)
1. In the App_Code
2. In the App_Data
3. Bin
4. Client Bin
5. Under the project
And I have tried
<telerik:RadMediaItem Title="Bear" Name="radMediaItem" Source="http://localhost/MyWebSiteSite/ClientBin/Bear.wmv"/> <telerik:RadMediaItem Title="Bear" Name="radMediaItem" Source="/ClientBin/Bear.wmv"/> <telerik:RadMediaItem Title="Bear" Name="radMediaItem" Source="~/ClientBin/Bear.wmv"/> <telerik:RadMediaItem Title="Bear" Name="radMediaItem" Source="../../ClientBin/Bear.wmv">and I always get "Failed to load media".... the media file "Bear.wmv" was from a project uploaded by Admin at the forum below (gives me error because of its old VS version). I am using VS2010 pro + Expression Ultimate
http://www.telerik.com/community/forums/silverlight/media-player/wmv-won-t-play.aspx
Why is that and am I missing something?
Thanks.