This question is locked. New answers and comments are not allowed.
Hello,
I am testing a simple implementation of Rad Silverlight MediaPlayer but it is not working, whenever I click on play button it says "Failed to Open Media!".
<Grid x:Name="LayoutRoot">
<telerik:RadMediaPlayer x:Name="player" Header="Sample Video">
<telerik:RadMediaItem Name="MyMediaItem" IsStreamingSource="True" Title="My Video" Source="/vids/BF3.wmv" StreamAttached="RadMediaItem_StreamAttached"></telerik:RadMediaItem>
</telerik:RadMediaPlayer>
</Grid>
private void RadMediaItem_StreamAttached(object sender, EventArgs e)
{
var item = sender as RadMediaItem;
if (item != null)
{
var adaptiveSource = new AdaptiveStreamingSource();
adaptiveSource.MediaElement = player.MediaElement;
adaptiveSource.ManifestUrl = item.Source;
adaptiveSource.StartPlayback();
}
}
I have placed vids folder in Bin, Debug and main project folder where App.xaml is located but it is not working. I have already encoded the video in Expression Encoder 3. I checked this thread as well.
http://www.telerik.com/community/forums/silverlight/media-player/a-simple-understanding.aspx
also added proper references using this thread
http://www.telerik.com/community/forums/silverlight/media-player/rad-media-player-where-is-adaptivestreaming-dll.aspx
But it is still not working. What should I do ? Please help.
I am testing a simple implementation of Rad Silverlight MediaPlayer but it is not working, whenever I click on play button it says "Failed to Open Media!".
<Grid x:Name="LayoutRoot">
<telerik:RadMediaPlayer x:Name="player" Header="Sample Video">
<telerik:RadMediaItem Name="MyMediaItem" IsStreamingSource="True" Title="My Video" Source="/vids/BF3.wmv" StreamAttached="RadMediaItem_StreamAttached"></telerik:RadMediaItem>
</telerik:RadMediaPlayer>
</Grid>
private void RadMediaItem_StreamAttached(object sender, EventArgs e)
{
var item = sender as RadMediaItem;
if (item != null)
{
var adaptiveSource = new AdaptiveStreamingSource();
adaptiveSource.MediaElement = player.MediaElement;
adaptiveSource.ManifestUrl = item.Source;
adaptiveSource.StartPlayback();
}
}
I have placed vids folder in Bin, Debug and main project folder where App.xaml is located but it is not working. I have already encoded the video in Expression Encoder 3. I checked this thread as well.
http://www.telerik.com/community/forums/silverlight/media-player/a-simple-understanding.aspx
also added proper references using this thread
http://www.telerik.com/community/forums/silverlight/media-player/rad-media-player-where-is-adaptivestreaming-dll.aspx
But it is still not working. What should I do ? Please help.