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

Failed to load video

1 Answer 54 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
Andrea Ferrari
Top achievements
Rank 1
Andrea Ferrari asked on 04 Jun 2010, 08:48 PM
Hi.
I've made a ChildWindows to show some videos. The XAML code is:

<Grid x:Name="LayoutRoot" Margin="2">  
    <telerikMedia:RadMediaPlayer x:Name="player" FullScreenChanged="radMediaPlayer_FullScreenChanged" Loaded="player_Loaded" /> 
  </Grid> 

and the CodeBehind is:
    private void radMediaPlayer_FullScreenChanged(object sender, EventArgs e)  
    {  
      Application.Current.Host.Content.IsFullScreen = !Application.Current.Host.Content.IsFullScreen;  
    }  
 
    private void player_Loaded(object sender, RoutedEventArgs e)  
    {  
      this.player.MediaElement.BufferingTime = TimeSpan.FromSeconds(5);  
 
      RadMediaItem item = new RadMediaItem();  
      item.Source = new Uri("/Video/" + NomeFile, UriKind.RelativeOrAbsolute); ;  
      item.Header = NomeFile.ToString();  
      player.Items.Add(item);  
    }  
 

All the file are WMV and I've tryied to play with Windows Media Player. All are played correctly.
On the Web, some are played correctly and other no, returning the error: Failed to load. I've seen that the long video (more than 10 Mega) returns the error and the very short no, but one of the shor video is giving seeking problems.
Maybe I've to use the Streaming source, but I don't know how.
If you want to see the errors, please connect to www.studiopische.com. Choose the 4th button on the left (Amalgama) and expand the item "Danni neuronali da mercurio". Now click on the big button on the left showing a video icon. The player should start and you can see the error.
I can't attach the video becouse is more than 3 mega, but if you want I can send you by mail.
Another error is on the video you can reach by choosing the item "Stimolazione laser". Here you can see the seeking problem.

If you need some more information, please let me know.
Thanks a lot and regards.
Andrea Ferrari


1 Answer, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 09 Jun 2010, 03:01 PM
Hello Andrea Ferrari,

This error message is shown when the internal MediaElement (the Silverlight class that enables playing video) reports error. This could be due to encoding or network error. Silverlight doesn't support all media formats (even it's wmv it can be encoded differently). We suggest you to re-encode the videos using supported silverlight format. You may read more about the supported formats here.
If you need more assistance, please contact us.

All the best,
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
Andrea Ferrari
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Share this question
or