I have implemented a simple SL3 app using the RadMediaPlayer. I am placing the videos in the ClientBin directory on the VS2008 development system, as well as the server. I am referencing these videos in the XAML as a relative path (see XAML below). The videos play fine on the development system, but do not play on the production system.
Do the source strings for the videos have to be a URL? If so, how can the URL be relative to the production web site so that I don't have to hardocde the URL?
Do the source strings for the videos have to be a URL? If so, how can the URL be relative to the production web site so that I don't have to hardocde the URL?
<UserControl x:Class="TestApp.ViewVideoTutorialWindow" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.MediaPlayer" |
Width="800" Height="600"> |
<Grid x:Name="LayoutRoot" Background="Gray"> |
<telerik:RadMediaPlayer AutoReverse="True" x:Name="RadMediaPlayer1" IsPlaylistVisible="True"> |
<telerik:RadMediaItem Source="/myvideo1.mp4" |
ImageSource="/MyApp;component/Images/Icons/myvideo1.png" |
Title="First Video" |
Description="This is the first video."> |
</telerik:RadMediaItem> |
</telerik:RadMediaPlayer> |
</Grid> |
</UserControl> |