Failed to load video

2 posts, 0 answers
  1. Andrea Ferrari
    Andrea Ferrari avatar
    9 posts
    Member since:
    Apr 2010

    Posted 04 Jun 2010 Link to this post

    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" /> 

    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();  

    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 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

  2. Miro Miroslavov
    Miro Miroslavov avatar
    588 posts

    Posted 09 Jun 2010 Link to this post

    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.
Back to Top