Basically the RadMediItem
in its core is a wrapper around the MediaElement
control and as such has no access to the local file system. So in order to be able to play video files with Silverlight, you'll need to make them visible to the world (through http or Media Services...) and after that play them in the RadMediaPlayer
with source like "http://mydomain.com/Videos/Video.wmv
Or you will have to place them in the folder containing your .xap, so that they can be requested under the same path (
- this relative path indicates the folder where the SL xap is located, in this case the ClientBin
and this is why placing the movie in the ClientBin
works). When you set the MediaItem Source
to new Uri(App.Current.Host.Source, strVideoName )
- the item will look for the video file in the ClientBin
as the App.Current.Host.Source
holds the path to the Silverlight application XAP file and this is why your scenario only works when you place the video in the ClientBin
I hope this information will help you.
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>